Simplified class for vector of pointers of void. Offers basic functionality to scalable inserts, resizes and erasing last.
More...
|
| | NCollection_BasePointerVector () |
| | Memory allocation. More...
|
| |
| | NCollection_BasePointerVector (const NCollection_BasePointerVector &theOther) |
| | Copy data from another vector. More...
|
| |
| | NCollection_BasePointerVector (NCollection_BasePointerVector &&theOther) noexcept |
| | Move data from another vector. More...
|
| |
| | ~NCollection_BasePointerVector () |
| | Destroy container. More...
|
| |
| bool | IsEmpty () const |
| | Checks for an empty status. More...
|
| |
| size_t | Size () const |
| | Gets used size. More...
|
| |
| size_t | Capacity () const |
| | Gets available capacity. More...
|
| |
| void | RemoveLast () |
| | Erases last element, decrements size. More...
|
| |
| void | Clear (const bool theReleaseMemory=false) |
| | Resets the size. More...
|
| |
| void ** | GetArray () const |
| | Gets array, can be null. More...
|
| |
| void * | Value (const size_t theInd) const |
| | Gets value by index, no acess validation. More...
|
| |
| void | Append (const void *thePnt) |
| | Inserts new element at the end, increase size, if capacity is not enough, call resize. More...
|
| |
| void | SetValue (const size_t theInd, const void *thePnt) |
| | Updates value of existed element, If index more then size, increase size of container, in this case capacity can be updated. More...
|
| |
| NCollection_BasePointerVector & | operator= (const NCollection_BasePointerVector &theOther) |
| | Copy vector. More...
|
| |
| NCollection_BasePointerVector & | operator= (NCollection_BasePointerVector &&theOther) noexcept |
| | Move vector. More...
|
| |
Simplified class for vector of pointers of void. Offers basic functionality to scalable inserts, resizes and erasing last.
Control of processing values of pointers out-of-scope and should be controlled externally. Especially, copy operation should post-process elements of pointers to make deep copy.