#include <karrayul.h>
Definition at line 139 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) |
Set arrayCount to specified number of
elements. The array capacity is adjusted accordingly. |
|
void | Resize (int pItemCount) |
void | AddMultiple (int pItemCount) |
int | GetTypeSize () const |
Protected Member Functions |
|
KBaseArray (TypeSize pTypeSize) | |
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. |
|
Classes |
|
struct | KHeader |
KBaseArray | ( | TypeSize | pTypeSize | ) | [inline, protected] |
Constructor.
pTypeSize | Size of one item of the array. |
Definition at line 152 of file karrayul.h.
~KBaseArray | ( | ) | [inline, protected] |
Destructor.
Definition at line 160 of file karrayul.h.
Insert an item at the given position.
pIndex | Position where to insert the item. | |
pItem | Pointer to the item to be inserted. |
Reimplemented in KArrayTemplate< void * >.
Definition at line 171 of file karrayul.h.
void* GetAt | ( | int | pIndex | ) | [inline, protected] |
Get the item at the given position.
pIndex | The position of the item to access. |
Definition at line 217 of file karrayul.h.
void RemoveAt | ( | int | pIndex | ) | [inline, 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< KFbxProperty >, KArrayTemplate< KFbxReference * >, KArrayTemplate< int >, KArrayTemplate< KFbxObject * >, KArrayTemplate< KFbxLocalizationManager * >, KArrayTemplate< KStringListItem * >, KArrayTemplate< KFbxScene * >, KArrayTemplate< void * >, KArrayTemplate< Type * >, KArrayTemplate< KFbxMesh * >, KArrayTemplate< KFbxUserNotification::AESequence * >, KArrayTemplate< KFbxDocument * >, KArrayTemplate< KFbxCluster * >, KArrayTemplate< KFbxTexture * >, KArrayTemplate< KFbxSurfaceMaterial * >, KArrayTemplate< KXRefManagerProject * >, KArrayTemplate< KString * >, and KArrayTemplate< KLayerInfo * >.
Definition at line 225 of file karrayul.h.
bool ValidateIndex | ( | int | pIndex | ) | const [inline, 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.Definition at line 253 of file karrayul.h.
Referenced by KBaseArray< KBaseArraySizeType< KXRefManagerProject * > >::RemoveAt().
int GetCount | ( | ) | const [inline] |
Get number of pointers in the array.
Definition at line 273 of file karrayul.h.
Referenced by KStringListTemplate< KStringListItem >::Add(), KStringListTemplate< KStringListItem >::Clear(), KStringListTemplate< KStringListItem >::Find(), KStringListTemplate< KStringListItem >::FindCaseSensitive(), KStringListTemplate< KStringListItem >::FindEqual(), KStringListTemplate< KStringListItem >::FindIndex(), KStringListTemplate< KStringListItem >::GetCount(), KStringListTemplate< KStringListItem >::GetStringAt(), KStringListTemplate< KStringListItem >::GetText(), KStringListTemplate< KStringListItem >::RemoveLast(), KStringListTemplate< KStringListItem >::SetStringAt(), and KStringListTemplate< KStringListItem >::Sort().
void Clear | ( | ) | [inline] |
Remove all pointers without deleting the associated objects.
Definition at line 276 of file karrayul.h.
Referenced by KStringListTemplate< KStringListItem >::Clear(), and KBaseArray< KBaseArraySizeType< KXRefManagerProject * > >::~KBaseArray().
void Empty | ( | ) | [inline] |
Fast empty, set object count to zero but don't free any memory.
Definition at line 287 of file karrayul.h.
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. |
Definition at line 303 of file karrayul.h.
void SetCount | ( | int | pCount | ) | [inline] |
Set arrayCount to specified number of elements. The array capacity is adjusted accordingly.
Force the array of elements to a given size.
Definition at line 352 of file karrayul.h.
void Resize | ( | int | pItemCount | ) | [inline] |
Definition at line 373 of file karrayul.h.
void AddMultiple | ( | int | pItemCount | ) | [inline] |
Definition at line 405 of file karrayul.h.
Referenced by KBaseArray< KBaseArraySizeType< KXRefManagerProject * > >::SetCount().
int GetTypeSize | ( | ) | const [inline] |
Definition at line 441 of file karrayul.h.
Referenced by KBaseArray< KBaseArraySizeType< KXRefManagerProject * > >::AddMultiple(), KBaseArray< KBaseArraySizeType< KXRefManagerProject * > >::Empty(), KBaseArray< KBaseArraySizeType< KXRefManagerProject * > >::GetAt(), KBaseArray< KBaseArraySizeType< KXRefManagerProject * > >::InsertAt(), KBaseArray< KBaseArraySizeType< KXRefManagerProject * > >::RemoveAt(), KBaseArray< KBaseArraySizeType< KXRefManagerProject * > >::Reserve(), and KBaseArray< KBaseArraySizeType< KXRefManagerProject * > >::Resize().