![]() |
OGS
|
A wrapper around a Boost Iterator for iterating over ranges of subtrees.
The methods of this class tell the associated (parent) ConfigTree
object when a setting has been parsed.
Definition at line 110 of file ConfigTree.h.
#include <ConfigTree.h>
Public Types | |
using | Iterator = boost::property_tree::ptree::const_assoc_iterator |
Public Member Functions | |
SubtreeIterator (Iterator const &it, std::string const &root, ConfigTree const &parent) | |
SubtreeIterator & | operator++ () |
ConfigTree | operator* () |
bool | operator== (SubtreeIterator const &other) const |
bool | operator!= (SubtreeIterator const &other) const |
Protected Attributes | |
std::string const | tagname_ |
ConfigTree const & | parent_ |
Private Attributes | |
bool | has_incremented_ = true |
Iterator | it_ |
using BaseLib::ConfigTree::SubtreeIterator::Iterator = boost::property_tree::ptree::const_assoc_iterator |
Definition at line 114 of file ConfigTree.h.
|
inlineexplicit |
Definition at line 116 of file ConfigTree.h.
|
inline |
Definition at line 146 of file ConfigTree.h.
References it_.
|
inline |
Definition at line 129 of file ConfigTree.h.
References BaseLib::ConfigTree::ConfigTree(), has_incremented_, it_, BaseLib::ConfigTree::markVisited(), parent_, BaseLib::ConfigTree::TAG, and tagname_.
Referenced by BaseLib::ConfigTree::ParameterIterator::operator*().
|
inline |
Definition at line 122 of file ConfigTree.h.
References has_incremented_, and it_.
|
inline |
Definition at line 141 of file ConfigTree.h.
References it_.
|
private |
Definition at line 152 of file ConfigTree.h.
Referenced by operator*(), and operator++().
|
private |
Definition at line 153 of file ConfigTree.h.
Referenced by operator!=(), operator*(), operator++(), and operator==().
|
protected |
Definition at line 157 of file ConfigTree.h.
Referenced by operator*(), and BaseLib::ConfigTree::ParameterIterator::operator*().
|
protected |
Definition at line 156 of file ConfigTree.h.
Referenced by operator*(), and BaseLib::ConfigTree::ParameterIterator::operator*().