ROSE
0.11.122.0
|
#include <Rose/Yaml.h>
Public Types | |
enum | eType { None, SequenceType, MapType, ScalarType } |
Enumeration of node types. More... | |
Public Member Functions | |
Node () | |
Default constructor. More... | |
Node (const Node &node) | |
Copy constructor. More... | |
~Node () | |
Destructor. More... | |
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. More... | |
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 front. More... | |
Node & | pushBack () |
Add new sequence index to back. 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. | |
Rose::Yaml::Node::Node | ( | ) |
Default constructor.
Rose::Yaml::Node::Node | ( | const Node & | node | ) |
Copy constructor.
|
explicit |
Assignment constructors.
Converts node to scalar type if needed.
|
explicit |
Assignment constructors.
Converts node to scalar type if needed.
Rose::Yaml::Node::~Node | ( | ) |
Destructor.
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Node& Rose::Yaml::Node::operator[] | ( | const size_t | index | ) |
Node& Rose::Yaml::Node::operator[] | ( | const size_t | index | ) | const |
Node& Rose::Yaml::Node::operator[] | ( | const std::string & | key | ) |
Node& Rose::Yaml::Node::operator[] | ( | const std::string & | key | ) | const |
|
inline |
|
inline |