Open CASCADE Technology 7.8.0
Data Structures | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher > Class Template Reference

#include <NCollection_IndexedDataMap.hxx>

Inheritance diagram for NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >:
Inheritance graph
[legend]

Data Structures

class  Iterator
 Implementation of the Iterator interface. More...
 

Public Types

typedef TheKeyType key_type
 STL-compliant typedef for key type.
 
typedef TheItemType value_type
 STL-compliant typedef for value type.
 
typedef Hasher hasher
 
typedef NCollection_StlIterator< std::forward_iterator_tag, Iterator, TheItemType, falseiterator
 Shorthand for a regular iterator type.
 
typedef NCollection_StlIterator< std::forward_iterator_tag, Iterator, TheItemType, trueconst_iterator
 Shorthand for a constant iterator type.
 

Public Member Functions

iterator begin () const
 Returns an iterator pointing to the first element in the map.
 
iterator end () const
 Returns an iterator referring to the past-the-end element in the map.
 
const_iterator cbegin () const
 Returns a const iterator pointing to the first element in the map.
 
const_iterator cend () const
 Returns a const iterator referring to the past-the-end element in the map.
 
 NCollection_IndexedDataMap ()
 Empty constructor.
 
 NCollection_IndexedDataMap (const Standard_Integer theNbBuckets, const Handle< NCollection_BaseAllocator > &theAllocator=0L)
 Constructor.
 
 NCollection_IndexedDataMap (const NCollection_IndexedDataMap &theOther)
 Copy constructor.
 
 NCollection_IndexedDataMap (NCollection_IndexedDataMap &&theOther) noexcept
 Move constructor.
 
void Exchange (NCollection_IndexedDataMap &theOther)
 Exchange the content of two maps without re-allocations. Notice that allocators will be swapped as well!
 
NCollection_IndexedDataMapAssign (const NCollection_IndexedDataMap &theOther)
 Assignment. This method does not change the internal allocator.
 
NCollection_IndexedDataMapoperator= (const NCollection_IndexedDataMap &theOther)
 Assignment operator.
 
NCollection_IndexedDataMapoperator= (NCollection_IndexedDataMap &&theOther) noexcept
 Move operator.
 
void ReSize (const Standard_Integer N)
 ReSize.
 
Standard_Integer Add (const TheKeyType &theKey1, const TheItemType &theItem)
 Returns the Index of already bound Key or appends new Key with specified Item value.
 
Standard_Integer Add (TheKeyType &&theKey1, const TheItemType &theItem)
 Returns the Index of already bound Key or appends new Key with specified Item value.
 
Standard_Integer Add (const TheKeyType &theKey1, TheItemType &&theItem)
 Returns the Index of already bound Key or appends new Key with specified Item value.
 
Standard_Integer Add (TheKeyType &&theKey1, TheItemType &&theItem)
 Returns the Index of already bound Key or appends new Key with specified Item value.
 
Standard_Boolean Contains (const TheKeyType &theKey1) const
 Contains.
 
void Substitute (const Standard_Integer theIndex, const TheKeyType &theKey1, const TheItemType &theItem)
 Substitute.
 
void Swap (const Standard_Integer theIndex1, const Standard_Integer theIndex2)
 Swaps two elements with the given indices.
 
void RemoveLast (void)
 RemoveLast.
 
void RemoveFromIndex (const Standard_Integer theIndex)
 Remove the key of the given index. Caution! The index of the last key can be changed.
 
void RemoveKey (const TheKeyType &theKey1)
 Remove the given key. Caution! The index of the last key can be changed.
 
const TheKeyTypeFindKey (const Standard_Integer theIndex) const
 FindKey.
 
const TheItemTypeFindFromIndex (const Standard_Integer theIndex) const
 FindFromIndex.
 
const TheItemTypeoperator() (const Standard_Integer theIndex) const
 operator ()
 
TheItemTypeChangeFromIndex (const Standard_Integer theIndex)
 ChangeFromIndex.
 
