Class NCollection_BaseVector - base for NCollection_Vector template.
#include <NCollection_BaseVector.hxx>
Data Structures |
class | Iterator |
| Base class for Iterator implementation. More...
|
struct | MemBlock |
Public Member Functions |
|
void | Clear () |
| Empty the vector of its objects.
|
Protected Member Functions |
|
| NCollection_BaseVector (Handle< NCollection_BaseAllocator > &theAllocator, initMemBlocks_t theInitBlocks, const size_t theSize, const Standard_Integer theInc) |
| Empty constructor.
|
| NCollection_BaseVector (Handle< NCollection_BaseAllocator > &theAllocator, initMemBlocks_t theInitBlocks, const NCollection_BaseVector &theOther) |
| Copy constructor.
|
void * | expandV (Handle< NCollection_BaseAllocator > &theAllocator, const Standard_Integer theIndex) |
void * | findV (const Standard_Integer theIndex) const |
| Locate the memory holding the desired value.
|
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.
|
static MemBlock * | allocMemBlocks (Handle< NCollection_BaseAllocator > &theAllocator, const Standard_Integer theCapacity, MemBlock *theSource=NULL, const Standard_Integer theSourceSize=0) |
| Allocate memory for array of memory blocks.
|
Private fields |
size_t | myItemSize |
Standard_Integer | myIncrement |
Standard_Integer | myLength |
Standard_Integer | myCapacity |
Standard_Integer | myNBlocks |
MemBlock * | myData |
initMemBlocks_t | myInitBlocks |
Member Typedef Documentation
- Parameters:
-
theAllocator | Memory allocator to use |
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 |
Constructor & Destructor Documentation
Member Function Documentation
- Parameters:
-
theAllocator | Memory allocator to use |
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 |
( |
| ) |
|
- Returns:
- pointer to memory where to put the new item
void* NCollection_BaseVector::findV |
( |
const Standard_Integer |
theIndex | ) |
const [inline, protected] |
Field Documentation
The documentation for this class was generated from the following file: