1 #include "yaml-cpp/aliasmanager.h"
2 #include "yaml-cpp/node.h"
8 AliasManager::AliasManager(): m_curAnchor(0)
12 void AliasManager::RegisterReference(const Node
& node
)
14 m_anchorByIdentity
.insert(std::make_pair(&node
, _CreateNewAnchor()));
17 anchor_t
AliasManager::LookupAnchor(const Node
& node
) const
19 AnchorByIdentity::const_iterator it
= m_anchorByIdentity
.find(&node
);
20 if(it
== m_anchorByIdentity
.end())
25 anchor_t
AliasManager::_CreateNewAnchor()