TheItemTypeoperator() (const Standard_Integer theIndex)
 operator ()
 
Standard_Integer FindIndex (const TheKeyType &theKey1) const
 FindIndex.
 
const TheItemTypeFindFromKey (const TheKeyType &theKey1) const
 FindFromKey.
 
TheItemTypeChangeFromKey (const TheKeyType &theKey1)
 ChangeFromKey.
 
const TheItemTypeSeek (const TheKeyType &theKey1) const
 Seek returns pointer to Item by Key. Returns NULL if Key was not found.
 
TheItemTypeChangeSeek (const TheKeyType &theKey1)
 ChangeSeek returns modifiable pointer to Item by Key. Returns NULL if Key was not found.
 
Standard_Boolean FindFromKey (const TheKeyType &theKey1, TheItemType &theValue) const
 Find value for key with copying.
 
void Clear (const Standard_Boolean doReleaseMemory=Standard_False)
 Clear data. If doReleaseMemory is false then the table of buckets is not released and will be reused.
 
void Clear (const Handle< NCollection_BaseAllocator > &theAllocator)
 Clear data and reset allocator.
 
virtual ~NCollection_IndexedDataMap (void)
 Destructor.
 
Standard_Integer Size (void) const
 Size.
 
- Public Member Functions inherited from NCollection_BaseMap
Standard_Integer NbBuckets () const
 NbBuckets.
 
Standard_Integer Extent () const
 Extent.
 
Standard_Boolean IsEmpty () const
 IsEmpty.
 
void Statistics (Standard_OStream &S) const
 Statistics.
 
const Handle< NCollection_BaseAllocator > & Allocator () const
 Returns attached allocator.
 

Protected Member Functions

Standard_Boolean lookup (const TheKeyType &theKey, IndexedDataMapNode *&theNode, size_t &theHash) const
 Lookup for particular key in map.
 
