Open CASCADE Technology 7.8.0
|
#include <NCollection_IndexedMap.hxx>
Data Structures | |
class | IndexedMapNode |
Adaptation of the TListNode to the INDEXEDmap. More... | |
class | Iterator |
Public Types | |
typedef TheKeyType | key_type |
STL-compliant typedef for key type. | |
typedef NCollection_StlIterator< std::forward_iterator_tag, Iterator, TheKeyType, true > | const_iterator |
Shorthand for a constant iterator type. | |
Protected Attributes | |
Hasher | myHasher |
![]() | |
Handle< NCollection_BaseAllocator > | myAllocator |
NCollection_ListNode ** | myData1 |
NCollection_ListNode ** | myData2 |
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.
typedef NCollection_StlIterator<std::forward_iterator_tag, Iterator, TheKeyType, true> NCollection_IndexedMap< TheKeyType, Hasher >::const_iterator |
Shorthand for a constant iterator type.
typedef TheKeyType NCollection_IndexedMap< TheKeyType, Hasher >::key_type |
STL-compliant typedef for key type.
|
inline |
Empty constructor.
|
inlineexplicit |
Constructor.
|
inline |
Copy constructor.
|
inlinenoexcept |
Move constructor.
|
inlinevirtual |
Destructor.
|
inline |
Add.
|
inline |
Add.
|
inline |
Assign. This method does not change the internal allocator.
|
inline |
Returns a const iterator pointing to the first element in the map.
|
inline |
Returns a const iterator referring to the past-the-end element in the map.
|
inline |
Clear data and reset allocator.
|
inline |
Clear data. If doReleaseMemory is false then the table of buckets is not released and will be reused.
|
inline |
Contains.
|
inline |
Exchange the content of two maps without re-allocations. Notice that allocators will be swapped as well!
|
inline |
FindIndex.
|
inline |
FindKey.
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
Lookup for particular key in map.
[in] | theKey | key to compute hash |
[out] | theNode | the detected node with equal key. Can be null. |
|
inlineprotected |
Lookup for particular key in map.
[in] | theKey | key to compute hash |
[out] | theNode | the detected node with equal key. Can be null. |
[out] | theHash | computed bounded hash code for current key. |
|
inline |
operator ()
|
inline |
Assignment operator.
|
inlinenoexcept |
Move operator.
|
inline |
Remove the key of the given index. Caution! The index of the last key can be changed.
|
inline |
Remove the given key. Caution! The index of the last key can be changed.
|
inline |
RemoveLast.
|
inline |
ReSize.
|
inline |
Size.
|
inline |
Substitute.
|
inline |
Swaps two elements with the given indices.
|
protected |