Version: 8.3.0
SMDS_IteratorOnIterators< VALUE, CONTAINER_OF_ITERATORS > Class Template Reference

SMDS_Iterator iterating over all elements provided by other iterators. More...

#include <SMDS_IteratorOnIterators.hxx>

Inheritance diagram for SMDS_IteratorOnIterators< VALUE, CONTAINER_OF_ITERATORS >:

Public Member Functions

 SMDS_IteratorOnIterators (const CONTAINER_OF_ITERATORS &iterators)
 
virtual bool more ()
 Return true iff 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

CONTAINER_OF_ITERATORS _iterators
 
CONTAINER_OF_ITERATORS::iterator _beg
 
CONTAINER_OF_ITERATORS::iterator _end
 

Detailed Description

template<typename VALUE, typename CONTAINER_OF_ITERATORS>
class SMDS_IteratorOnIterators< VALUE, CONTAINER_OF_ITERATORS >

SMDS_Iterator iterating over all elements provided by other iterators.

Other iterators must implement SMDS_Iterator iterface and must be provided within a stl-like container BE CAREFUL: iterator pointed value is static_cast'ed to VALUE

Constructor & Destructor Documentation

template<typename VALUE , typename CONTAINER_OF_ITERATORS >
SMDS_IteratorOnIterators< VALUE, CONTAINER_OF_ITERATORS >::SMDS_IteratorOnIterators ( const CONTAINER_OF_ITERATORS &  iterators)

Member Function Documentation

template<typename VALUE , typename CONTAINER_OF_ITERATORS >
virtual bool SMDS_IteratorOnIterators< VALUE, CONTAINER_OF_ITERATORS >::more ( )
virtual
template<typename VALUE , typename CONTAINER_OF_ITERATORS >
virtual VALUE SMDS_IteratorOnIterators< VALUE, CONTAINER_OF_ITERATORS >::next ( )
virtual
template<typename VALUE>
virtual void SMDS_Iterator< VALUE >::remove ( )
virtualinherited

Delete the current element and step to the next one.

Field Documentation

template<typename VALUE , typename CONTAINER_OF_ITERATORS >
CONTAINER_OF_ITERATORS::iterator SMDS_IteratorOnIterators< VALUE, CONTAINER_OF_ITERATORS >::_beg
protected
template<typename VALUE , typename CONTAINER_OF_ITERATORS >
CONTAINER_OF_ITERATORS::iterator SMDS_IteratorOnIterators< VALUE, CONTAINER_OF_ITERATORS >::_end
protected
template<typename VALUE , typename CONTAINER_OF_ITERATORS >
CONTAINER_OF_ITERATORS SMDS_IteratorOnIterators< VALUE, CONTAINER_OF_ITERATORS >::_iterators
protected