n gp
n math
r OS
+n FlexLexer
t TKMath
t TKernel
n Adaptor2d
anIterator.More(); anIterator.Next())
{
OCCT_DUMP_VECTOR_CLASS (theOStream, Message::MetricToString (anIterator.Key()),
- 2, anIterator.Value(), anIterator.Value())
+ 2, anIterator.Value().first, anIterator.Value().second)
}
}
using iterator = NCollection_IndexedIterator<std::random_access_iterator_tag, NCollection_Array1, value_type, false>;
using const_iterator = NCollection_IndexedIterator<std::random_access_iterator_tag, NCollection_Array1, value_type, true>;
+ using Iterator = NCollection_Iterator<NCollection_Array1<TheItemType>>;
public:
- // Iterator class
- class Iterator : public NCollection_Iterator<NCollection_Array1>
- {
- public:
- using NCollection_Iterator<NCollection_Array1>::NCollection_Iterator;
-
- const_reference Value() const
- {
- return *NCollection_Iterator<NCollection_Array1>::ValueIter();
- }
-
- reference ChangeValue()
- {
- return *NCollection_Iterator<NCollection_Array1>::ChangeValueIter();
- }
- };
-
const_iterator begin() const
{
return const_iterator(*this);
mySize(theUpper - theLower + 1),
myPointer(nullptr),
myIsOwner(false),
- allocator_type(theAlloc)
+ myAllocator(theAlloc)
{
if (mySize == 0)
{
using iterator = NCollection_IndexedIterator<std::random_access_iterator_tag, NCollection_DynamicArray, value_type, false>;
using const_iterator = NCollection_IndexedIterator<std::random_access_iterator_tag, NCollection_DynamicArray, value_type, true>;
+ using Iterator = NCollection_Iterator<NCollection_DynamicArray<TheItemType>>;
public:
- // Iterator class
- class Iterator : public NCollection_Iterator<NCollection_DynamicArray>
- {
- public:
- using NCollection_Iterator<NCollection_DynamicArray>::NCollection_Iterator;
-
- const_reference Value() const
- {
- return *NCollection_Iterator<NCollection_DynamicArray>::ValueIter();
- }
-
- reference ChangeValue()
- {
- return *NCollection_Iterator<NCollection_DynamicArray>::ChangeValueIter();
- }
- };
-
const_iterator begin() const
{
return const_iterator(*this);
++(myCur);
}
+ const typename Container::const_reference Value() const
+ {
+ return *myCur;
+ }
+
+ const typename Container::reference ChangeValue()
+ {
+ return *myCur;
+ }
+
bool operator==(const NCollection_Iterator& theOther) { return myLast == theOther.myLast && myCur == theOther.myCur; }
bool operator!=(const NCollection_Iterator& theOther) { return myLast != theOther.myLast || myCur != theOther.myCur; }