SALOME - SMESH
SMDS_SetIterator< VALUE, VALUE_SET_ITERATOR, ACCESOR > Class Template Reference

SMDS_Iterator iterating over abstract set of values like STL containers. More...

#include <SMDS_SetIterator.hxx>

Inheritance diagram for SMDS_SetIterator< VALUE, VALUE_SET_ITERATOR, ACCESOR >:
Inheritance graph
Collaboration diagram for SMDS_SetIterator< VALUE, VALUE_SET_ITERATOR, ACCESOR >:
Collaboration graph

Public Member Functions

 SMDS_SetIterator (const VALUE_SET_ITERATOR &begin, const VALUE_SET_ITERATOR &end)
 
virtual void init (const VALUE_SET_ITERATOR &begin, const VALUE_SET_ITERATOR &end)
 Initialization. More...
 
virtual bool more ()
 Return true if and only if there are other object in this iterator. More...
 
virtual VALUE 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

VALUE_SET_ITERATOR _beg
 
VALUE_SET_ITERATOR _end
 

Detailed Description

template<typename VALUE, typename VALUE_SET_ITERATOR, typename ACCESOR = SMDS::SimpleAccessor<VALUE,VALUE_SET_ITERATOR>>
class SMDS_SetIterator< VALUE, VALUE_SET_ITERATOR, ACCESOR >

SMDS_Iterator iterating over abstract set of values like STL containers.

BE CAREFUL: iterator pointed value is static_cast'ed to VALUE

Definition at line 64 of file SMDS_SetIterator.hxx.

Constructor & Destructor Documentation

◆ SMDS_SetIterator()

template<typename VALUE, typename VALUE_SET_ITERATOR, typename ACCESOR = SMDS::SimpleAccessor<VALUE,VALUE_SET_ITERATOR>>
SMDS_SetIterator< VALUE, VALUE_SET_ITERATOR, ACCESOR >::SMDS_SetIterator ( const VALUE_SET_ITERATOR &  begin,
const VALUE_SET_ITERATOR &  end 
)

Definition at line 69 of file SMDS_SetIterator.hxx.

Member Function Documentation

◆ init()

template<typename VALUE, typename VALUE_SET_ITERATOR, typename ACCESOR = SMDS::SimpleAccessor<VALUE,VALUE_SET_ITERATOR>>
virtual void SMDS_SetIterator< VALUE, VALUE_SET_ITERATOR, ACCESOR >::init ( const VALUE_SET_ITERATOR &  begin,
const VALUE_SET_ITERATOR &  end 
)
virtual

Initialization.

Definition at line 74 of file SMDS_SetIterator.hxx.

Referenced by SMDS_SetIterator< M::mapped_type, M::const_iterator, SMDS::ValueAccessor< M::mapped_type, M::const_iterator > >::SMDS_SetIterator().

Here is the caller graph for this function:

◆ more()

template<typename VALUE, typename VALUE_SET_ITERATOR, typename ACCESOR = SMDS::SimpleAccessor<VALUE,VALUE_SET_ITERATOR>>
virtual bool SMDS_SetIterator< VALUE, VALUE_SET_ITERATOR, ACCESOR >::more ( )
virtual

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

Implements SMDS_Iterator< VALUE >.

Definition at line 79 of file SMDS_SetIterator.hxx.

◆ next()

template<typename VALUE, typename VALUE_SET_ITERATOR, typename ACCESOR = SMDS::SimpleAccessor<VALUE,VALUE_SET_ITERATOR>>
virtual VALUE SMDS_SetIterator< VALUE, VALUE_SET_ITERATOR, ACCESOR >::next ( )
virtual

Return the current object and step to the next one.

Implements SMDS_Iterator< VALUE >.

Definition at line 82 of file SMDS_SetIterator.hxx.

◆ remove()

template<typename VALUE>
virtual void SMDS_Iterator< VALUE >::remove ( )
virtualinherited

Delete the current element and step to the next one.

Definition at line 43 of file SMDS_Iterator.hxx.

Field Documentation

◆ _beg

◆ _end

template<typename VALUE, typename VALUE_SET_ITERATOR, typename ACCESOR = SMDS::SimpleAccessor<VALUE,VALUE_SET_ITERATOR>>
VALUE_SET_ITERATOR SMDS_SetIterator< VALUE, VALUE_SET_ITERATOR, ACCESOR >::_end
protected