18 return *pNode1 < *pNode2;
56 std::auto_ptr<Node> pNode(
new Node);
93 for(std::size_t i=0;i<
m_seqData.size();i++)
100 it->first->EmitEvents(am, eventHandler);
101 it->second->EmitEvents(am, eventHandler);
241 for(std::size_t i=0;i<
m_seqData.size();i++)
250 node_map::const_iterator it =
m_mapData.begin();
251 node_map::const_iterator jt = rhs.
m_mapData.begin();
253 if(
int cmp = it->first->Compare(*jt->first))
255 if(
int cmp = it->second->Compare(*jt->second))
void RegisterReference(const Node &node)
friend YAML_CPP_API Emitter & operator<<(Emitter &out, const Node &node)
virtual void OnSequenceEnd()=0
anchor_t LookupAnchor(const Node &node) const
virtual void OnSequenceStart(const Mark &mark, const std::string &tag, anchor_t anchor)=0
virtual void OnDocumentEnd()=0
const Node * FindAtIndex(std::size_t i) const
void SetScalarData(const std::string &data)
virtual void OnNull(const Mark &mark, anchor_t anchor)=0
bool GetScalar(std::string &s) const
virtual void OnMapEnd()=0
std::auto_ptr< Node > Clone() const
void Insert(Node &key, Node &value)
virtual void OnMapStart(const Mark &mark, const std::string &tag, anchor_t anchor)=0
bool operator()(const Node *pNode1, const Node *pNode2) const
friend bool operator<(const Node &n1, const Node &n2)
virtual void OnDocumentStart(const Mark &mark)=0
virtual void OnAlias(const Mark &mark, anchor_t anchor)=0
int Compare(const Node &rhs) const
const anchor_t NullAnchor
void Init(NodeType::value type, const Mark &mark, const std::string &tag)
void EmitEvents(EventHandler &eventHandler) const
std::auto_ptr< NodeOwnership > m_pOwnership
virtual void OnScalar(const Mark &mark, const std::string &tag, anchor_t anchor, const std::string &value)=0