#include <ptree_fwd.hpp>
Public Types | |
typedef String::value_type | char_type |
typedef Translator::external_type | key_type |
Public Member Functions | |
std::string | dump () const |
bool | empty () const |
Test if the path is empty. More... | |
string_path & | operator/= (const string_path &o) |
string_path & | operator= (const string_path &o) |
key_type | reduce () |
Take a single element off the path at the front and return it. More... | |
char_type | separator () const |
Get the separator used by this path. More... | |
bool | single () const |
Test if the path contains a single element, i.e. no separators. More... | |
string_path (char_type separator=char_type('.')) | |
Create an empty path. More... | |
string_path (const char_type *value, char_type separator=char_type('.'), Translator tr=Translator()) | |
string_path (const String &value, char_type separator=char_type('.'), Translator tr=Translator()) | |
string_path (const string_path &o) | |
Private Types | |
typedef String::const_iterator | s_c_iter |
typedef String::iterator | s_iter |
Private Member Functions | |
BOOST_STATIC_ASSERT ((is_same< String, typename Translator::internal_type >::value)) | |
s_c_iter | cstart () const |
Private Attributes | |
char_type | m_separator |
s_iter | m_start |
Translator | m_tr |
String | m_value |
Default path class. A path is a sequence of values. Groups of values are separated by the separator value, which defaults to '.' cast to the sequence's value type. The group of values is then passed to the translator to get a key.
If instantiated with std::string and id_translator<std::string>, it accepts paths of the form "one.two.three.four".
String | Any Sequence. If the sequence does not support random- access iteration, concatenation of paths assumes that insertions at the end preserve iterator validity. |
Translator | A translator with internal_type == String. |
Definition at line 36 of file ptree_fwd.hpp.
typedef String::value_type boost::property_tree::string_path< String, Translator >::char_type |
Definition at line 88 of file string_path.hpp.
typedef Translator::external_type boost::property_tree::string_path< String, Translator >::key_type |
Definition at line 87 of file string_path.hpp.
|
private |
Definition at line 156 of file string_path.hpp.
|
private |
Definition at line 155 of file string_path.hpp.
|
inlineexplicit |
Create an empty path.
Definition at line 165 of file string_path.hpp.
|
inline |
Create a path by parsing the given string.
value | A sequence, possibly with separators, that describes the path, e.g. "one.two.three". |
separator | The separator used in parsing. Defaults to '.'. |
tr | The translator used by this path to convert the individual parts to keys. |
Definition at line 170 of file string_path.hpp.
|
inline |
Create a path by parsing the given string.
value | A zero-terminated array of values. Only use if zero- termination makes sense for your type, and your sequence supports construction from it. Intended for string literals. |
separator | The separator used in parsing. Defaults to '.'. |
tr | The translator used by this path to convert the individual parts to keys. |
Definition at line 178 of file string_path.hpp.
|
inline |
Definition at line 186 of file string_path.hpp.
|
private |
|
inlineprivate |
Definition at line 161 of file string_path.hpp.
|
inline |
Definition at line 128 of file string_path.hpp.
|
inline |
Test if the path is empty.
Definition at line 225 of file string_path.hpp.
|
inline |
Append a second path to this one.
Definition at line 134 of file string_path.hpp.
|
inline |
Definition at line 195 of file string_path.hpp.
Translator::external_type boost::property_tree::string_path< String, Translator >::reduce |
Take a single element off the path at the front and return it.
Definition at line 206 of file string_path.hpp.
|
inline |
Get the separator used by this path.
Definition at line 126 of file string_path.hpp.
|
inline |
Test if the path contains a single element, i.e. no separators.
Definition at line 231 of file string_path.hpp.
|
private |
Definition at line 158 of file string_path.hpp.
|
private |
Definition at line 160 of file string_path.hpp.
|
private |
Definition at line 159 of file string_path.hpp.
|
private |
Definition at line 157 of file string_path.hpp.