Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
YAML_PM::NodeBuilder Class Reference

#include <nodebuilder.h>

Inheritance diagram for YAML_PM::NodeBuilder:
Inheritance graph
[legend]

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 ()
 
- Public Member Functions inherited from YAML_PM::EventHandler
virtual ~EventHandler ()
 

Private Types

typedef std::vector< Node * > Anchors
 

Private Member Functions

void Insert (Node &node)
 
void Pop ()
 
NodePush ()
 
NodePush (anchor_t anchor)
 
void RegisterAnchor (anchor_t anchor, Node &node)
 
NodeTop ()
 

Private Attributes

Anchors m_anchors
 
std::stack< bool > m_didPushKey
 
bool m_finished
 
bool m_initializedRoot
 
std::stack< Node * > m_pendingKeys
 
Nodem_root
 
std::stack< Node * > m_stack
 

Detailed Description

Definition at line 18 of file nodebuilder.h.

Member Typedef Documentation

◆ Anchors

typedef std::vector<Node *> YAML_PM::NodeBuilder::Anchors
private

Definition at line 55 of file nodebuilder.h.

Constructor & Destructor Documentation

◆ NodeBuilder()

YAML_PM::NodeBuilder::NodeBuilder ( Node root)
explicit

Definition at line 8 of file nodebuilder.cpp.

◆ ~NodeBuilder()

YAML_PM::NodeBuilder::~NodeBuilder ( )
virtual

Definition at line 14 of file nodebuilder.cpp.

Member Function Documentation

◆ Insert()

void YAML_PM::NodeBuilder::Insert ( Node node)
private

Definition at line 110 of file nodebuilder.cpp.

◆ OnAlias()

void YAML_PM::NodeBuilder::OnAlias ( const Mark mark,
anchor_t  anchor 
)
virtual

Implements YAML_PM::EventHandler.

Definition at line 34 of file nodebuilder.cpp.

◆ OnDocumentEnd()

void YAML_PM::NodeBuilder::OnDocumentEnd ( )
virtual

Implements YAML_PM::EventHandler.

Definition at line 22 of file nodebuilder.cpp.

◆ OnDocumentStart()

void YAML_PM::NodeBuilder::OnDocumentStart ( const Mark mark)
virtual

Implements YAML_PM::EventHandler.

Definition at line 18 of file nodebuilder.cpp.

◆ OnMapEnd()

void YAML_PM::NodeBuilder::OnMapEnd ( )
virtual

Implements YAML_PM::EventHandler.

Definition at line 67 of file nodebuilder.cpp.

◆ OnMapStart()

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.

◆ OnNull()

void YAML_PM::NodeBuilder::OnNull ( const Mark mark,
anchor_t  anchor 
)
virtual

Implements YAML_PM::EventHandler.

Definition at line 27 of file nodebuilder.cpp.

◆ OnScalar()

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.

◆ OnSequenceEnd()

void YAML_PM::NodeBuilder::OnSequenceEnd ( )
virtual

Implements YAML_PM::EventHandler.

Definition at line 55 of file nodebuilder.cpp.

◆ OnSequenceStart()

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.

◆ Pop()

void YAML_PM::NodeBuilder::Pop ( )
private

Definition at line 97 of file nodebuilder.cpp.

◆ Push() [1/2]

Node & YAML_PM::NodeBuilder::Push ( )
private

Definition at line 80 of file nodebuilder.cpp.

◆ Push() [2/2]

Node & YAML_PM::NodeBuilder::Push ( anchor_t  anchor)
private

Definition at line 73 of file nodebuilder.cpp.

◆ RegisterAnchor()

void YAML_PM::NodeBuilder::RegisterAnchor ( anchor_t  anchor,
Node node 
)
private

Definition at line 138 of file nodebuilder.cpp.

◆ Top()

Node & YAML_PM::NodeBuilder::Top ( )
private

Definition at line 92 of file nodebuilder.cpp.

Member Data Documentation

◆ m_anchors

Anchors YAML_PM::NodeBuilder::m_anchors
private

Definition at line 56 of file nodebuilder.h.

◆ m_didPushKey

std::stack<bool> YAML_PM::NodeBuilder::m_didPushKey
private

Definition at line 53 of file nodebuilder.h.

◆ m_finished

bool YAML_PM::NodeBuilder::m_finished
private

Definition at line 49 of file nodebuilder.h.

◆ m_initializedRoot

bool YAML_PM::NodeBuilder::m_initializedRoot
private

Definition at line 48 of file nodebuilder.h.

◆ m_pendingKeys

std::stack<Node *> YAML_PM::NodeBuilder::m_pendingKeys
private

Definition at line 52 of file nodebuilder.h.

◆ m_root

Node& YAML_PM::NodeBuilder::m_root
private

Definition at line 47 of file nodebuilder.h.

◆ m_stack

std::stack<Node *> YAML_PM::NodeBuilder::m_stack
private

Definition at line 51 of file nodebuilder.h.


The documentation for this class was generated from the following files:


mp2p_icp
Author(s):
autogenerated on Fri Dec 20 2024 03:46:01