HoverRace
2.0
|
#include <SeqNode.h>
Public Types | |
using | const_iterator = children_t::const_iterator |
using | iterator = children_t::iterator |
using | value_type = children_t::value_type |
Public Member Functions | |
SeqNode (yaml_document_t *doc, yaml_node_t *node) | |
Constructor. More... | |
virtual | ~SeqNode () |
Destructor. More... | |
const_iterator | begin () const |
iterator | begin () |
const_iterator | end () const |
iterator | end () |
bool | IsEmpty () const |
size_t | Size () const |
![]() | |
Node (yaml_document_t *doc, yaml_node_t *node) | |
virtual | ~Node () |
Private Types | |
using | children_t = std::vector< Node * > |
using | SUPER = Node |
Private Member Functions | |
void | Init () const |
Lazy initialization of the child nodes. More... | |
Private Attributes | |
std::unique_ptr< children_t > | children |
Additional Inherited Members | |
![]() | |
yaml_document_t * | GetDocument () const |
yaml_node_t * | GetNode () const |
|
private |
using HoverRace::Util::yaml::SeqNode::const_iterator = children_t::const_iterator |
using HoverRace::Util::yaml::SeqNode::iterator = children_t::iterator |
|
private |
using HoverRace::Util::yaml::SeqNode::value_type = children_t::value_type |
HoverRace::Util::yaml::SeqNode::SeqNode | ( | yaml_document_t * | doc, |
yaml_node_t * | node | ||
) |
Constructor.
doc | The containing document. |
node | The underlying LibYAML node (may not be nullptr). |
|
virtual |
Destructor.
SeqNode::const_iterator HoverRace::Util::yaml::SeqNode::begin | ( | ) | const |
SeqNode::iterator HoverRace::Util::yaml::SeqNode::begin | ( | ) |
SeqNode::const_iterator HoverRace::Util::yaml::SeqNode::end | ( | ) | const |
SeqNode::iterator HoverRace::Util::yaml::SeqNode::end | ( | ) |
|
private |
Lazy initialization of the child nodes.
|
inline |
size_t HoverRace::Util::yaml::SeqNode::Size | ( | ) | const |
|
mutableprivate |