Forward const iterator for the Param class. More...
#include <OpenMS/DATASTRUCTURES/Param.h>
Classes | |
struct | TraceInfo |
Struct that captures information on entered / left nodes for ParamIterator. More... | |
Public Member Functions | |
ParamIterator () | |
Default constructor used to create a past-the-end iterator. More... | |
ParamIterator (const Param::ParamNode &root) | |
Constructor for begin iterator. More... | |
~ParamIterator () | |
Destructor. More... | |
const Param::ParamEntry & | operator* () |
Dereferencing. More... | |
const Param::ParamEntry * | operator-> () |
Dereferencing. More... | |
ParamIterator & | operator++ () |
Prefix increment operator. More... | |
ParamIterator | operator++ (int) |
Postfix increment operator. More... | |
bool | operator== (const ParamIterator &rhs) const |
Equality operator. More... | |
bool | operator!= (const ParamIterator &rhs) const |
Equality operator. More... | |
String | getName () const |
Returns the absolute path of the current element (including all sections) More... | |
const std::vector< TraceInfo > & | getTrace () const |
Returns the traceback of the opened and closed sections. More... | |
Protected Attributes | |
const Param::ParamNode * | root_ |
Pointer to the root node. More... | |
Int | current_ |
Index of the current ParamEntry (-1 means invalid) More... | |
std::vector< const Param::ParamNode * > | stack_ |
Pointers to the ParamNodes we are in. More... | |
std::vector< TraceInfo > | trace_ |
Node traversal data during last ++ operation. More... | |
Forward const iterator for the Param class.
ParamIterator | ( | ) |
Default constructor used to create a past-the-end iterator.
ParamIterator | ( | const Param::ParamNode & | root | ) |
Constructor for begin iterator.
~ParamIterator | ( | ) |
Destructor.
String getName | ( | ) | const |
Returns the absolute path of the current element (including all sections)
const std::vector<TraceInfo>& getTrace | ( | ) | const |
Returns the traceback of the opened and closed sections.
bool operator!= | ( | const ParamIterator & | rhs | ) | const |
Equality operator.
const Param::ParamEntry& operator* | ( | ) |
Dereferencing.
ParamIterator& operator++ | ( | ) |
Prefix increment operator.
ParamIterator operator++ | ( | int | ) |
Postfix increment operator.
const Param::ParamEntry* operator-> | ( | ) |
Dereferencing.
bool operator== | ( | const ParamIterator & | rhs | ) | const |
Equality operator.
|
protected |
Index of the current ParamEntry (-1 means invalid)
|
protected |
Pointer to the root node.
|
protected |
Pointers to the ParamNodes we are in.
|
protected |
Node traversal data during last ++ operation.
OpenMS / TOPP release 2.3.0 | Documentation generated on Tue Jan 9 2018 18:22:11 using doxygen 1.8.13 |