frepple::HasProblems::EntityIterator Class Reference

This class models a iterator that walks over all available HasProblem entities. More...

#include <model.h>

List of all members.

Public Member Functions

 EntityIterator ()
 EntityIterator (unsigned short i)
 EntityIterator (const EntityIterator &o)
bool operator!= (const EntityIterator &t) const
HasProblemsoperator* () const
EntityIteratoroperator++ ()
HasProblemsoperator-> () const
EntityIteratoroperator= (const EntityIterator &o)
bool operator== (const EntityIterator &t) const
 ~EntityIterator ()

Detailed Description

This class models a iterator that walks over all available HasProblem entities.

This list is containing hard-coding the classes that are implementing this class. It's not ideal, but we don't have an explicit container of the objects (and we don't want one either) and this allows us also to re-use the sorting used for the container classes.

Definition at line 5391 of file model.h.


Constructor & Destructor Documentation

frepple::HasProblems::EntityIterator::EntityIterator ( )
explicit

Default constructor, which creates an iterator to the first HasProblems object.

Definition at line 292 of file problem.cpp.

frepple::HasProblems::EntityIterator::EntityIterator ( unsigned short  i)
inlineexplicit

Used to create an iterator pointing beyond the last HasProblems object.

Definition at line 5422 of file model.h.

frepple::HasProblems::EntityIterator::EntityIterator ( const EntityIterator o)

Copy constructor.

Definition at line 384 of file problem.cpp.

frepple::HasProblems::EntityIterator::~EntityIterator ( )

Destructor.

Definition at line 368 of file problem.cpp.


Member Function Documentation

bool frepple::HasProblems::EntityIterator::operator!= ( const EntityIterator t) const

Inequality operator.
Two iterators are different when they point to different objects.

Definition at line 415 of file problem.cpp.

HasProblems & frepple::HasProblems::EntityIterator::operator* ( ) const

Dereference operator.

Definition at line 438 of file problem.cpp.

HasProblems::EntityIterator & frepple::HasProblems::EntityIterator::operator++ ( )

Pre-increment operator.

Definition at line 323 of file problem.cpp.

HasProblems * frepple::HasProblems::EntityIterator::operator-> ( ) const

Dereference operator.

Definition at line 455 of file problem.cpp.

HasProblems::EntityIterator & frepple::HasProblems::EntityIterator::operator= ( const EntityIterator o)

Assignment operator.

Definition at line 398 of file problem.cpp.

bool frepple::HasProblems::EntityIterator::operator== ( const EntityIterator t) const
inline

Equality operator.
Two iterators are equal when they point to the same object.

Definition at line 5444 of file model.h.


Member Data Documentation

Buffer::iterator* frepple::HasProblems::EntityIterator::bufIter

Definition at line 5400 of file model.h.

Demand::iterator* frepple::HasProblems::EntityIterator::demIter

Definition at line 5403 of file model.h.

OperationPlan::iterator* frepple::HasProblems::EntityIterator::operIter

Definition at line 5402 of file model.h.

Resource::iterator* frepple::HasProblems::EntityIterator::resIter

Definition at line 5401 of file model.h.


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