Public Member Functions | |
ArrayOfBlocks () | |
ArrayOfBlocks (const ForwardAllocator &a) | |
ArrayOfBlocks (ForwardAllocator &&a) | |
ArrayOfBlocks (ArrayOfBlocks &&src) | |
void | Reset () |
void | Flush () |
Int | GetCount () const |
Bool | IsEmpty () const |
Bool | IsPopulated () const |
Bool | IsContinuous () const |
void | MarkAsNoncontinuous () |
ArrayBlock & | operator[] (Int index) |
const ArrayBlock & | operator[] (Int index) const |
Super::Iterator | Begin () |
Super::ConstIterator | Begin () const |
ArrayBlock * | GetLast () |
Super | Disconnect () |
const ArrayBlock * | GetLast () const |
ArrayBlock * | Append () |
ArrayBlock * | Insert (Int position) |
ArrayBlock * | Erase (Int position) |
ArrayBlock * | Pop () |
Int | GetIndex (const ArrayBlock &x) const |
ArrayBlock * | SplitBlock (Int blockIdx, Int localIdx) |
void | UpdateSubmittedElementCount (const ArrayBlock *block, Int cnt) |
Int | GetSubmittedElementCount () const |
Int | GetMemorySize () const |
Private Types | |
using | Super = BaseArray< ArrayBlock, BASEARRAY_DEFAULT_CHUNK_SIZE, BASEARRAYFLAGS::NONE, ForwardAllocator > |
Private Member Functions | |
ArrayBlock * | InsertOnly (Int position) |
Private Attributes | |
Super | _array |
Int | _usedBlockCnt |
Int | _submittedElementCnt |
Int | _isContinuous |
Int | _reserved |
|
private |
ArrayOfBlocks | ( | ) |
|
explicit |
|
explicit |
ArrayOfBlocks | ( | ArrayOfBlocks && | src | ) |
void Reset | ( | void | ) |
void Flush | ( | void | ) |
Int GetCount | ( | void | ) | const |
Bool IsEmpty | ( | ) | const |
Bool IsPopulated | ( | void | ) | const |
Bool IsContinuous | ( | ) | const |
void MarkAsNoncontinuous | ( | ) |
ArrayBlock& operator[] | ( | Int | index | ) |
const ArrayBlock& operator[] | ( | Int | index | ) | const |
Super::Iterator Begin | ( | ) |
Super::ConstIterator Begin | ( | ) | const |
ArrayBlock* GetLast | ( | ) |
Super Disconnect | ( | ) |
const ArrayBlock* GetLast | ( | ) | const |
ArrayBlock* Append | ( | ) |
ArrayBlock* Insert | ( | Int | position | ) |
ArrayBlock* Erase | ( | Int | position | ) |
ArrayBlock* Pop | ( | ) |
Int GetIndex | ( | const ArrayBlock & | x | ) | const |
ArrayBlock* SplitBlock | ( | Int | blockIdx, |
Int | localIdx | ||
) |
void UpdateSubmittedElementCount | ( | const ArrayBlock * | block, |
Int | cnt | ||
) |
Int GetSubmittedElementCount | ( | ) | const |
Int GetMemorySize | ( | void | ) | const |
Calculates the memory usage for this array. The array element class must have a public member GetMemorySize that returns an element's size.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |