Template class to contain an array of items. More...
#include <fbarray.h>

Public Member Functions | |
| 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 to contain an array of items.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get the number of items in the array.
Definition at line 227 of file fbarray.h.
Referenced by FBArrayTemplate< Type >::operator=().
|
inline |
|
inline |
Insert pItem at pIndex.
| pIndex | Index to insert at. |
| pItem | Item to insert. |
Definition at line 113 of file fbarray.h.
References FBRealloc().
|
inline |
Copy array of pointers without copying the associated objects.
| pArrayTemplate | Array to copy from. |
Definition at line 316 of file fbarray.h.
References FBArrayTemplate< Type >::GetCount().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Set the number of items in the array.
Definition at line 234 of file fbarray.h.
References FBRealloc().
|
inline |