|
| CFX_SegmentedArray (int segment_units, int index_size=8, IFX_Allocator *pAllocator=0) |
| Construct with specified segment units. More...
|
|
void | Add (ElementType data) |
| Add an element. More...
|
|
ElementType & | operator[] (int index) |
| Subscript([]) operator overload. This function returns a ref to the specified element specified by the zero-based index. More...
|
|
| CFX_BaseSegmentedArray (int unit_size=1, int segment_units=512, int index_size=8, IFX_Allocator *pAllocator=0) |
| Construct with specified unit size, segment units, and number of index levels. More...
|
|
| ~CFX_BaseSegmentedArray () |
| The destructor.
|
|
void * | Add () |
| Add an element. More...
|
|
void | Delete (int index, int count=1) |
| Delete a number of elements. More...
|
|
void * | GetAt (int index) const |
| Get a typeless pointer to an element data. More...
|
|
int | GetSegmentSize () const |
| Get number of elements in each segment. More...
|
|
int | GetSize () const |
| Get number of elements in the array. More...
|
|
int | GetUnitSize () const |
| Get number of bytes for each element. More...
|
|
void * | Iterate (FX_BOOL(*callback)(void *param, void *pData), void *param) const |
| Iterate all units, with a callback function for each unit. More...
|
|
void | RemoveAll () |
| Remove all elements in the array. More...
|
|
void | SetUnitSize (int unit_size, int segment_units, int index_size=8) |
| Change the unit size and the segment units. This can only be called when array is empty. More...
|
|
template<class ElementType>
class CFX_SegmentedArray< ElementType >
The class represents grow-able array template with allocation in segments.