Flow123d  release_3.0.0-1106-ga3b2e4c
Public Member Functions | Private Attributes | List of all members
IterConvert< ObjectIn, ObjectOut > Class Template Reference

General iterator template. Provides iterator over objects of type ObjectIn in some container. More...

#include <general_iterator.hh>

Public Member Functions

 IterConvert (const ObjectIn &object)
 
bool operator== (const IterConvert &other)
 equal operator More...
 
bool operator!= (const IterConvert &other)
 non-equal operator More...
 
const ObjectOut & operator* () const
 
const ObjectOut * operator-> () const
 -> dereference operator More...
 
IterConvertoperator++ ()
 prefix increment More...
 

Private Attributes

ObjectIn object_
 Output element of the output mesh. More...
 
ObjectOut out_
 

Detailed Description

template<class ObjectIn, class ObjectOut>
class IterConvert< ObjectIn, ObjectOut >

General iterator template. Provides iterator over objects of type ObjectIn in some container.

Operators '*' and '->' returns objects of type ObjectOut

Requires the template object to implement:

Definition at line 32 of file general_iterator.hh.

Constructor & Destructor Documentation

template<class ObjectIn , class ObjectOut >
IterConvert< ObjectIn, ObjectOut >::IterConvert ( const ObjectIn &  object)
inline

Definition at line 91 of file general_iterator.hh.

Member Function Documentation

template<class ObjectIn , class ObjectOut >
bool IterConvert< ObjectIn, ObjectOut >::operator!= ( const IterConvert< ObjectIn, ObjectOut > &  other)
inline

non-equal operator

Definition at line 102 of file general_iterator.hh.

template<class ObjectIn , class ObjectOut >
const ObjectOut & IterConvert< ObjectIn, ObjectOut >::operator* ( ) const
inline
  • dereference operator

Definition at line 108 of file general_iterator.hh.

template<class ObjectIn , class ObjectOut >
IterConvert< ObjectIn, ObjectOut > & IterConvert< ObjectIn, ObjectOut >::operator++ ( )
inline

prefix increment

Definition at line 122 of file general_iterator.hh.

template<class ObjectIn , class ObjectOut >
const ObjectOut * IterConvert< ObjectIn, ObjectOut >::operator-> ( ) const
inline

-> dereference operator

Definition at line 115 of file general_iterator.hh.

template<class ObjectIn , class ObjectOut >
bool IterConvert< ObjectIn, ObjectOut >::operator== ( const IterConvert< ObjectIn, ObjectOut > &  other)
inline

equal operator

Definition at line 96 of file general_iterator.hh.

Member Data Documentation

template<class ObjectIn, class ObjectOut>
ObjectIn IterConvert< ObjectIn, ObjectOut >::object_
private

Output element of the output mesh.

Definition at line 55 of file general_iterator.hh.

template<class ObjectIn, class ObjectOut>
ObjectOut IterConvert< ObjectIn, ObjectOut >::out_
mutableprivate

Definition at line 56 of file general_iterator.hh.


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