#include <TCollection_BasicMap.hxx>
Inheritance diagram for TCollection_BasicMap:
Public Member Functions | |
void * | operator new (size_t, void *anAddress) |
void * | operator new (size_t size) |
void | operator delete (void *anAddress) |
Standard_Integer | NbBuckets () const |
Returns the number of buckets in <me>. . | |
Standard_Integer | Extent () const |
Returns the number of keys already stored in <me>. . | |
Standard_Boolean | IsEmpty () const |
Returns True when the map contains no keys. This is exactly Extent() == 0. . | |
Standard_EXPORT void | Statistics (Standard_OStream &S) const |
Prints on <s> usefull statistics about the map <me>. It can be used to test the quality of the hashcoding. . | |
Protected Member Functions | |
Standard_EXPORT | TCollection_BasicMap (const Standard_Integer NbBuckets, const Standard_Boolean single) |
Initialize the map. Single is True when the map uses only one table of buckets. One table : Map, DataMap Two tables : DoubleMap, IndexedMap, IndexedDataMap . | |
Standard_EXPORT Standard_Boolean | BeginResize (const Standard_Integer NbBuckets, Standard_Integer &NewBuckets, Standard_Address &data1, Standard_Address &data2) const |
Tries to resize the Map with NbBuckets. Returns True if possible, NewBuckts is the new nuber of buckets. data1 and data2 are the new tables of buckets where the data must be copied. . | |
Standard_EXPORT void | EndResize (const Standard_Integer NbBuckets, const Standard_Integer NewBuckets, const Standard_Address data1, const Standard_Address data2) |
If BeginResize was succesfull after copying the data to data1 and data2 this methods update the tables and destroys the old ones. . | |
Standard_Boolean | Resizable () const |
Returns True if resizing the map should be considered. . | |
void | Increment () |
Decrement the extent of the map. . | |
void | Decrement () |
Decrement the extent of the map. . | |
Standard_EXPORT void | Destroy () |
Destroys the buckets. . | |
Protected Attributes | |
Standard_Address | myData1 |
Standard_Address | myData2 |
Private Attributes | |
Standard_Boolean | isDouble |
Standard_Boolean | mySaturated |
Standard_Integer | myNbBuckets |
Standard_Integer | mySize |
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in TColStd_PackedMapOfInteger. |
|
|
|
Reimplemented in TColStd_PackedMapOfInteger. |
|
Reimplemented in TColStd_PackedMapOfInteger. |
|
|
|
|
|
|
Reimplemented in TColStd_PackedMapOfInteger. |
|
|
|
|
|
|
|
|
|
|
|
|