OGS
|
A wrapper around a Boost Iterator for iterating over ranges of values.
The methods of this class tell the associated (parent) ConfigTree
object when a setting has been parsed.
Definition at line 200 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 | |
ValueIterator (Iterator const &it, std::string const &root, ConfigTree const &parent) | |
ValueIterator< ValueType > & | operator++ () |
ValueType | operator* () |
bool | operator== (ValueIterator< ValueType > const &other) const |
bool | operator!= (ValueIterator< ValueType > const &other) const |
Private Attributes | |
bool | has_incremented_ = true |
Iterator | it_ |
std::string const | tagname_ |
ConfigTree const & | parent_ |
using BaseLib::ConfigTree::ValueIterator< ValueType >::difference_type = std::ptrdiff_t |
Definition at line 205 of file ConfigTree.h.
using BaseLib::ConfigTree::ValueIterator< ValueType >::Iterator = boost::property_tree::ptree::const_assoc_iterator |
Definition at line 209 of file ConfigTree.h.
using BaseLib::ConfigTree::ValueIterator< ValueType >::iterator_category = std::input_iterator_tag |
Definition at line 203 of file ConfigTree.h.
using BaseLib::ConfigTree::ValueIterator< ValueType >::pointer = ConfigTree* |
Definition at line 206 of file ConfigTree.h.
using BaseLib::ConfigTree::ValueIterator< ValueType >::reference = ConfigTree& |
Definition at line 207 of file ConfigTree.h.
using BaseLib::ConfigTree::ValueIterator< ValueType >::value_type = ConfigTree |
Definition at line 204 of file ConfigTree.h.
|
inlineexplicit |
Definition at line 211 of file ConfigTree.h.
|
inline |
Definition at line 242 of file ConfigTree.h.
References BaseLib::ConfigTree::ValueIterator< ValueType >::it_.
|
inline |
Definition at line 224 of file ConfigTree.h.
References BaseLib::ConfigTree::ConfigTree(), BaseLib::ConfigTree::ValueIterator< ValueType >::has_incremented_, BaseLib::ConfigTree::ValueIterator< ValueType >::it_, BaseLib::ConfigTree::markVisited(), BaseLib::ConfigTree::ValueIterator< ValueType >::parent_, BaseLib::ConfigTree::TAG, and BaseLib::ConfigTree::ValueIterator< ValueType >::tagname_.
|
inline |
Definition at line 217 of file ConfigTree.h.
References BaseLib::ConfigTree::ValueIterator< ValueType >::has_incremented_, and BaseLib::ConfigTree::ValueIterator< ValueType >::it_.
|
inline |
Definition at line 237 of file ConfigTree.h.
References BaseLib::ConfigTree::ValueIterator< ValueType >::it_.
|
private |
Definition at line 248 of file ConfigTree.h.
Referenced by BaseLib::ConfigTree::ValueIterator< ValueType >::operator*(), and BaseLib::ConfigTree::ValueIterator< ValueType >::operator++().
|
private |
Definition at line 249 of file ConfigTree.h.
Referenced by BaseLib::ConfigTree::ValueIterator< ValueType >::operator!=(), BaseLib::ConfigTree::ValueIterator< ValueType >::operator*(), BaseLib::ConfigTree::ValueIterator< ValueType >::operator++(), and BaseLib::ConfigTree::ValueIterator< ValueType >::operator==().
|
private |
Definition at line 251 of file ConfigTree.h.
Referenced by BaseLib::ConfigTree::ValueIterator< ValueType >::operator*().
|
private |
Definition at line 250 of file ConfigTree.h.
Referenced by BaseLib::ConfigTree::ValueIterator< ValueType >::operator*().