template <> |
class CArrayFix< TAny > : public CArrayFixBase |
A template specialisation base class for arrays of fixed length untyped objects.
The public functions provide standard array behaviour.
The class is always derived from and is never instantiated explicitly.
Public Member Functions | |
---|---|
CArrayFix ( TBufRep , TInt , TInt ) | |
void | AppendL (const TAny *) |
void | AppendL (const TAny *, TInt ) |
const TAny * | At ( TInt ) |
TAny * | At ( TInt ) |
const TAny * | Back ( TInt ) |
TAny * | Back ( TInt ) |
const TAny * | End ( TInt ) |
TAny * | End ( TInt ) |
TAny * | ExtendL () |
CArrayFix | ( | TBufRep | aRep, |
TInt | aRecordLength, | ||
TInt | aGranularity | ||
) | [inline] |
void | AppendL | ( | const TAny * | aPtr | ) | [inline] |
Appends the specified untyped element onto the end of the array.
const TAny * aPtr | A pointer to an untyped element to be appended. |
void | AppendL | ( | const TAny * | aPtr, |
TInt | aCount | |||
) | [inline] |
Appends one or more untyped elements onto the end of the array.
const TAny * | At | ( | TInt | anIndex | ) | const [inline] |
Gets a pointer to the untyped element located at the specified position within the array.
TInt anIndex | The position of the element within the array. The position is relative to zero; i.e. zero implies the first element in the array. |
TAny * | At | ( | TInt | anIndex | ) | [inline] |
Gets a pointer to the untyped element located at the specified position within the array.
TInt anIndex | The position of the element within the array. The position is relative to zero; i.e. zero implies the first element in the array. |
const TAny * | Back | ( | TInt | anIndex | ) | const [inline] |
Gets a pointer to the beginning of a contiguous region.
For flat buffers, the function always returns a pointer to the beginning of the buffer.
For segmented buffers, the function returns a pointer to the beginning of the segment for all elements in that segment except the first. If the element at the specified position is the first in a segment, then the function returns a pointer the beginning of the previous segment.
For the first element in the array, the function returns a NULL pointer.
TInt anIndex | The position of the element within the array. The position is relative to zero; i.e. zero implies the first element in the array. |
TAny * | Back | ( | TInt | anIndex | ) | [inline] |
Gets a pointer to the beginning of a contiguous region.
For flat buffers, the function always returns a pointer to the beginning of the buffer.
For segmented buffers, the function returns a pointer to the beginning of the segment for all elements in that segment except the first. If the element at the specified position is the first in a segment, then the function returns a pointer the beginning of the previous segment.
For the first element in the array, the function returns a NULL pointer.
TInt anIndex | The position of the element within the array. The position is relative to zero; i.e. zero implies the first element in the array. |
const TAny * | End | ( | TInt | anIndex | ) | const [inline] |
Gets a pointer to the first byte following the end of the contiguous region containing the element at the specfied position within the array.
For flat buffers, the pointer always points to the first byte following the end of the buffer.
For segmented buffers, the pointer always points to the first byte following the end of the segment which contains the element.
TInt anIndex | The position of the element within the array. The position is relative to zero; i.e. zero implies the first element in the array. |
TAny * | End | ( | TInt | anIndex | ) | [inline] |
Gets a pointer to the first byte following the end of the contiguous region containing the element at the specfied position within the array.
For flat buffers, the pointer always points to the first byte following the end of the buffer.
For segmented buffers, the pointer always points to the first byte following the end of the segment which contains the element.
TInt anIndex | The position of the element within the array. The position is relative to zero; i.e. zero implies the first element in the array. |
TAny * | ExtendL | ( | ) | [inline] |
Expands the array by the length of one element at the end of the array and returns a pointer to this new location.
As elements are untyped, no construction is possible and the content of the new location remains undefined.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.