Inheritance diagram for KBaseArray:
Definition at line 115 of file karrayul.h.
Public Member Functions | |
int | GetCount () const |
Get number of pointers in the array. | |
void | Clear () |
Remove all pointers without deleting the associated objects. | |
void | Empty () |
Fast empty, set object count to zero but don't free any memory. | |
int | Reserve (int pCapacity) |
Set array capacity to contain at least the specified number of elements without reallocating. | |
void | SetCount (int pCount) |
Force the array of elements to a given size. | |
Protected Member Functions | |
KBaseArray (int pItemPerBlock, int pItemSize) | |
Constructor. | |
~KBaseArray () | |
Destructor. | |
int | InsertAt (int pIndex, void *pItem) |
Insert an item at the given position. | |
void * | GetAt (int pIndex) |
Get the item at the given position. | |
void | RemoveAt (int pIndex) |
Removes the item at the given position. | |
bool | ValidateIndex (int pIndex) const |
Check that the given position is inside the array boundaries. | |
Protected Attributes | |
int | mArrayCount |
int | mBlockCount |
int | mItemPerBlock |
int | mItemSize |
KBaseArray | ( | int | pItemPerBlock, | |
int | pItemSize | |||
) | [protected] |
Constructor.
pItemPerBlock | Number of pointers per allocated block. | |
pItemSize | Size of one item of the array. |
~KBaseArray | ( | ) | [protected] |
Destructor.
int InsertAt | ( | int | pIndex, | |
void * | pItem | |||
) | [protected] |
Insert an item at the given position.
pIndex | Position where to insert the item. | |
pItem | Pointer to the item to be inserted. |
Referenced by KArrayTemplate< KString * >::InsertAt().
void* GetAt | ( | int | pIndex | ) | [inline, protected] |
Get the item at the given position.
pIndex | The position of the item to access. |
Definition at line 147 of file karrayul.h.
void RemoveAt | ( | int | pIndex | ) | [protected] |
Removes the item at the given position.
pIndex | The position of the item to remove. |
Reimplemented in KArrayTemplate, KArrayTemplate< KFbxNode * >, KArrayTemplate< KArrayTemplate< KFbxWeightedMapping::KElement > * >, KArrayTemplate< AccumulatorEntry * >, KArrayTemplate< KNumberRenamingStrategy::NameCell * >, KArrayTemplate< int >, KArrayTemplate< KFbxDataType >, KArrayTemplate< KFbxGenericNode * >, KArrayTemplate< KStringListItem * >, KArrayTemplate< kOffset >, KArrayTemplate< KFbxUserParamEntry * >, KArrayTemplate< Type * >, KArrayTemplate< KFbxUserNotification::AESequence * >, KArrayTemplate< KFbxVideo * >, KArrayTemplate< KFbxTexture * >, KArrayTemplate< KFbxSurfaceMaterial * >, and KArrayTemplate< KString * >.
Referenced by KArrayTemplate< KString * >::RemoveAt().
bool ValidateIndex | ( | int | pIndex | ) | const [protected] |
Check that the given position is inside the array boundaries.
pIndex | Index value to validate. |
true
if the index value is within the array boundaries. false
otherwise. Referenced by KArrayTemplate< KString * >::GetAt(), KArrayTemplate< KString * >::operator[](), and KArrayTemplate< KString * >::SetAt().
int GetCount | ( | ) | const [inline] |
Get number of pointers in the array.
Definition at line 168 of file karrayul.h.
Referenced by KStringListTemplate< KStringListItem >::Add(), KArrayTemplate< KString * >::AddArray(), KArrayTemplate< KString * >::AddArrayNoDuplicate(), KStringListTemplate< KStringListItem >::Clear(), KStringListTemplate< KStringListItem >::Find(), KStringListTemplate< KStringListItem >::FindCaseSensitive(), KStringListTemplate< KStringListItem >::FindEqual(), KStringListTemplate< KStringListItem >::FindIndex(), KStringListTemplate< KStringListItem >::GetCount(), KStringListTemplate< KStringListItem >::GetStringAt(), KStringListTemplate< KStringListItem >::GetText(), KFbxLayerElementUserData::KFbxLayerElementUserData(), KFbxLayerElementUserData::operator=(), KArrayTemplate< KString * >::operator=(), KArrayTemplate< KString * >::RemoveArray(), KStringListTemplate< KStringListItem >::RemoveLast(), KStringListTemplate< KStringListItem >::SetStringAt(), and KStringListTemplate< KStringListItem >::Sort().
void Clear | ( | ) |
Remove all pointers without deleting the associated objects.
Referenced by KStringListTemplate< KStringListItem >::Clear(), and KArrayTemplate< KString * >::operator=().
void Empty | ( | ) |
Fast empty, set object count to zero but don't free any memory.
int Reserve | ( | int | pCapacity | ) |
Set array capacity to contain at least the specified number of elements without reallocating.
pCapacity | Number of items that can be stored in the array before reallocating the memory. |
void SetCount | ( | int | pCount | ) |
Force the array of elements to a given size.