Node class.
More...
#include <Yaml.hpp>
◆ eType
Enumeration of node types.
Enumerator |
---|
None | |
SequenceType | |
MapType | |
ScalarType | |
◆ Node() [1/4]
◆ Node() [2/4]
Yaml::Node::Node |
( |
const Node & |
node | ) |
|
◆ Node() [3/4]
Yaml::Node::Node |
( |
const std::string & |
value | ) |
|
|
explicit |
◆ Node() [4/4]
Yaml::Node::Node |
( |
const char * |
value | ) |
|
|
explicit |
◆ ~Node()
◆ As() [1/2]
template<typename T >
T Yaml::Node::As |
( |
| ) |
const |
|
inline |
◆ As() [2/2]
template<typename T >
T Yaml::Node::As |
( |
const T & |
defaultValue | ) |
const |
|
inline |
◆ Begin() [1/2]
◆ Begin() [2/2]
◆ Clear()
void Yaml::Node::Clear |
( |
| ) |
|
◆ End() [1/2]
◆ End() [2/2]
◆ Erase() [1/2]
void Yaml::Node::Erase |
( |
const std::string & |
key | ) |
|
◆ Erase() [2/2]
void Yaml::Node::Erase |
( |
size_t |
index | ) |
|
◆ Insert()
Node & Yaml::Node::Insert |
( |
size_t |
index | ) |
|
Insert sequence item at given index. Converts node to sequence type if needed. Adding new item to end of sequence if index is larger than sequence size.
References index, NODE_IMP, and TYPE_IMP.
◆ IsMap()
bool Yaml::Node::IsMap |
( |
| ) |
const |
◆ IsNone()
bool Yaml::Node::IsNone |
( |
| ) |
const |
◆ IsScalar()
bool Yaml::Node::IsScalar |
( |
| ) |
const |
◆ IsSequence()
bool Yaml::Node::IsSequence |
( |
| ) |
const |
◆ operator=() [1/3]
Node & Yaml::Node::operator= |
( |
const char * |
value | ) |
|
◆ operator=() [2/3]
Node & Yaml::Node::operator= |
( |
const Node & |
node | ) |
|
Assignment operators.
References NODE_IMP.
◆ operator=() [3/3]
Node & Yaml::Node::operator= |
( |
const std::string & |
value | ) |
|
◆ operator[]() [1/2]
Node & Yaml::Node::operator[] |
( |
const std::string & |
key | ) |
|
◆ operator[]() [2/2]
Node & Yaml::Node::operator[] |
( |
size_t |
index | ) |
|
Get sequence/map item. Converts node to sequence/map type if needed.
- Parameters
-
index | Sequence index. Returns None type Node if index is unknown. |
key | Map key. Creates a new node if key is unknown. |
References Clear(), index, NODE_IMP, and TYPE_IMP.
◆ PushBack()
Node & Yaml::Node::PushBack |
( |
| ) |
|
Add new sequence index to front. Converts node to sequence type if needed.
References NODE_IMP, and TYPE_IMP.
◆ PushFront()
Node & Yaml::Node::PushFront |
( |
| ) |
|
Add new sequence index to back. Converts node to sequence type if needed.
References NODE_IMP, and TYPE_IMP.
◆ Size()
size_t Yaml::Node::Size |
( |
| ) |
const |
Get size of node. Serialization of type None or Scalar will return 0.
References TYPE_IMP.
◆ Type()
Functions for checking type of node.
References NODE_IMP.
◆ Iterator
The documentation for this class was generated from the following files:
- /nebulastream/nes-common/include/Util/yaml/Yaml.hpp
- /nebulastream/nes-common/src/Util/yaml/Yaml.cpp