1 #ifndef VALUE_DETAIL_MEMORY_H_62B23520_7C8E_11DE_8A39_0800200C9A66 2 #define VALUE_DETAIL_MEMORY_H_62B23520_7C8E_11DE_8A39_0800200C9A66 4 #if defined(_MSC_VER) || \ 5 (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \ 6 (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4 12 #include "yaml-cpp/dll.h" 13 #include "yaml-cpp/node/ptr.h" 23 class YAML_CPP_API memory {
25 memory() : m_nodes{} {}
27 void merge(
const memory& rhs);
30 using Nodes = std::set<shared_node>;
34 class YAML_CPP_API memory_holder {
36 memory_holder() : m_pMemory(new memory) {}
38 node& create_node() {
return m_pMemory->create_node(); }
39 void merge(memory_holder& rhs);
42 shared_memory m_pMemory;
47 #endif // VALUE_DETAIL_MEMORY_H_62B23520_7C8E_11DE_8A39_0800200C9A66