"vscode:/vscode.git/clone" did not exist on "56b7f0efa4d83865afc2da38b40b2f337d778dda"
valueevents.h 795 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
#ifndef VALUE_VALUEEVENTS_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define VALUE_VALUEEVENTS_H_62B23520_7C8E_11DE_8A39_0800200C9A66

#if defined(_MSC_VER) || (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4
#pragma once
#endif

#include "yaml-cpp/anchor.h"
#include "yaml-cpp/value/ptr.h"
Jesse Beder's avatar
Jesse Beder committed
10
#include <map>
11
12
13
14
15
16
17
18
19
20
21
22
#include <vector>

namespace YAML
{
	class Value;
	
	class ValueEvents
	{
	public:
		ValueEvents(const Value& value);
		
	private:
Jesse Beder's avatar
Jesse Beder committed
23
		void Visit(const detail::node& node);
24
25
26
27
28
29
30
31
32
33
34
35
		
	private:
		detail::shared_memory_holder m_pMemory;
		detail::node& m_root;
		
		typedef std::map<const detail::node_ref *, int> RefCount;
		RefCount m_refCount;
	};
}

#endif // VALUE_VALUEEVENTS_H_62B23520_7C8E_11DE_8A39_0800200C9A66