frepple::Problem::const_iterator Class Reference

This class models an STL-like iterator that allows us to iterate over the named entities in a simple and safe way. More...

#include <model.h>

Public Member Functions

 const_iterator (HasProblems *o)
 
 const_iterator (Problem *o)
 
 const_iterator ()
 
bool operator!= (const const_iterator &t) const
 
Problemoperator* () const
 
const_iteratoroperator++ ()
 
Problemoperator-> () const
 
bool operator== (const const_iterator &t) const
 

Friends

class Problem
 

Detailed Description

This class models an STL-like iterator that allows us to iterate over the named entities in a simple and safe way.

Objects of this class are returned by the begin() and end() functions.

See Also
Problem::begin()
Problem::begin(HasProblem*)
Problem::end()

Definition at line 5550 of file model.h.

Constructor & Destructor Documentation

frepple::Problem::const_iterator::const_iterator ( HasProblems o)
inlineexplicit

Creates an iterator that will loop through the problems of a single entity only.
This constructor is also used to create a end-iterator, when passed a NULL pointer as argument.

Definition at line 5566 of file model.h.

frepple::Problem::const_iterator::const_iterator ( Problem o)
inlineexplicit

Creates an iterator that will loop through the constraints of a demand.

Definition at line 5572 of file model.h.

frepple::Problem::const_iterator::const_iterator ( )
inlineexplicit

Creates an iterator that will loop through the problems of all entities.

Definition at line 5577 of file model.h.

Member Function Documentation

bool frepple::Problem::const_iterator::operator!= ( const const_iterator t) const
inline

Inequality operator.

Definition at line 5590 of file model.h.

Problem& frepple::Problem::const_iterator::operator* ( ) const
inline

Definition at line 5595 of file model.h.

Problem::const_iterator & frepple::Problem::const_iterator::operator++ ( )

Pre-increment operator.

Definition at line 486 of file problem.cpp.

Problem* frepple::Problem::const_iterator::operator-> ( ) const
inline

Definition at line 5596 of file model.h.

bool frepple::Problem::const_iterator::operator== ( const const_iterator t) const
inline

Equality operator.

Definition at line 5593 of file model.h.

Friends And Related Function Documentation

friend class Problem
friend

Definition at line 5552 of file model.h.


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