#include <predicate.h>
Collaboration diagram for oxygen::Predicate::Iterator:
Public Member Functions | |
Iterator (const zeitgeist::ParameterList *l, zeitgeist::ParameterList::TVector::const_iterator i) | |
constructs an Iterator pointing to element i of list l | |
Iterator::Iterator (const zeitgeist::ParameterList *l) | |
constructs an Iterator pointing to the first element of list l | |
Iterator (const Predicate &predicate) | |
constructs an Iterator pointing to the first element of predicate::parameter | |
Iterator () | |
construct an Iterator pointing to Predicate::nullParamList. | |
const boost::any & | operator * () const |
aeturns the element this Iterator points to | |
void | operator++ () |
advances this Iterator on element if possible | |
Iterator | begin () const |
constructs an Iterator pointing to the first element of the associated list | |
Iterator | end () const |
constructs an Iterator pointing to the end() element of the associated list | |
bool | operator!= (const Iterator &i) const |
bool | operator== (const Iterator &i) const |
const zeitgeist::ParameterList::TVector::const_iterator & | GetIterator () const |
zeitgeist::ParameterList::TVector::const_iterator & | GetIterator () |
const zeitgeist::ParameterList * | GetList () const |
Protected Attributes | |
const zeitgeist::ParameterList * | list |
the associated list | |
zeitgeist::ParameterList::TVector::const_iterator | iter |
the encapsulated iterator |
It tries to mimic the behaviour of an STL iterator as much as possible.
This class is necessary because it is not sufficient for the FindParameter method to return a single iterator without the corresponding list as it is possible for list to be nested. A subsequent GetValue method would not be able to test if the end of a TParameterList is reached without knowing the list an iterator belongs to.
Definition at line 65 of file predicate.h.
|
constructs an Iterator pointing to element i of list l
|
|
constructs an Iterator pointing to the first element of predicate::parameter
Definition at line 39 of file predicate.cpp. |
|
construct an Iterator pointing to Predicate::nullParamList. This empty static parameter list acts as a null element and avoids special cases for list==0 in the Iterator implementation. Definition at line 42 of file predicate.cpp. |
|
constructs an Iterator pointing to the first element of the associated list
Definition at line 58 of file predicate.cpp. References zeitgeist::ParameterList::begin(), Iterator(), and list. Here is the call graph for this function: ![]() |
|
constructs an Iterator pointing to the end() element of the associated list
Definition at line 63 of file predicate.cpp. References zeitgeist::ParameterList::end(), Iterator(), and list. Here is the call graph for this function: ![]() |
|
Definition at line 90 of file predicate.cpp. References iter. |
|
Definition at line 85 of file predicate.cpp. References iter. Referenced by oxygen::Predicate::AdvanceValue(), oxygen::Predicate::DescentList(), oxygen::Predicate::GetAnyValue(), and oxygen::Predicate::GetValue(). |
|
Definition at line 95 of file predicate.cpp. References list. Referenced by oxygen::Predicate::AdvanceValue(), oxygen::Predicate::GetAnyValue(), and oxygen::Predicate::GetValue(). |
|
constructs an Iterator pointing to the first element of list l
|
|
aeturns the element this Iterator points to
Definition at line 45 of file predicate.cpp. References iter. |
|
Definition at line 68 of file predicate.cpp. |
|
advances this Iterator on element if possible
Definition at line 50 of file predicate.cpp. References zeitgeist::ParameterList::end(), iter, and list. Here is the call graph for this function: ![]() |
|
Definition at line 76 of file predicate.cpp. |
|
the encapsulated iterator
Definition at line 122 of file predicate.h. Referenced by GetIterator(), operator *(), operator!=(), operator++(), and operator==(). |
|
the associated list
Definition at line 119 of file predicate.h. Referenced by begin(), end(), GetList(), operator!=(), operator++(), and operator==(). |