Version: 8.3.0
MySetIterator< ELEM, TSET > Class Template Reference

Template class used for iteration on vector of elements which can resize during iteration. More...

Inheritance diagram for MySetIterator< ELEM, TSET >:

Public Member Functions

 MySetIterator (const TSET &table, bool reverse)
 
virtual bool more ()
 Return true if and only if there are other object in this iterator. More...
 
virtual ELEM next ()
 Return the current object and step to the next one. More...
 
virtual void remove ()
 Delete the current element and step to the next one. More...
 

Protected Attributes

int _iCur
 
int _iEnd
 
int _iDelta
 
const TSET & _table
 

Detailed Description

template<class ELEM, typename TSET>
class MySetIterator< ELEM, TSET >

Template class used for iteration on vector of elements which can resize during iteration.

The iterator returns only elements present upon its creation.

Constructor & Destructor Documentation

template<class ELEM , typename TSET >
MySetIterator< ELEM, TSET >::MySetIterator ( const TSET &  table,
bool  reverse 
)

Member Function Documentation

template<class ELEM , typename TSET >
virtual bool MySetIterator< ELEM, TSET >::more ( )
virtual

Return true if and only if there are other object in this iterator.

Implements SMDS_Iterator< ELEM >.

template<class ELEM , typename TSET >
virtual ELEM MySetIterator< ELEM, TSET >::next ( )
virtual

Return the current object and step to the next one.

Implements SMDS_Iterator< ELEM >.

virtual void SMDS_Iterator< ELEM >::remove ( )
virtualinherited

Delete the current element and step to the next one.

Field Documentation

template<class ELEM , typename TSET >
int MySetIterator< ELEM, TSET >::_iCur
protected
template<class ELEM , typename TSET >
int MySetIterator< ELEM, TSET >::_iDelta
protected
template<class ELEM , typename TSET >
int MySetIterator< ELEM, TSET >::_iEnd
protected
template<class ELEM , typename TSET >
const TSET& MySetIterator< ELEM, TSET >::_table
protected