Standard_Boolean lookup (const TheKeyType &theKey, IndexedDataMapNode *&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
 
- Protected Member Functions inherited from NCollection_BaseMap
 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_BaseMapoperator= (NCollection_BaseMap &&) noexcept=delete
 Move operator.
 
 NCollection_BaseMap (const NCollection_BaseMap &)=delete
 Copy Constructor.
 
NCollection_BaseMapoperator= (const NCollection_BaseMap &)=delete
 Assign operator.
 

Protected Attributes

Hasher myHasher
 
- Protected Attributes inherited from NCollection_BaseMap
Handle< NCollection_BaseAllocatormyAllocator
 
NCollection_ListNode ** myData1
 
NCollection_ListNode ** myData2
 

Detailed Description

template<class TheKeyType, class TheItemType, class Hasher = NCollection_DefaultHasher<TheKeyType>>
class NCollection_IndexedDataMap< TheKeyType, TheItemType, 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. An Item is stored with each key.

This class is similar to IndexedMap from NCollection with the Item as a new feature. Note the important difference on the operator (). In the IndexedMap this operator returns the Key. In the IndexedDataMap this operator returns the Item.

See the class Map from NCollection for a discussion about the number of buckets.

Member Typedef Documentation

◆ const_iterator

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
typedef NCollection_StlIterator<std::forward_iterator_tag, Iterator, TheItemType, true> NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::const_iterator

Shorthand for a constant iterator type.

◆ hasher

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
typedef Hasher NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::hasher

◆ iterator

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
typedef NCollection_StlIterator<std::forward_iterator_tag, Iterator, TheItemType, false> NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::iterator

Shorthand for a regular iterator type.

◆ key_type

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
typedef TheKeyType NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::key_type

STL-compliant typedef for key type.

◆ value_type

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
typedef TheItemType NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::value_type

STL-compliant typedef for value type.

Constructor & Destructor Documentation

◆ NCollection_IndexedDataMap() [1/4]

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::NCollection_IndexedDataMap ( )
inline

Empty constructor.

◆ NCollection_IndexedDataMap() [2/4]

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::NCollection_IndexedDataMap ( const Standard_Integer  theNbBuckets,
const Handle< NCollection_BaseAllocator > &  theAllocator = 0L 
)
inlineexplicit

Constructor.

◆ NCollection_IndexedDataMap() [3/4]

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::NCollection_IndexedDataMap ( const NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher > &  theOther)
inline

Copy constructor.

◆ NCollection_IndexedDataMap() [4/4]

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::NCollection_IndexedDataMap ( NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher > &&  theOther)
inlinenoexcept

Move constructor.

◆ ~NCollection_IndexedDataMap()

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
virtual NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::~NCollection_IndexedDataMap ( void  )
inlinevirtual

Destructor.

Member Function Documentation

◆ Add() [1/4]

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
Standard_Integer NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::Add ( const TheKeyType theKey1,
const TheItemType theItem 
)
inline

Returns the Index of already bound Key or appends new Key with specified Item value.

Parameters
theKey1Key to search (and to bind, if it was not bound already)
theItemItem value to set for newly bound Key; ignored if Key was already bound
Returns
index of Key

◆ Add() [2/4]

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
Standard_Integer NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::Add ( const TheKeyType theKey1,
TheItemType &&  theItem 
)
inline

Returns the Index of already bound Key or appends new Key with specified Item value.

Parameters
theKey1Key to search (and to bind, if it was not bound already)
theItemItem value to set for newly bound Key; ignored if Key was already bound
Returns
index of Key

◆ Add() [3/4]

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
Standard_Integer NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::Add ( TheKeyType &&  theKey1,
const TheItemType theItem 
)
inline

Returns the Index of already bound Key or appends new Key with specified Item value.

Parameters
theKey1Key to search (and to bind, if it was not bound already)
theItemItem value to set for newly bound Key; ignored if Key was already bound
Returns
index of Key

◆ Add() [4/4]

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
Standard_Integer NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::Add ( TheKeyType &&  theKey1,
TheItemType &&  theItem 
)
inline

Returns the Index of already bound Key or appends new Key with specified Item value.

Parameters
theKey1Key to search (and to bind, if it was not bound already)
theItemItem value to set for newly bound Key; ignored if Key was already bound
Returns
index of Key

◆ Assign()

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
NCollection_IndexedDataMap & NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::Assign ( const NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher > &  theOther)
inline

Assignment. This method does not change the internal allocator.

◆ begin()

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
iterator NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::begin ( ) const
inline

Returns an iterator pointing to the first element in the map.

◆ cbegin()

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
const_iterator NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::cbegin ( ) const
inline

Returns a const iterator pointing to the first element in the map.

◆ cend()

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
const_iterator NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::cend ( ) const
inline

Returns a const iterator referring to the past-the-end element in the map.

◆ ChangeFromIndex()

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
TheItemType & NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::ChangeFromIndex ( const Standard_Integer  theIndex)
inline

ChangeFromIndex.

◆ ChangeFromKey()

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
TheItemType & NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::ChangeFromKey ( const TheKeyType theKey1)
inline

ChangeFromKey.

◆ ChangeSeek()

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
TheItemType * NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::ChangeSeek ( const TheKeyType theKey1)
inline

ChangeSeek returns modifiable pointer to Item by Key. Returns NULL if Key was not found.

◆ Clear() [1/2]

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
void NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::Clear ( const Handle< NCollection_BaseAllocator > &  theAllocator)
inline

Clear data and reset allocator.

◆ Clear() [2/2]

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
void NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::Clear ( const Standard_Boolean  doReleaseMemory = Standard_False)
inline

Clear data. If doReleaseMemory is false then the table of buckets is not released and will be reused.

◆ Contains()

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
Standard_Boolean NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::Contains ( const TheKeyType theKey1) const
inline

Contains.

◆ end()

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
iterator NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::end ( ) const
inline

Returns an iterator referring to the past-the-end element in the map.

◆ Exchange()

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
void NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::Exchange ( NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher > &  theOther)
inline

Exchange the content of two maps without re-allocations. Notice that allocators will be swapped as well!

◆ FindFromIndex()

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
const TheItemType & NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::FindFromIndex ( const Standard_Integer  theIndex) const
inline

FindFromIndex.

◆ FindFromKey() [1/2]

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
const TheItemType & NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::FindFromKey ( const TheKeyType theKey1) const
inline

FindFromKey.

◆ FindFromKey() [2/2]

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
Standard_Boolean NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::FindFromKey ( const TheKeyType theKey1,
TheItemType theValue 
) const
inline

Find value for key with copying.

Returns
true if key was found

◆ FindIndex()

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
Standard_Integer NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::FindIndex ( const TheKeyType theKey1) const
inline

FindIndex.

◆ FindKey()

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
const TheKeyType & NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::FindKey ( const Standard_Integer  theIndex) const
inline

FindKey.

◆ HashCode()

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
size_t NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::HashCode ( const TheKeyType theKey,
const int  theUpperBound 
) const
inlineprotected

◆ IsEqual()

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
bool NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::IsEqual ( const TheKeyType theKey1,
const TheKeyType theKey2 
) const
inlineprotected

◆ lookup() [1/2]

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
Standard_Boolean NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::lookup ( const TheKeyType theKey,
IndexedDataMapNode *&  theNode 
) const
inlineprotected

Lookup for particular key in map.

Parameters
[in]theKeykey to compute hash
[out]theNodethe detected node with equal key. Can be null.
Returns
true if key is found

◆ lookup() [2/2]

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
Standard_Boolean NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::lookup ( const TheKeyType theKey,
IndexedDataMapNode *&  theNode,
size_t theHash 
) const
inlineprotected

Lookup for particular key in map.

Parameters
[in]theKeykey to compute hash
[out]theNodethe detected node with equal key. Can be null.
[out]theHashcomputed bounded hash code for current key.
Returns
true if key is found

◆ operator()() [1/2]

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
TheItemType & NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::operator() ( const Standard_Integer  theIndex)
inline

operator ()

◆ operator()() [2/2]

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
const TheItemType & NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::operator() ( const Standard_Integer  theIndex) const
inline

operator ()

◆ operator=() [1/2]

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
NCollection_IndexedDataMap & NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::operator= ( const NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher > &  theOther)
inline

Assignment operator.

◆ operator=() [2/2]

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
NCollection_IndexedDataMap & NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::operator= ( NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher > &&  theOther)
inlinenoexcept

Move operator.

◆ RemoveFromIndex()

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
void NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::RemoveFromIndex ( const Standard_Integer  theIndex)
inline

Remove the key of the given index. Caution! The index of the last key can be changed.

◆ RemoveKey()

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
void NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::RemoveKey ( const TheKeyType theKey1)
inline

Remove the given key. Caution! The index of the last key can be changed.

◆ RemoveLast()

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
void NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::RemoveLast ( void  )
inline

RemoveLast.

◆ ReSize()

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
void NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::ReSize ( const Standard_Integer  N)
inline

ReSize.

◆ Seek()

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
const TheItemType * NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::Seek ( const TheKeyType theKey1) const
inline

Seek returns pointer to Item by Key. Returns NULL if Key was not found.

◆ Size()

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
Standard_Integer NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::Size ( void  ) const
inline

Size.

◆ Substitute()

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
void NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::Substitute ( const Standard_Integer  theIndex,
const TheKeyType theKey1,
const TheItemType theItem 
)
inline

Substitute.

◆ Swap()

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
void NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::Swap ( const Standard_Integer  theIndex1,
const Standard_Integer  theIndex2 
)
inline

Swaps two elements with the given indices.

Field Documentation

◆ myHasher

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
Hasher NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::myHasher
protected

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