scide: implement selectionLength for openDocument
[supercollider.git] / external_libraries / yaml-cpp-0.3.0 / include / yaml-cpp / aliasmanager.h
blobe90c93ddd4adf0d72cd4bc29142a4e1b01a6b2c9
1 #ifndef ALIASMANAGER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
2 #define ALIASMANAGER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
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
8 #include "yaml-cpp/anchor.h"
9 #include <map>
11 namespace YAML
13 class Node;
15 class AliasManager
17 public:
18 AliasManager();
20 void RegisterReference(const Node& node);
21 anchor_t LookupAnchor(const Node& node) const;
23 private:
24 anchor_t _CreateNewAnchor();
26 private:
27 typedef std::map<const Node*, anchor_t> AnchorByIdentity;
28 AnchorByIdentity m_anchorByIdentity;
30 anchor_t m_curAnchor;
34 #endif // ALIASMANAGER_H_62B23520_7C8E_11DE_8A39_0800200C9A66