![]() |
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 112 of file ConfigTree.h.
#include <ConfigTree.h>
Public Types | |
using | iterator_category = std::input_iterator_tag |
using | value_type = ConfigTree |
using | difference_type = std::ptrdiff_t |
using | pointer = ConfigTree * |
using | reference = ConfigTree & |
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::difference_type = std::ptrdiff_t |
Definition at line 117 of file ConfigTree.h.
using BaseLib::ConfigTree::SubtreeIterator::Iterator = boost::property_tree::ptree::const_assoc_iterator |
Definition at line 121 of file ConfigTree.h.
using BaseLib::ConfigTree::SubtreeIterator::iterator_category = std::input_iterator_tag |
Definition at line 115 of file ConfigTree.h.
Definition at line 118 of file ConfigTree.h.
Definition at line 119 of file ConfigTree.h.
Definition at line 116 of file ConfigTree.h.
|
inlineexplicit |
Definition at line 123 of file ConfigTree.h.
|
inline |
Definition at line 153 of file ConfigTree.h.
References it_.
|
inline |
Definition at line 136 of file ConfigTree.h.
References has_incremented_, it_, BaseLib::ConfigTree::markVisited(), parent_, BaseLib::ConfigTree::TAG, and tagname_.
Referenced by BaseLib::ConfigTree::ParameterIterator::operator*().
|
inline |
Definition at line 129 of file ConfigTree.h.
References has_incremented_, and it_.
|
inline |
Definition at line 148 of file ConfigTree.h.
References it_.
|
private |
Definition at line 159 of file ConfigTree.h.
Referenced by operator*(), and operator++().
|
private |
Definition at line 160 of file ConfigTree.h.
Referenced by operator!=(), operator*(), operator++(), and operator==().
|
protected |
Definition at line 164 of file ConfigTree.h.
Referenced by operator*(), and BaseLib::ConfigTree::ParameterIterator::operator*().
|
protected |
Definition at line 163 of file ConfigTree.h.
Referenced by operator*(), and BaseLib::ConfigTree::ParameterIterator::operator*().