aliasmanager.h
Go to the documentation of this file.
1 #ifndef ALIASMANAGER_H_62B23520_7C8E_11DE_8A39_0800200C9A66_PM
2 #define ALIASMANAGER_H_62B23520_7C8E_11DE_8A39_0800200C9A66_PM
3 
4 #if defined(_MSC_VER) || (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4
5 #pragma once
6 #endif
7 
8 #include "yaml-cpp-pm/anchor.h"
9 #include <map>
10 
11 namespace YAML_PM
12 {
13  class Node;
14 
16  {
17  public:
18  AliasManager();
19 
20  void RegisterReference(const Node& node);
21  anchor_t LookupAnchor(const Node& node) const;
22 
23  private:
25 
26  private:
27  typedef std::map<const Node*, anchor_t> AnchorByIdentity;
28  AnchorByIdentity m_anchorByIdentity;
29 
31  };
32 }
33 
34 #endif // ALIASMANAGER_H_62B23520_7C8E_11DE_8A39_0800200C9A66_PM
void RegisterReference(const Node &node)
AnchorByIdentity m_anchorByIdentity
Definition: aliasmanager.h:28
std::size_t anchor_t
Definition: anchor.h:12
anchor_t _CreateNewAnchor()
anchor_t LookupAnchor(const Node &node) const
std::map< const Node *, anchor_t > AnchorByIdentity
Definition: aliasmanager.h:27


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