Open CASCADE Technology
7.3.0
|
Class NCollection_BaseVector - base for NCollection_Vector template. More...
#include <NCollection_BaseVector.hxx>
Data Structures | |
class | Iterator |
Base class for Iterator implementation. More... | |
struct | MemBlock |
Memory allocation. More... | |
Public Member Functions | |
public API | |
void | Clear () |
Empty the vector of its objects. More... | |
void | SetIncrement (const Standard_Integer aIncrement) |
Empty the vector of its objects. More... | |
const Handle< NCollection_BaseAllocator > & | Allocator () const |
Returns attached allocator. More... | |
Protected Member Functions | |
protected methods | |
NCollection_BaseVector (const Handle< NCollection_BaseAllocator > &theAllocator, initMemBlocks_t theInitBlocks, const size_t theSize, const Standard_Integer theInc) | |
Empty constructor. More... | |
NCollection_BaseVector (const Handle< NCollection_BaseAllocator > &theAllocator, initMemBlocks_t theInitBlocks, const NCollection_BaseVector &theOther) | |
Copy constructor. More... | |
virtual | ~NCollection_BaseVector () |
Destructor. More... | |
void * | expandV (const Standard_Integer theIndex) |
void * | findV (const Standard_Integer theIndex) const |
Locate the memory holding the desired value. More... | |
Block initializer | |
typedef void(* | initMemBlocks_t) (NCollection_BaseVector &theVector, MemBlock &theBlock, const Standard_Integer theFirst, const Standard_Integer theSize) |
Allocate memory for array of memory blocks. More... | |
MemBlock * | allocMemBlocks (const Standard_Integer theCapacity, MemBlock *theSource=NULL, const Standard_Integer theSourceSize=0) |
Allocate memory for array of memory blocks. More... | |
Class NCollection_BaseVector - base for NCollection_Vector template.
|
protected |
Allocate memory for array of memory blocks.
theCapacity | Number of memory blocks in array |
theSource | Original array of memory blocks, will be automatically deallocated |
theSourceSize | Number of memory blocks in original array |
|
inlineprotected |
Empty constructor.
|
inlineprotected |
Copy constructor.
|
inlineprotectedvirtual |
Destructor.
|
inline |
Returns attached allocator.
|
protected |
Allocate memory for array of memory blocks.
theCapacity | Number of memory blocks in array |
theSource | Original array of memory blocks, will be automatically deallocated |
theSourceSize | Number of memory blocks in original array |
void NCollection_BaseVector::Clear | ( | ) |
Empty the vector of its objects.
|
protected |
|
inlineprotected |
Locate the memory holding the desired value.
|
inline |
Empty the vector of its objects.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |