Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Data Structures | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
NCollection_BaseVector Class Reference

#include <NCollection_BaseVector.hxx>

Inheritance diagram for NCollection_BaseVector:
Inheritance graph
[legend]

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_BaseVectoroperator= (const NCollection_BaseVector &)
 Operator =.
voidExpandV (const Standard_Integer theIndex)
 ExpandV: returns pointer to memory where to put the new item.
voidFind (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
MemBlockmyData
FuncPtrDataInit myDataInit
FuncPtrDataFree myDataFree

Detailed Description

Class NCollection_BaseVector - base for generic vector


Member Typedef Documentation


Constructor & Destructor Documentation

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]

Member Function Documentation

void * NCollection_BaseVector::Find ( const Standard_Integer  theIndex) const [inline, protected]
NCollection_BaseVector& NCollection_BaseVector::operator= ( const NCollection_BaseVector ) [protected]

Field Documentation


The documentation for this class was generated from the following file: