Open CASCADE Technology
7.2.0
|
#include <NCollection_DoubleMap.hxx>
Data Structures | |
class | DoubleMapNode |
class | Iterator |
Public Types | |
typedef TheKey1Type | key1_type |
STL-compliant typedef for key1 type. More... | |
typedef TheKey2Type | key2_type |
STL-compliant typedef for key2 type. More... | |
Public Member Functions | |
NCollection_DoubleMap (const Standard_Integer NbBuckets=1, const Handle< NCollection_BaseAllocator > &theAllocator=0L) | |
Constructor. More... | |
NCollection_DoubleMap (const NCollection_DoubleMap &theOther) | |
Copy constructor. More... | |
void | Exchange (NCollection_DoubleMap &theOther) |
Exchange the content of two maps without re-allocations. Notice that allocators will be swapped as well! More... | |
NCollection_DoubleMap & | Assign (const NCollection_DoubleMap &theOther) |
Assignment. This method does not change the internal allocator. More... | |
NCollection_DoubleMap & | operator= (const NCollection_DoubleMap &theOther) |
Assignment operator. More... | |
void | ReSize (const Standard_Integer N) |
ReSize. More... | |
void | Bind (const TheKey1Type &theKey1, const TheKey2Type &theKey2) |
Bind. More... | |
Standard_Boolean | AreBound (const TheKey1Type &theKey1, const TheKey2Type &theKey2) const |
Standard_Boolean | IsBound1 (const TheKey1Type &theKey1) const |
IsBound1. More... | |
Standard_Boolean | IsBound2 (const TheKey2Type &theKey2) const |
IsBound2. More... | |
Standard_Boolean | UnBind1 (const TheKey1Type &theKey1) |
UnBind1. More... | |
Standard_Boolean | UnBind2 (const TheKey2Type &theKey2) |
UnBind2. More... | |
const TheKey2Type & | Find1 (const TheKey1Type &theKey1) const |
Find1. More... | |
const TheKey1Type & | Find2 (const TheKey2Type &theKey2) const |
Find2. More... | |
void | Clear (const Standard_Boolean doReleaseMemory=Standard_True) |
Clear data. If doReleaseMemory is false then the table of buckets is not released and will be reused. More... | |
void | Clear (const Handle< NCollection_BaseAllocator > &theAllocator) |
Clear data and reset allocator. More... | |
~NCollection_DoubleMap (void) | |
Destructor. More... | |
Standard_Integer | Size (void) const |
Size. More... | |
Public Member Functions inherited from NCollection_BaseMap | |
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... | |
const Handle< NCollection_BaseAllocator > & | Allocator () const |
Returns attached allocator. More... | |
Purpose: The DoubleMap is used to bind pairs (Key1,Key2) and retrieve them in linear time.
See Map from NCollection for a discussion about the number of buckets
typedef TheKey1Type NCollection_DoubleMap< TheKey1Type, TheKey2Type, Hasher1, Hasher2 >::key1_type |
STL-compliant typedef for key1 type.
typedef TheKey2Type NCollection_DoubleMap< TheKey1Type, TheKey2Type, Hasher1, Hasher2 >::key2_type |
STL-compliant typedef for key2 type.
|
inline |
Constructor.
|
inline |
Copy constructor.
|
inline |
Destructor.
|
inline |
|
inline |
Assignment. This method does not change the internal allocator.
|
inline |
Bind.
|
inline |
Clear data. If doReleaseMemory is false then the table of buckets is not released and will be reused.
|
inline |
Clear data and reset allocator.
|
inline |
Exchange the content of two maps without re-allocations. Notice that allocators will be swapped as well!
|
inline |
Find1.
|
inline |
Find2.
|
inline |
IsBound1.
|
inline |
IsBound2.
|
inline |
Assignment operator.
|
inline |
ReSize.
|
inline |
Size.
|
inline |
UnBind1.
|
inline |
UnBind2.