Back to index

salome-smesh  6.5.0
Public Member Functions | Protected Attributes
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
[legend]
Collaboration diagram for SMDS_SetIterator< VALUE, VALUE_SET_ITERATOR, ACCESOR >:
Collaboration graph
[legend]

List of all members.

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.
virtual bool more ()
 Return true if and only if there are other object in this iterator.
virtual VALUE next ()
 Return the current object and step to the next one.
virtual void remove ()
 Delete the current element and step to the next one.

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 65 of file SMDS_SetIterator.hxx.


Constructor & Destructor Documentation

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 
) [inline]

Definition at line 70 of file SMDS_SetIterator.hxx.

  { init ( begin, end ); }

Member Function Documentation

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 
) [inline, virtual]

Initialization.

Definition at line 75 of file SMDS_SetIterator.hxx.

  { _beg = begin; _end = end; }

Here is the caller graph for this function:

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 ( ) [inline, virtual]

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

Implements SMDS_Iterator< VALUE >.

Definition at line 80 of file SMDS_SetIterator.hxx.

{ return _beg != _end; }

Here is the caller graph for this function:

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 ( ) [inline, virtual]

Return the current object and step to the next one.

Implements SMDS_Iterator< VALUE >.

Definition at line 83 of file SMDS_SetIterator.hxx.

{ return ACCESOR::value( _beg++ ); }

Here is the caller graph for this function:

template<typename VALUE>
virtual void SMDS_Iterator< VALUE >::remove ( ) [inline, virtual, inherited]

Delete the current element and step to the next one.

Definition at line 44 of file SMDS_Iterator.hxx.

{}

Member Data Documentation

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 >::_beg [protected]

Definition at line 68 of file SMDS_SetIterator.hxx.

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]

Definition at line 68 of file SMDS_SetIterator.hxx.


The documentation for this class was generated from the following file: