Skip to content

Commit 4c7c0aa

Browse files
committed
Replaced NCollection_BaseCollection.hxx with NCollection_IndexedMap in SMESH_IndexedMap.hxx
1 parent eaf7d49 commit 4c7c0aa

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

inc/SMESH_IndexedMap.hxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#ifndef SMESH_IndexedMap_HeaderFile
77
#define SMESH_IndexedMap_HeaderFile
88

9-
#include <NCollection_BaseCollection.hxx>
9+
#include <NCollection_IndexedMap.hxx>
1010
#include <NCollection_BaseMap.hxx>
1111
#include <NCollection_TListNode.hxx>
1212
#include <Standard_NoSuchObject.hxx>
@@ -33,7 +33,7 @@
3333
* discussion about the number of buckets.
3434
*/
3535
template <class TheKeyType> class SMESH_IndexedMap
36-
: public NCollection_BaseCollection<TheKeyType>,
36+
: public NCollection_IndexedMap<TheKeyType>,
3737
public NCollection_BaseMap
3838
{
3939
// **************** Adaptation of the TListNode to the INDEXEDmap
@@ -77,7 +77,7 @@ template <class TheKeyType> class SMESH_IndexedMap
7777
public:
7878
// **************** Implementation of the Iterator interface.
7979
class Iterator
80-
: public NCollection_BaseCollection<TheKeyType>::Iterator
80+
: public NCollection_IndexedMap<TheKeyType>::Iterator
8181
{
8282
public:
8383
//! Empty constructor
@@ -126,23 +126,23 @@ template <class TheKeyType> class SMESH_IndexedMap
126126
//! Constructor
127127
SMESH_IndexedMap (const Standard_Integer NbBuckets=1,
128128
const Handle(NCollection_BaseAllocator)& theAllocator=0L) :
129-
NCollection_BaseCollection<TheKeyType>(theAllocator),
129+
NCollection_IndexedMap<TheKeyType>(theAllocator),
130130
NCollection_BaseMap (NbBuckets, Standard_False) {}
131131

132132
//! Copy constructor
133133
SMESH_IndexedMap (const SMESH_IndexedMap& theOther) :
134-
NCollection_BaseCollection<TheKeyType>(theOther.myAllocator),
134+
NCollection_IndexedMap<TheKeyType>(theOther.myAllocator),
135135
NCollection_BaseMap (theOther.NbBuckets(), Standard_False)
136136
{ *this = theOther; }
137137

138138
//! Assign another collection
139-
virtual void Assign (const NCollection_BaseCollection<TheKeyType>& theOther)
139+
virtual void Assign (const NCollection_IndexedMap<TheKeyType>& theOther)
140140
{
141141
if (this == &theOther)
142142
return;
143143
Clear();
144144
ReSize (theOther.Size());
145-
TYPENAME NCollection_BaseCollection<TheKeyType>::Iterator& anIter =
145+
TYPENAME NCollection_IndexedMap<TheKeyType>::Iterator& anIter =
146146
theOther.CreateIterator();
147147
for (; anIter.More(); anIter.Next())
148148
Add(anIter.Value());
@@ -406,7 +406,7 @@ template <class TheKeyType> class SMESH_IndexedMap
406406
// ----------- PRIVATE METHODS -----------
407407

408408
//! Creates Iterator for use on BaseCollection
409-
virtual TYPENAME NCollection_BaseCollection<TheKeyType>::Iterator&
409+
virtual TYPENAME NCollection_IndexedMap<TheKeyType>::Iterator&
410410
CreateIterator(void) const
411411
{ return *(new (this->IterAllocator()) Iterator(*this)); }
412412

0 commit comments

Comments
 (0)