|
Open CASCADE Technology
6.7.1
|
#include <NCollection_IndexedMap.hxx>

Data Structures | |
| class | Iterator |
Public Member Functions | |
| NCollection_IndexedMap (const Standard_Integer NbBuckets=1, const Handle< NCollection_BaseAllocator > &theAllocator=0L) | |
| Constructor. More... | |
| NCollection_IndexedMap (const NCollection_IndexedMap &theOther) | |
| Copy constructor. More... | |
| virtual void | Assign (const NCollection_BaseCollection< TheKeyType > &theOther) |
| Assign another collection. More... | |
| void | Exchange (NCollection_IndexedMap &theOther) |
| Exchange the content of two maps without re-allocations. Notice that allocators will be swapped as well! More... | |
| NCollection_IndexedMap & | operator= (const NCollection_IndexedMap &theOther) |
| = another map More... | |
| void | ReSize (const Standard_Integer N) |
| ReSize. More... | |
| Standard_Integer | Add (const TheKeyType &theKey1) |
| Add. More... | |
| Standard_Boolean | Contains (const TheKeyType &theKey1) const |
| Contains. More... | |
| void | Substitute (const Standard_Integer theIndex, const TheKeyType &theKey1) |
| Substitute. More... | |
| void | RemoveLast (void) |
| RemoveLast. More... | |
| const TheKeyType & | FindKey (const Standard_Integer theKey2) const |
| FindKey. More... | |
| const TheKeyType & | operator() (const Standard_Integer theKey2) const |
| operator () More... | |
| Standard_Integer | FindIndex (const TheKeyType &theKey1) const |
| FindIndex. 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_IndexedMap (void) | |
| Destructor. More... | |
| virtual Standard_Integer | Size (void) const |
| Size. More... | |
Public Member Functions inherited from NCollection_BaseCollection< TheKeyType > | |
| NCollection_BaseCollection (const Handle< NCollection_BaseAllocator > &theAllocator=0L) | |
| Common for all collections constructor takes care of theAllocator. More... | |
| virtual void | Assign (const NCollection_BaseCollection &theOther)=0 |
| Virtual assignment. More... | |
| virtual | ~NCollection_BaseCollection (void) |
| Destructor - must be implemented to release the memory. More... | |
| const Handle < NCollection_BaseAllocator > & | Allocator () const |
| Returns attached allocator. 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... | |
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.
|
inline |
Constructor.
|
inline |
Copy constructor.
|
inline |
Destructor.
|
inline |
Add.
|
inlinevirtual |
Assign another collection.
|
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 |
Contains.
|
inline |
Exchange the content of two maps without re-allocations. Notice that allocators will be swapped as well!
|
inline |
FindIndex.
|
inline |
FindKey.
|
inline |
operator ()
|
inline |
= another map
|
inline |
RemoveLast.
|
inline |
ReSize.
|
inlinevirtual |
Size.
Implements NCollection_BaseCollection< TheKeyType >.
|
inline |
Substitute.
1.8.5