Flow123d  master-f44eb46
Public Member Functions | Protected Attributes | List of all members
Iter< Object > Class Template Reference

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

#include <general_iterator.hh>

Public Member Functions

 Iter (const Object &object)
 
bool operator== (const Iter &other)
 equal operator More...
 
bool operator!= (const Iter &other)
 non-equal operator More...
 
const Object & operator* () const
 
const Object * operator-> () const
 -> dereference operator More...
 
Iteroperator++ ()
 prefix increment More...
 

Protected Attributes

Object object_
 

Detailed Description

template<class Object>
class Iter< Object >

General iterator template. Provides iterator over objects of type Object 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

◆ Iter()

template<class Object >
Iter< Object >::Iter ( const Object &  object)
inline

Definition at line 103 of file general_iterator.hh.

Member Function Documentation

◆ operator!=()

template<class Object >
bool Iter< Object >::operator!= ( const Iter< Object > &  other)
inline

non-equal operator

Definition at line 114 of file general_iterator.hh.

◆ operator*()

template<class Object >
const Object & Iter< Object >::operator*
inline
  • dereference operator

Definition at line 120 of file general_iterator.hh.

◆ operator++()

template<class Object >
Iter< Object > & Iter< Object >::operator++
inline

prefix increment

Definition at line 132 of file general_iterator.hh.

◆ operator->()

template<class Object >
const Object * Iter< Object >::operator->
inline

-> dereference operator

Definition at line 126 of file general_iterator.hh.

◆ operator==()

template<class Object >
bool Iter< Object >::operator== ( const Iter< Object > &  other)
inline

equal operator

Definition at line 108 of file general_iterator.hh.

Member Data Documentation

◆ object_

template<class Object >
Object Iter< Object >::object_
protected

Definition at line 54 of file general_iterator.hh.


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