|
6 | 6 | #ifndef SMESH_IndexedMap_HeaderFile
|
7 | 7 | #define SMESH_IndexedMap_HeaderFile
|
8 | 8 |
|
9 |
| -#include <NCollection_BaseCollection.hxx> |
| 9 | +#include <NCollection_IndexedMap.hxx> |
10 | 10 | #include <NCollection_BaseMap.hxx>
|
11 | 11 | #include <NCollection_TListNode.hxx>
|
12 | 12 | #include <Standard_NoSuchObject.hxx>
|
|
33 | 33 | * discussion about the number of buckets.
|
34 | 34 | */
|
35 | 35 | template <class TheKeyType> class SMESH_IndexedMap
|
36 |
| - : public NCollection_BaseCollection<TheKeyType>, |
| 36 | + : public NCollection_IndexedMap<TheKeyType>, |
37 | 37 | public NCollection_BaseMap
|
38 | 38 | {
|
39 | 39 | // **************** Adaptation of the TListNode to the INDEXEDmap
|
@@ -77,7 +77,7 @@ template <class TheKeyType> class SMESH_IndexedMap
|
77 | 77 | public:
|
78 | 78 | // **************** Implementation of the Iterator interface.
|
79 | 79 | class Iterator
|
80 |
| - : public NCollection_BaseCollection<TheKeyType>::Iterator |
| 80 | + : public NCollection_IndexedMap<TheKeyType>::Iterator |
81 | 81 | {
|
82 | 82 | public:
|
83 | 83 | //! Empty constructor
|
@@ -126,23 +126,23 @@ template <class TheKeyType> class SMESH_IndexedMap
|
126 | 126 | //! Constructor
|
127 | 127 | SMESH_IndexedMap (const Standard_Integer NbBuckets=1,
|
128 | 128 | const Handle(NCollection_BaseAllocator)& theAllocator=0L) :
|
129 |
| - NCollection_BaseCollection<TheKeyType>(theAllocator), |
| 129 | + NCollection_IndexedMap<TheKeyType>(theAllocator), |
130 | 130 | NCollection_BaseMap (NbBuckets, Standard_False) {}
|
131 | 131 |
|
132 | 132 | //! Copy constructor
|
133 | 133 | SMESH_IndexedMap (const SMESH_IndexedMap& theOther) :
|
134 |
| - NCollection_BaseCollection<TheKeyType>(theOther.myAllocator), |
| 134 | + NCollection_IndexedMap<TheKeyType>(theOther.myAllocator), |
135 | 135 | NCollection_BaseMap (theOther.NbBuckets(), Standard_False)
|
136 | 136 | { *this = theOther; }
|
137 | 137 |
|
138 | 138 | //! Assign another collection
|
139 |
| - virtual void Assign (const NCollection_BaseCollection<TheKeyType>& theOther) |
| 139 | + virtual void Assign (const NCollection_IndexedMap<TheKeyType>& theOther) |
140 | 140 | {
|
141 | 141 | if (this == &theOther)
|
142 | 142 | return;
|
143 | 143 | Clear();
|
144 | 144 | ReSize (theOther.Size());
|
145 |
| - TYPENAME NCollection_BaseCollection<TheKeyType>::Iterator& anIter = |
| 145 | + TYPENAME NCollection_IndexedMap<TheKeyType>::Iterator& anIter = |
146 | 146 | theOther.CreateIterator();
|
147 | 147 | for (; anIter.More(); anIter.Next())
|
148 | 148 | Add(anIter.Value());
|
@@ -406,7 +406,7 @@ template <class TheKeyType> class SMESH_IndexedMap
|
406 | 406 | // ----------- PRIVATE METHODS -----------
|
407 | 407 |
|
408 | 408 | //! Creates Iterator for use on BaseCollection
|
409 |
| - virtual TYPENAME NCollection_BaseCollection<TheKeyType>::Iterator& |
| 409 | + virtual TYPENAME NCollection_IndexedMap<TheKeyType>::Iterator& |
410 | 410 | CreateIterator(void) const
|
411 | 411 | { return *(new (this->IterAllocator()) Iterator(*this)); }
|
412 | 412 |
|
|
0 commit comments