1 #include "nodeownership.h"
2 #include "yaml-cpp/node.h"
6 NodeOwnership::NodeOwnership(NodeOwnership
*pOwner
): m_pOwner(pOwner
)
12 NodeOwnership::~NodeOwnership()
16 Node
& NodeOwnership::_Create()
18 m_nodes
.push_back(std::auto_ptr
<Node
>(new Node
));
19 return m_nodes
.back();
22 void NodeOwnership::_MarkAsAliased(const Node
& node
)
24 m_aliasedNodes
.insert(&node
);
27 bool NodeOwnership::_IsAliased(const Node
& node
) const
29 return m_aliasedNodes
.count(&node
) > 0;