|
Open CASCADE Technology 6.5.2
|
#include <NCollection_BaseVector.hxx>

Data Structures | |
| class | Iterator |
| class | MemBlock |
Public Member Functions | |
| Standard_Integer | Length () const |
| Total number of items. | |
| void | Clear () |
| Empty the vector of its objects. | |
Protected Types | |
| typedef MemBlock *(* | FuncPtrDataInit )(const NCollection_BaseVector &, const Standard_Integer aCapacity, const void *aSource, const Standard_Integer aSize) |
| typedef void(* | FuncPtrDataFree )(const NCollection_BaseVector &, MemBlock *) |
Protected Member Functions | |
| NCollection_BaseVector (const size_t theSize, const Standard_Integer theInc, FuncPtrDataInit theDataInit, FuncPtrDataFree theDataFree) | |
| Empty constructor. | |
| NCollection_BaseVector (const NCollection_BaseVector &theOther, FuncPtrDataInit theDataInit, FuncPtrDataFree theDataFree) | |
| Copy constructor. | |
| ~NCollection_BaseVector () | |
| Destructor. | |
| NCollection_BaseVector & | operator= (const NCollection_BaseVector &) |
| Operator =. | |
| void * | ExpandV (const Standard_Integer theIndex) |
| ExpandV: returns pointer to memory where to put the new item. | |
| void * | Find (const Standard_Integer theIndex) const |
| Find: locate the memory holding the desired value. | |
Protected Attributes | |
| size_t | myItemSize |
| Standard_Integer | myIncrement |
| Standard_Integer | myLength |
| Standard_Integer | myCapacity |
| Standard_Integer | myNBlocks |
| MemBlock * | myData |
| FuncPtrDataInit | myDataInit |
| FuncPtrDataFree | myDataFree |
Class NCollection_BaseVector - base for generic vector
typedef void(* NCollection_BaseVector::FuncPtrDataFree)(const NCollection_BaseVector &, MemBlock *) [protected] |
typedef MemBlock*(* NCollection_BaseVector::FuncPtrDataInit)(const NCollection_BaseVector &, const Standard_Integer aCapacity, const void *aSource, const Standard_Integer aSize) [protected] |
| NCollection_BaseVector::NCollection_BaseVector | ( | const size_t | theSize, |
| const Standard_Integer | theInc, | ||
| FuncPtrDataInit | theDataInit, | ||
| FuncPtrDataFree | theDataFree | ||
| ) | [inline, protected] |
| NCollection_BaseVector::NCollection_BaseVector | ( | const NCollection_BaseVector & | theOther, |
| FuncPtrDataInit | theDataInit, | ||
| FuncPtrDataFree | theDataFree | ||
| ) | [inline, protected] |
| NCollection_BaseVector::~NCollection_BaseVector | ( | ) | [protected] |
| void NCollection_BaseVector::Clear | ( | ) |
| void* NCollection_BaseVector::ExpandV | ( | const Standard_Integer | theIndex | ) | [protected] |
| void * NCollection_BaseVector::Find | ( | const Standard_Integer | theIndex | ) | const [inline, protected] |
| Standard_Integer NCollection_BaseVector::Length | ( | void | ) | const [inline] |
| NCollection_BaseVector& NCollection_BaseVector::operator= | ( | const NCollection_BaseVector & | ) | [protected] |
Standard_Integer NCollection_BaseVector::myCapacity [protected] |
MemBlock* NCollection_BaseVector::myData [protected] |
FuncPtrDataFree NCollection_BaseVector::myDataFree [protected] |
FuncPtrDataInit NCollection_BaseVector::myDataInit [protected] |
Standard_Integer NCollection_BaseVector::myIncrement [protected] |
size_t NCollection_BaseVector::myItemSize [protected] |
Standard_Integer NCollection_BaseVector::myLength [protected] |
Standard_Integer NCollection_BaseVector::myNBlocks [protected] |
1.7.4