nodeownership.cpp
Go to the documentation of this file.
1 #include "nodeownership.h"
2 #include "yaml-cpp-pm/node.h"
3 
4 namespace YAML_PM
5 {
6  NodeOwnership::NodeOwnership(NodeOwnership *pOwner): m_pOwner(pOwner)
7  {
8  if(!m_pOwner)
9  m_pOwner = this;
10  }
11 
13  {
14  }
15 
17  {
18  m_nodes.push_back(std::auto_ptr<Node>(new Node));
19  return m_nodes.back();
20  }
21 
23  {
24  m_aliasedNodes.insert(&node);
25  }
26 
27  bool NodeOwnership::_IsAliased(const Node& node) const
28  {
29  return m_aliasedNodes.count(&node) > 0;
30  }
31 }
void _MarkAsAliased(const Node &node)
NodeOwnership * m_pOwner
Definition: nodeownership.h:35
bool _IsAliased(const Node &node) const
NodeOwnership(NodeOwnership *pOwner=0)
ptr_vector< Node > m_nodes
Definition: nodeownership.h:33
std::set< const Node * > m_aliasedNodes
Definition: nodeownership.h:34


libpointmatcher
Author(s):
autogenerated on Sat May 27 2023 02:38:02