#include <karrayul.h>
Definition at line 492 of file karrayul.h.
Public Member Functions |
|
KArrayTemplate () | |
Constructor. |
|
KArrayTemplate (const KArrayTemplate &pArrayTemplate) | |
Copy constructor. |
|
~KArrayTemplate () | |
int | InsertAt (int pIndex, Type pItem) |
Insert a pointer. |
|
Type | RemoveAt (int pIndex) |
Remove a pointer in the array without
deleting the associated object. |
|
Type | RemoveLast () |
Remove last pointer in the array without
deleting the associated object. |
|
bool | RemoveIt (Type pItem) |
Remove first matching pointer in the array
without deleting the associated object. |
|
Type & | operator[] (int pIndex) const |
Access pointer at given index. |
|
void | SetAt (int pIndex, Type pItem) |
Set pointer at given index, must within
valid range. |
|
void | SetLast (Type pItem) |
Set last pointer, the array must contain at
least one pointer. |
|
Type | GetAt (int pIndex) const |
Get pointer at given index, must be within
valid range. |
|
Type | GetFirst () const |
Get first pointer, the array must contain at
least one pointer. |
|
Type | GetLast () const |
Get last pointer, the array must contain at
least one pointer. |
|
int | Find (Type pItem) const |
Find first matching pointer. |
|
int | FindAfter (int pAfterIndex, Type pItem) const |
Find first matching pointer after given
index. |
|
int | FindBefore (int pBeforeIndex, Type pItem) const |
Find first matching pointer before given
index. |
|
int | Add (Type pItem) |
Append a pointer at the end of the array.
|
|
int | AddUnique (Type pItem) |
Add Element at the end of array if not
present. |
|
void | AddMultiple (kUInt pItemCount) |
Add multiple (init to zero) elements in the
array, use SetAt or GetArray to set the value of the new elements.
|
|
void | AddArray (KArrayTemplate< Type > &pArray) |
void | AddArrayNoDuplicate (KArrayTemplate< Type > &pArray) |
void | RemoveArray (KArrayTemplate< Type > &pArray) |
Type * | GetArray () const |
Get pointer to internal array of pointers.
|
|
KArrayTemplate< Type > & | operator= (const KArrayTemplate< Type > &pArrayTemplate) |
Copy array of pointers without copying the
associated objects. |
|
operator Type * () | |
Cast operator. |
KArrayTemplate | ( | ) | [inline] |
Constructor.
Definition at line 512 of file karrayul.h.
KArrayTemplate | ( | const KArrayTemplate< Type > & | pArrayTemplate | ) | [inline] |
Copy constructor.
Definition at line 518 of file karrayul.h.
~KArrayTemplate | ( | ) | [inline] |
Definition at line 524 of file karrayul.h.
Insert a pointer.
pIndex | Position where to insert the pointer. | |
pItem | Item to insert. |
Definition at line 532 of file karrayul.h.
Referenced by KArrayTemplate< KLayerInfo * >::Add(), KStringListTemplate< KStringListItem >::InsertAt(), and KStringListTemplate< KStringListItem >::InsertItemAt().
Type RemoveAt | ( | int | pIndex | ) | [inline] |
Remove a pointer in the array without deleting the associated object.
pIndex | Position of the item to remove. |
Reimplemented from KBaseArray< KBaseArraySizeType< Type > >.
Definition at line 541 of file karrayul.h.
Referenced by KStringListTemplate< KStringListItem >::RemoveAt(), KArrayTemplate< KLayerInfo * >::RemoveIt(), and KArrayTemplate< KLayerInfo * >::RemoveLast().
Type RemoveLast | ( | ) | [inline] |
Remove last pointer in the array without deleting the associated object.
Definition at line 551 of file karrayul.h.
bool RemoveIt | ( | Type | pItem | ) | [inline] |
Remove first matching pointer in the array without deleting the associated object.
pItem | Item to remove. |
true
if a matching pointer is found and removed,
false
otherwise.Definition at line 560 of file karrayul.h.
Referenced by KArrayTemplate< KLayerInfo * >::RemoveArray().
Type& operator[] | ( | int | pIndex | ) | const [inline] |
Access pointer at given index.
Definition at line 572 of file karrayul.h.
void SetAt | ( | int | pIndex, | |
Type | pItem | |||
) | [inline] |
Set pointer at given index, must within valid range.
Definition at line 584 of file karrayul.h.
Referenced by KArrayTemplate< KLayerInfo * >::AddArray(), KFbxLayerElementArray::CopyTo(), and KArrayTemplate< KLayerInfo * >::SetLast().
void SetLast | ( | Type | pItem | ) | [inline] |
Set last pointer, the array must contain at least one pointer.
Definition at line 596 of file karrayul.h.
Type GetAt | ( | int | pIndex | ) | const [inline] |
Get pointer at given index, must be within valid range.
Definition at line 602 of file karrayul.h.
Referenced by KArrayTemplate< KLayerInfo * >::FindAfter(), KArrayTemplate< KLayerInfo * >::FindBefore(), KArrayTemplate< KLayerInfo * >::GetFirst(), KArrayTemplate< KLayerInfo * >::GetLast(), KFbxLayerElementArrayTemplate< KFbxSurfaceMaterial * >::operator=(), and KArrayTemplate< KLayerInfo * >::RemoveAt().
Type GetFirst | ( | ) | const [inline] |
Get first pointer, the array must contain at least one pointer.
Definition at line 616 of file karrayul.h.
Type GetLast | ( | ) | const [inline] |
Get last pointer, the array must contain at least one pointer.
Definition at line 627 of file karrayul.h.
int Find | ( | Type | pItem | ) | const [inline] |
Find first matching pointer.
Definition at line 639 of file karrayul.h.
Referenced by KArrayTemplate< KLayerInfo * >::AddArrayNoDuplicate(), KArrayTemplate< KLayerInfo * >::AddUnique(), KStringListTemplate< KStringListItem >::FindItem(), and KArrayTemplate< KLayerInfo * >::RemoveIt().
Find first matching pointer after given index.
Definition at line 649 of file karrayul.h.
Referenced by KArrayTemplate< KLayerInfo * >::Find().
Find first matching pointer before given index.
Definition at line 676 of file karrayul.h.
int Add | ( | Type | pItem | ) | [inline] |
Append a pointer at the end of the array.
Definition at line 701 of file karrayul.h.
Referenced by KArrayTemplate< KLayerInfo * >::AddArrayNoDuplicate(), KStringListTemplate< KStringListItem >::AddItem(), KFbxStatisticsFbx::AddItem(), KArrayTemplate< KLayerInfo * >::AddUnique(), and KArrayTemplate< KLayerInfo * >::operator=().
int AddUnique | ( | Type | pItem | ) | [inline] |
Add Element at the end of array if not present.
Definition at line 709 of file karrayul.h.
void AddMultiple | ( | kUInt | pItemCount | ) | [inline] |
Add multiple (init to zero) elements in the array, use SetAt or GetArray to set the value of the new elements.
pItemCount. | How many new Array elements you want. |
Definition at line 722 of file karrayul.h.
Referenced by KArrayTemplate< KLayerInfo * >::AddArray().
void AddArray | ( | KArrayTemplate< Type > & | pArray | ) | [inline] |
Definition at line 727 of file karrayul.h.
void AddArrayNoDuplicate | ( | KArrayTemplate< Type > & | pArray | ) | [inline] |
Definition at line 739 of file karrayul.h.
void RemoveArray | ( | KArrayTemplate< Type > & | pArray | ) | [inline] |
Definition at line 751 of file karrayul.h.
Type* GetArray | ( | ) | const [inline] |
Get pointer to internal array of pointers.
Definition at line 761 of file karrayul.h.
Referenced by KStringListTemplate< KStringListItem >::FindCaseSensitive(), KStringListTemplate< KStringListItem >::FindEqual(), KArrayTemplate< void * >::operator void **(), KArrayTemplate< KLayerInfo * >::SetAt(), and KStringListTemplate< KStringListItem >::Sort().
KArrayTemplate<Type>& operator= | ( | const KArrayTemplate< Type > & | pArrayTemplate | ) | [inline] |
Copy array of pointers without copying the associated objects.
Definition at line 770 of file karrayul.h.
operator Type * | ( | ) | [inline] |
Cast operator.
Definition at line 788 of file karrayul.h.