SMDS_IteratorOnIterators< VALUE, CONTAINER_OF_ITERATORS > Class Template Reference

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

#include <SMDS_IteratorOnIterators.hxx>

Public Member Functions

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...
 
 SMDS_IteratorOnIterators (const CONTAINER_OF_ITERATORS &iterators)
 
- Public Member Functions inherited from SMDS_Iterator< VALUE >
virtual bool more ()=0
 Return true if and only if there are other object in this iterator. More...
 
virtual VALUE next ()=0
 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...
 
virtual ~SMDS_Iterator ()
 Provide virtual destructor just for case if some derived iterator must have a destructor. More...
 

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

◆ SMDS_IteratorOnIterators()

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

Member Function Documentation

◆ more()

template<typename VALUE , typename CONTAINER_OF_ITERATORS >
virtual bool SMDS_IteratorOnIterators< VALUE, CONTAINER_OF_ITERATORS >::more ( )
virtual

Return true iff there are other object in this iterator.

Implements SMDS_Iterator< VALUE >.

◆ next()

template<typename VALUE , typename CONTAINER_OF_ITERATORS >
virtual VALUE SMDS_IteratorOnIterators< VALUE, CONTAINER_OF_ITERATORS >::next ( )
virtual

Return the current object and step to the next one.

Implements SMDS_Iterator< VALUE >.


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