|
The Sparta Modeling Framework
|
Generic value iterator for a SINGLE parameter which represents values ONLY as std::string. More...
#include <Parameter.hpp>
Public Member Functions | |
| ParameterValueIterator (const ParameterBase *pb, size_t idx) | |
| Full Constructor. | |
| ParameterValueIterator (const ParameterValueIterator &rhp) | |
| Copy Constructor. | |
| bool | operator== (const ParameterValueIterator &rhp) |
| Equality test. | |
| bool | operator!= (const ParameterValueIterator &rhp) |
| Inequality test. | |
| const std::string | operator* () const |
| Dereference operator. | |
| const ParameterValueIterator & | operator++ () |
| Preincrement operator. | |
| const ParameterValueIterator | operator++ (int i) |
| Postincrement operator. | |
Generic value iterator for a SINGLE parameter which represents values ONLY as std::string.
For Scalar parameters (including std::string), this itererator will cover exactly 1 element. For vector parameters, this iterator will cover any number of elements.
Iterates values in a ParameterBase by index.
Definition at line 138 of file Parameter.hpp.
|
inline |
Full Constructor.
| pb | ParameterBase whose values will be retrieved by index during iteration |
| idx | must be > 0. Typically, this should a value representing the beginning or end of iteration such as 0 or the size of the relevant ParameterBase <pb>. |
Definition at line 150 of file Parameter.hpp.
|
inline |
Copy Constructor.
| rhp | Iterator whose values will be copied |
Definition at line 161 of file Parameter.hpp.
|
inline |
Inequality test.
| rhp | Other iterator to compare |
Iterators are compared using logical NOT on operator==
Definition at line 186 of file Parameter.hpp.
|
inline |
Dereference operator.
| ParameterException | if this iterator is invalid (does not refer to a value within the referenced ParameterBase). |
Definition at line 197 of file Parameter.hpp.

|
inline |
Preincrement operator.
| ParameterException | if this iterator is invalid (does not refer to a value within the referenced ParameterBase). |
Definition at line 210 of file Parameter.hpp.

|
inline |
Postincrement operator.
| ParameterException | if this iterator is invalid (does not refer to a value within the referenced ParameterBase). |
Definition at line 224 of file Parameter.hpp.
|
inline |
Equality test.
| rhp | Other iterator to compare |
Iterators are considered equal IFF referenced ParameterBases match by address and index matches exactly.
Definition at line 174 of file Parameter.hpp.