Open CASCADE Technology  6.9.0
Data Structures | Public Member Functions | Protected Member Functions | Protected Attributes

NCollection_BaseMap Class Reference

#include <NCollection_BaseMap.hxx>

Inheritance diagram for NCollection_BaseMap:
Inheritance graph
[legend]

Data Structures

class  Iterator
 Memory allocation. More...
 

Public Member Functions

Standard_Integer NbBuckets () const
 NbBuckets. More...
 
Standard_Integer Extent () const
 Extent. More...
 
Standard_Boolean IsEmpty () const
 IsEmpty. More...
 
void Statistics (Standard_OStream &S) const
 Statistics. More...
 

Protected Member Functions

 NCollection_BaseMap (const Standard_Integer NbBuckets, const Standard_Boolean single, const Handle< NCollection_BaseAllocator > &theAllocator)
 Constructor. More...
 
Standard_Boolean BeginResize (const Standard_Integer NbBuckets, Standard_Integer &NewBuckets, NCollection_ListNode **&data1, NCollection_ListNode **&data2) const
 BeginResize. More...
 
void EndResize (const Standard_Integer NbBuckets, const Standard_Integer NewBuckets, NCollection_ListNode **data1, NCollection_ListNode **data2)
 EndResize. More...
 
Standard_Boolean Resizable () const
 Resizable. More...
 
void Increment ()
 Increment. More...
 
void Decrement ()
 Decrement. More...
 
void Destroy (NCollection_DelMapNode fDel, Standard_Boolean doReleaseMemory=Standard_True)
 Destroy. More...
 
Standard_Integer NextPrimeForMap (const Standard_Integer N) const
 NextPrimeForMap. More...
 
void exchangeMapsData (NCollection_BaseMap &theOther)
 Exchange content of two maps without data copying. More...
 

Protected Attributes

Handle< NCollection_BaseAllocatormyAllocator
 
NCollection_ListNode ** myData1
 
NCollection_ListNode ** myData2
 

Detailed Description

Purpose: This is a base class for all Maps: Map DataMap DoubleMap IndexedMap IndexedDataMap Provides utilitites for managing the buckets.

Constructor & Destructor Documentation

NCollection_BaseMap::NCollection_BaseMap ( const Standard_Integer  NbBuckets,
const Standard_Boolean  single,
const Handle< NCollection_BaseAllocator > &  theAllocator 
)
inlineprotected

Constructor.

Member Function Documentation

Standard_Boolean NCollection_BaseMap::BeginResize ( const Standard_Integer  NbBuckets,
Standard_Integer NewBuckets,
NCollection_ListNode **&  data1,
NCollection_ListNode **&  data2 
) const
protected

BeginResize.

void NCollection_BaseMap::Decrement ( )
inlineprotected

Decrement.

void NCollection_BaseMap::Destroy ( NCollection_DelMapNode  fDel,
Standard_Boolean  doReleaseMemory = Standard_True 
)
protected

Destroy.

void NCollection_BaseMap::EndResize ( const Standard_Integer  NbBuckets,
const Standard_Integer  NewBuckets,
NCollection_ListNode **  data1,
NCollection_ListNode **  data2 
)
protected

EndResize.

void NCollection_BaseMap::exchangeMapsData ( NCollection_BaseMap theOther)
inlineprotected

Exchange content of two maps without data copying.

Standard_Integer NCollection_BaseMap::Extent ( void  ) const
inline

Extent.

void NCollection_BaseMap::Increment ( )
inlineprotected

Increment.

Standard_Boolean NCollection_BaseMap::IsEmpty ( ) const
inline

IsEmpty.

Standard_Integer NCollection_BaseMap::NbBuckets ( ) const
inline

NbBuckets.

Standard_Integer NCollection_BaseMap::NextPrimeForMap ( const Standard_Integer  N) const
protected

NextPrimeForMap.

Standard_Boolean NCollection_BaseMap::Resizable ( ) const
inlineprotected

Resizable.

void NCollection_BaseMap::Statistics ( Standard_OStream S) const

Statistics.

Field Documentation

Handle< NCollection_BaseAllocator > NCollection_BaseMap::myAllocator
protected
NCollection_ListNode** NCollection_BaseMap::myData1
protected
NCollection_ListNode** NCollection_BaseMap::myData2
protected

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