frepple::OperationPlan::iterator Class Reference

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

#include <model.h>

List of all members.

Public Member Functions

 iterator (const Operation *x)
 iterator (const OperationPlan *x)
 iterator ()
 iterator (const iterator &it)
bool operator!= (const iterator &y) const
OperationPlanoperator* () const
iteratoroperator++ ()
iterator operator++ (int)
OperationPlanoperator-> () const
bool operator== (const iterator &y) const

Detailed Description

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

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

Definition at line 1912 of file model.h.


Constructor & Destructor Documentation

frepple::OperationPlan::iterator::iterator ( const Operation x) [inline]

Constructor. The iterator will loop only over the operationplans of the operation passed.

Definition at line 1917 of file model.h.

frepple::OperationPlan::iterator::iterator ( const OperationPlan x) [inline]

Constructor. The iterator will loop only over the suboperationplans of the operationplan passed.

Definition at line 1924 of file model.h.

frepple::OperationPlan::iterator::iterator ( ) [inline]

Constructor. The iterator will loop over all operationplans.

Definition at line 1930 of file model.h.

frepple::OperationPlan::iterator::iterator ( const iterator it) [inline]

Copy constructor.

Definition at line 1942 of file model.h.


Member Function Documentation

bool frepple::OperationPlan::iterator::operator!= ( const iterator y) const [inline]

Inequality operator.

Definition at line 1996 of file model.h.

OperationPlan& frepple::OperationPlan::iterator::operator* ( ) const [inline]

Return the content of the current node.

Definition at line 1945 of file model.h.

iterator& frepple::OperationPlan::iterator::operator++ ( ) [inline]

Pre-increment operator which moves the pointer to the next element.

Definition at line 1952 of file model.h.

iterator frepple::OperationPlan::iterator::operator++ ( int  ) [inline]

Post-increment operator which moves the pointer to the next element.

Definition at line 1973 of file model.h.

OperationPlan* frepple::OperationPlan::iterator::operator-> ( ) const [inline]

Return the content of the current node.

Definition at line 1948 of file model.h.

bool frepple::OperationPlan::iterator::operator== ( const iterator y) const [inline]

Comparison operator.

Definition at line 1993 of file model.h.


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

Documentation generated for frePPLe by  doxygen