#include <nodebuilder.h>

Public Member Functions | |
| NodeBuilder (Node &root) | |
| virtual void | OnAlias (const Mark &mark, anchor_t anchor) |
| virtual void | OnDocumentEnd () |
| virtual void | OnDocumentStart (const Mark &mark) |
| virtual void | OnMapEnd () |
| virtual void | OnMapStart (const Mark &mark, const std::string &tag, anchor_t anchor) |
| virtual void | OnNull (const Mark &mark, anchor_t anchor) |
| virtual void | OnScalar (const Mark &mark, const std::string &tag, anchor_t anchor, const std::string &value) |
| virtual void | OnSequenceEnd () |
| virtual void | OnSequenceStart (const Mark &mark, const std::string &tag, anchor_t anchor) |
| virtual | ~NodeBuilder () |
Private Types | |
| typedef std::vector< Node * > | Anchors |
Private Member Functions | |
| void | Insert (Node &node) |
| void | Pop () |
| Node & | Push (anchor_t anchor) |
| Node & | Push () |
| void | RegisterAnchor (anchor_t anchor, Node &node) |
| Node & | Top () |
Private Attributes | |
| Anchors | m_anchors |
| std::stack< bool > | m_didPushKey |
| bool | m_finished |
| bool | m_initializedRoot |
| std::stack< Node * > | m_pendingKeys |
| Node & | m_root |
| std::stack< Node * > | m_stack |
Definition at line 18 of file nodebuilder.h.
typedef std::vector<Node *> YAML_PM::NodeBuilder::Anchors [private] |
Definition at line 55 of file nodebuilder.h.
| YAML_PM::NodeBuilder::NodeBuilder | ( | Node & | root | ) | [explicit] |
Definition at line 8 of file nodebuilder.cpp.
| YAML_PM::NodeBuilder::~NodeBuilder | ( | ) | [virtual] |
Definition at line 14 of file nodebuilder.cpp.
| void YAML_PM::NodeBuilder::Insert | ( | Node & | node | ) | [private] |
Definition at line 110 of file nodebuilder.cpp.
| void YAML_PM::NodeBuilder::OnAlias | ( | const Mark & | mark, |
| anchor_t | anchor | ||
| ) | [virtual] |
Implements YAML_PM::EventHandler.
Definition at line 34 of file nodebuilder.cpp.
| void YAML_PM::NodeBuilder::OnDocumentEnd | ( | ) | [virtual] |
Implements YAML_PM::EventHandler.
Definition at line 22 of file nodebuilder.cpp.
| void YAML_PM::NodeBuilder::OnDocumentStart | ( | const Mark & | mark | ) | [virtual] |
Implements YAML_PM::EventHandler.
Definition at line 18 of file nodebuilder.cpp.
| void YAML_PM::NodeBuilder::OnMapEnd | ( | ) | [virtual] |
Implements YAML_PM::EventHandler.
Definition at line 67 of file nodebuilder.cpp.
| void YAML_PM::NodeBuilder::OnMapStart | ( | const Mark & | mark, |
| const std::string & | tag, | ||
| anchor_t | anchor | ||
| ) | [virtual] |
Implements YAML_PM::EventHandler.
Definition at line 60 of file nodebuilder.cpp.
| void YAML_PM::NodeBuilder::OnNull | ( | const Mark & | mark, |
| anchor_t | anchor | ||
| ) | [virtual] |
Implements YAML_PM::EventHandler.
Definition at line 27 of file nodebuilder.cpp.
| void YAML_PM::NodeBuilder::OnScalar | ( | const Mark & | mark, |
| const std::string & | tag, | ||
| anchor_t | anchor, | ||
| const std::string & | value | ||
| ) | [virtual] |
Implements YAML_PM::EventHandler.
Definition at line 41 of file nodebuilder.cpp.
| void YAML_PM::NodeBuilder::OnSequenceEnd | ( | ) | [virtual] |
Implements YAML_PM::EventHandler.
Definition at line 55 of file nodebuilder.cpp.
| void YAML_PM::NodeBuilder::OnSequenceStart | ( | const Mark & | mark, |
| const std::string & | tag, | ||
| anchor_t | anchor | ||
| ) | [virtual] |
Implements YAML_PM::EventHandler.
Definition at line 49 of file nodebuilder.cpp.
| void YAML_PM::NodeBuilder::Pop | ( | ) | [private] |
Definition at line 97 of file nodebuilder.cpp.
| Node & YAML_PM::NodeBuilder::Push | ( | anchor_t | anchor | ) | [private] |
Definition at line 73 of file nodebuilder.cpp.
| Node & YAML_PM::NodeBuilder::Push | ( | ) | [private] |
Definition at line 80 of file nodebuilder.cpp.
| void YAML_PM::NodeBuilder::RegisterAnchor | ( | anchor_t | anchor, |
| Node & | node | ||
| ) | [private] |
Definition at line 138 of file nodebuilder.cpp.
| Node & YAML_PM::NodeBuilder::Top | ( | ) | [private] |
Definition at line 92 of file nodebuilder.cpp.
Anchors YAML_PM::NodeBuilder::m_anchors [private] |
Definition at line 56 of file nodebuilder.h.
std::stack<bool> YAML_PM::NodeBuilder::m_didPushKey [private] |
Definition at line 53 of file nodebuilder.h.
bool YAML_PM::NodeBuilder::m_finished [private] |
Definition at line 49 of file nodebuilder.h.
bool YAML_PM::NodeBuilder::m_initializedRoot [private] |
Definition at line 48 of file nodebuilder.h.
std::stack<Node *> YAML_PM::NodeBuilder::m_pendingKeys [private] |
Definition at line 52 of file nodebuilder.h.
Node& YAML_PM::NodeBuilder::m_root [private] |
Definition at line 47 of file nodebuilder.h.
std::stack<Node *> YAML_PM::NodeBuilder::m_stack [private] |
Definition at line 51 of file nodebuilder.h.