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>

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 1627 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 1632 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 1639 of file model.h.

frepple::OperationPlan::iterator::iterator ( )
inline

Constructor. The iterator will loop over all operationplans.

Definition at line 1645 of file model.h.

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

Copy constructor.

Definition at line 1657 of file model.h.

Member Function Documentation

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

Inequality operator.

Definition at line 1711 of file model.h.

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

Return the content of the current node.

Definition at line 1660 of file model.h.

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

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

Definition at line 1667 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 1688 of file model.h.

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

Return the content of the current node.

Definition at line 1663 of file model.h.

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

Comparison operator.

Definition at line 1708 of file model.h.


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