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 114 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 119 of file ConfigTree.h.
using BaseLib::ConfigTree::SubtreeIterator::Iterator = boost::property_tree::ptree::const_assoc_iterator |
Definition at line 123 of file ConfigTree.h.
using BaseLib::ConfigTree::SubtreeIterator::iterator_category = std::input_iterator_tag |
Definition at line 117 of file ConfigTree.h.
Definition at line 120 of file ConfigTree.h.
Definition at line 121 of file ConfigTree.h.
Definition at line 118 of file ConfigTree.h.
|
inlineexplicit |
Definition at line 125 of file ConfigTree.h.
|
inline |
Definition at line 155 of file ConfigTree.h.
References it_.
|
inline |
Definition at line 138 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 131 of file ConfigTree.h.
References has_incremented_, and it_.
|
inline |
Definition at line 150 of file ConfigTree.h.
References it_.
|
private |
Definition at line 161 of file ConfigTree.h.
Referenced by operator*(), and operator++().
|
private |
Definition at line 162 of file ConfigTree.h.
Referenced by operator!=(), operator*(), operator++(), and operator==().
|
protected |
Definition at line 166 of file ConfigTree.h.
Referenced by operator*(), and BaseLib::ConfigTree::ParameterIterator::operator*().
|
protected |
Definition at line 165 of file ConfigTree.h.
Referenced by operator*(), and BaseLib::ConfigTree::ParameterIterator::operator*().