BlockArray< T, BLOCK_SIZE_EXPONENT, MEMFLAGS, ALLOCATOR >::ArrayOfBlocks Class Reference
公共成员函数 |
|
| ArrayOfBlocks () | |
| ArrayOfBlocks (const ForwardAllocator &a) | |
| ArrayOfBlocks ( ForwardAllocator &&a) | |
| ArrayOfBlocks ( ArrayOfBlocks && src ) | |
| void | 重置 () |
| 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 > |
私有成员函数 |
|
| 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 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 |
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 |