YAML node.
Definition at line 328 of file Yaml.h.
|
|
| Node () |
| | Default constructor.
|
| |
|
| Node (const Node &node) |
| | Copy constructor.
|
| |
|
| ~Node () |
| | Destructor.
|
| |
| | operator bool () const |
| | Predicate to test whether node exists. More...
|
| |
| bool | operator! () const |
| | Predicate to test whether node exists. More...
|
| |
|
void | clear () |
| | Completely clear node.
|
| |
| size_t | size () const |
| | Get size of node. More...
|
| |
| Node & | insert (const size_t index) |
| | Insert sequence item at given index. More...
|
| |
| Node & | pushFront () |
| | Add new sequence index to back. More...
|
| |
| Node & | pushBack () |
| | Add new sequence index to front. More...
|
| |
|
eType | Type () const |
| |
|
bool | IsNone () const |
| |
|
bool | IsSequence () const |
| |
|
bool | IsMap () const |
| |
|
bool | IsScalar () const |
| |
|
void | Clear () |
| |
|
size_t | Size () const |
| |
|
Node & | Insert (const size_t index) |
| |
|
Node & | PushFront () |
| |
|
Node & | PushBack () |
| |
|
void | Erase (const size_t index) |
| |
|
void | Erase (const std::string &key) |
| |
|
Iterator | Begin () |
| |
|
ConstIterator | Begin () const |
| |
|
Iterator | End () |
| |
|
ConstIterator | End () const |
| |
|
template<typename T > |
| T | As () const |
| |
|
template<typename T > |
| T | As (const T &defaultValue) const |
| |
|
| | Node (const std::string &value) |
| | Assignment constructors. More...
|
| |
| | Node (const char *value) |
| | Assignment constructors. More...
|
| |
|
|
eType | type () const |
| | Functions for checking type of node.
|
| |
|
bool | isNone () const |
| | Functions for checking type of node.
|
| |
|
bool | isSequence () const |
| | Functions for checking type of node.
|
| |
|
bool | isMap () const |
| | Functions for checking type of node.
|
| |
|
bool | isScalar () const |
| | Functions for checking type of node.
|
| |
|
|
template<typename T > |
| T | as () const |
| | Get node as given template type.
|
| |
|
template<typename T > |
| T | as (const T &defaultValue) const |
| | Get node as given template type.
|
| |
|
| Node & | operator[] (const size_t index) |
| | Get sequence/map item. More...
|
| |
| Node & | operator[] (const size_t index) const |
| | Get sequence/map item. More...
|
| |
| Node & | operator[] (const std::string &key) |
| | Get sequence/map item. More...
|
| |
| Node & | operator[] (const std::string &key) const |
| | Get sequence/map item. More...
|
| |
|
| void | erase (const size_t index) |
| | Erase item. More...
|
| |
| void | erase (const std::string &key) |
| | Erase item. More...
|
| |
|
|
Node & | operator= (const Node &node) |
| | Assignment operators.
|
| |
|
Node & | operator= (const std::string &value) |
| | Assignment operators.
|
| |
|
Node & | operator= (const char *value) |
| | Assignment operators.
|
| |
|
|
Iterator | begin () |
| | Get start iterator.
|
| |
|
ConstIterator | begin () const |
| | Get start iterator.
|
| |
|
|
Iterator | end () |
| | Get end iterator.
|
| |
|
ConstIterator | end () const |
| | Get end iterator.
|
| |