Version: 8.3.0
SMDS_SetIterator< VALUE, VALUE_SET_ITERATOR, ACCESOR, VALUE_FILTER > 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, VALUE_FILTER >:

Public Member Functions

 SMDS_SetIterator (const VALUE_SET_ITERATOR &begin, const VALUE_SET_ITERATOR &end, const VALUE_FILTER &filter=VALUE_FILTER())
 
virtual void init (const VALUE_SET_ITERATOR &begin, const VALUE_SET_ITERATOR &end, const VALUE_FILTER &filter=VALUE_FILTER())
 Initialization. More...
 
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

VALUE_SET_ITERATOR _beg
 
VALUE_SET_ITERATOR _end
 
VALUE_FILTER _filter
 

Detailed Description

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

SMDS_Iterator iterating over abstract set of values like STL containers.

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

Constructor & Destructor Documentation

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

Member Function Documentation

template<typename VALUE, typename VALUE_SET_ITERATOR, typename ACCESOR = SMDS::SimpleAccessor<VALUE,VALUE_SET_ITERATOR>, typename VALUE_FILTER = SMDS::PassAllValueFilter<VALUE>>
virtual void SMDS_SetIterator< VALUE, VALUE_SET_ITERATOR, ACCESOR, VALUE_FILTER >::init ( const VALUE_SET_ITERATOR &  begin,
const VALUE_SET_ITERATOR &  end,
const VALUE_FILTER &  filter = VALUE_FILTER() 
)
virtual
template<typename VALUE, typename VALUE_SET_ITERATOR, typename ACCESOR = SMDS::SimpleAccessor<VALUE,VALUE_SET_ITERATOR>, typename VALUE_FILTER = SMDS::PassAllValueFilter<VALUE>>
virtual bool SMDS_SetIterator< VALUE, VALUE_SET_ITERATOR, ACCESOR, VALUE_FILTER >::more ( )
virtual
template<typename VALUE, typename VALUE_SET_ITERATOR, typename ACCESOR = SMDS::SimpleAccessor<VALUE,VALUE_SET_ITERATOR>, typename VALUE_FILTER = SMDS::PassAllValueFilter<VALUE>>
virtual VALUE SMDS_SetIterator< VALUE, VALUE_SET_ITERATOR, ACCESOR, VALUE_FILTER >::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 VALUE_SET_ITERATOR, typename ACCESOR = SMDS::SimpleAccessor<VALUE,VALUE_SET_ITERATOR>, typename VALUE_FILTER = SMDS::PassAllValueFilter<VALUE>>
VALUE_SET_ITERATOR SMDS_SetIterator< VALUE, VALUE_SET_ITERATOR, ACCESOR, VALUE_FILTER >::_beg
protected
template<typename VALUE, typename VALUE_SET_ITERATOR, typename ACCESOR = SMDS::SimpleAccessor<VALUE,VALUE_SET_ITERATOR>, typename VALUE_FILTER = SMDS::PassAllValueFilter<VALUE>>
VALUE_SET_ITERATOR SMDS_SetIterator< VALUE, VALUE_SET_ITERATOR, ACCESOR, VALUE_FILTER >::_end
protected
template<typename VALUE, typename VALUE_SET_ITERATOR, typename ACCESOR = SMDS::SimpleAccessor<VALUE,VALUE_SET_ITERATOR>, typename VALUE_FILTER = SMDS::PassAllValueFilter<VALUE>>
VALUE_FILTER SMDS_SetIterator< VALUE, VALUE_SET_ITERATOR, ACCESOR, VALUE_FILTER >::_filter
protected