|
Standard_Boolean | lookup (const TheKeyType &theKey, IndexedMapNode *&theNode, size_t &theHash) const |
| Lookup for particular key in map.
|
|
Standard_Boolean | lookup (const TheKeyType &theKey, IndexedMapNode *&theNode) const |
| Lookup for particular key in map.
|
|
bool | IsEqual (const TheKeyType &theKey1, const TheKeyType &theKey2) const |
|
size_t | HashCode (const TheKeyType &theKey, const int theUpperBound) const |
|
| NCollection_BaseMap (const Standard_Integer NbBuckets, const Standard_Boolean single, const Handle< NCollection_BaseAllocator > &theAllocator) |
| Constructor.
|
|
| NCollection_BaseMap (NCollection_BaseMap &&theOther) noexcept |
| Move Constructor.
|
|
virtual | ~NCollection_BaseMap () |
| Destructor.
|
|
Standard_Boolean | BeginResize (const Standard_Integer NbBuckets, Standard_Integer &NewBuckets, NCollection_ListNode **&data1, NCollection_ListNode **&data2) const |
| BeginResize.
|
|
void | EndResize (const Standard_Integer NbBuckets, const Standard_Integer NewBuckets, NCollection_ListNode **data1, NCollection_ListNode **data2) |
| EndResize.
|
|
Standard_Boolean | Resizable () const |
| Resizable.
|
|
Standard_Integer | Increment () |
| Increment.
|
|
Standard_Integer | Decrement () |
| Decrement.
|
|
void | Destroy (NCollection_DelMapNode fDel, Standard_Boolean doReleaseMemory=Standard_True) |
| Destroy.
|
|
Standard_Integer | NextPrimeForMap (const Standard_Integer N) const |
| NextPrimeForMap.
|
|
void | exchangeMapsData (NCollection_BaseMap &theOther) |
| Exchange content of two maps without data copying.
|
|
NCollection_BaseMap & | operator= (NCollection_BaseMap &&) noexcept=delete |
| Move operator.
|
|
| NCollection_BaseMap (const NCollection_BaseMap &)=delete |
| Copy Constructor.
|
|
NCollection_BaseMap & | operator= (const NCollection_BaseMap &)=delete |
| Assign operator.
|
|
template<
class TheKeyType,
class Hasher = NCollection_DefaultHasher<TheKeyType>>
class NCollection_IndexedMap< TheKeyType, Hasher >
Purpose: An indexed map is used to store keys and to bind an index to them. Each new key stored in the map gets an index. Index are incremented as keys are stored in the map. A key can be found by the index and an index by the key. No key but the last can be removed so the indices are in the range 1..Extent. See the class Map from NCollection for a discussion about the number of buckets.