|
| | FBArrayTemplate (int pItemPerBlock=10) |
| | Constructor.
|
| |
| | FBArrayTemplate (const FBArrayTemplate< Type > &pArrayTemplate) |
| | Copy constructor.
|
| |
| | ~FBArrayTemplate () |
| | Destructor.
|
| |
| int | InsertAt (int pIndex, Type pItem) |
| | Insert pItem at pIndex.
|
| |
| void | RemoveAt (int pIndex) |
| | Remove item at pIndex.
|
| |
| void | RemoveLast () |
| | Remove the last item in the array.
|
| |
| bool | Remove (Type &pItem) |
| | Remove pItem from the array.
|
| |
| bool | RemoveIt (Type pItem) |
| | Remove pItem from the array.
|
| |
| void | Clear () |
| | Empty the array of all items.
|
| |
| Type & | operator[] (int pIndex) const |
| | [] operator overload.
|
| |
| void | SetAt (int pIndex, Type pItem) |
| | Set item at pIndex to pItem.
|
| |
| void | SetLast (Type pItem) |
| | Set the last item of the array.
|
| |
| int | GetCount () const |
| | Get the number of items in the array.
|
| |
| void | SetCount (int pCount) |
| | Set the number of items in the array.
|
| |
| Type | GetAt (int pIndex) |
| | Get item at pIndex.
|
| |
| Type | GetLast () |
| | Get last item of the array.
|
| |
| int | Find (Type pItem) |
| | Find the index of pItem in the array.
|
| |
| int | Add (Type pItem) |
| | Add an item to the end of the array.
|
| |
| Type * | GetArray () |
| | Get a pointer to the array of items.
|
| |
| FBArrayTemplate< Type > & | operator= (const FBArrayTemplate< Type > &pArrayTemplate) |
| | Copy array of pointers without copying the associated objects.
|
| |
template<class Type>
class FBArrayTemplate< Type >
Template class to contain an array of items.
- Note
- This utility template array only support plain old data structure (POD).
Definition at line 77 of file fbarray.h.