"docs/source/en/quicktour.mdx" did not exist on "86ac3ea1d7fbc2f40bb0ae3dc9f045ed78c6fe2e"
alias.cpp 1.5 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
#include "crt.h"
#include "alias.h"
#include <iostream>

namespace YAML
{
	Alias::Alias(Content* pNodeContent)
		: m_pRef(pNodeContent)
	{
	}

12
	void Alias::Parse(Scanner */*pScanner*/, const ParserState& /*state*/)
13
14
15
	{
	}

16
	void Alias::Write(std::ostream& out, int /*indent*/, bool /*startedLine*/, bool /*onlyOneCharOnLine*/)
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
	{
		out << "\n";
	}

	bool Alias::GetBegin(std::vector <Node *>::const_iterator& i) const
	{
		return m_pRef->GetBegin(i);
	}

	bool Alias::GetBegin(std::map <Node *, Node *, ltnode>::const_iterator& i) const
	{
		return m_pRef->GetBegin(i);
	}

	bool Alias::GetEnd(std::vector <Node *>::const_iterator& i) const
	{
		return m_pRef->GetEnd(i);
	}

	bool Alias::GetEnd(std::map <Node *, Node *, ltnode>::const_iterator& i) const
	{
		return m_pRef->GetEnd(i);
	}

	Node* Alias::GetNode(unsigned n) const
	{
		return m_pRef->GetNode(n);
	}

	unsigned Alias::GetSize() const
	{
		return m_pRef->GetSize();
	}

	bool Alias::IsScalar() const
	{
		return m_pRef->IsScalar();
	}

	bool Alias::IsMap() const
	{
		return m_pRef->IsMap();
	}

	bool Alias::IsSequence() const
	{
		return m_pRef->IsSequence();
	}

66
	bool Alias::GetScalar(std::string& scalar) const
67
	{
68
		return m_pRef->GetScalar(scalar);
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
	}

	int Alias::Compare(Content *pContent)
	{
		return m_pRef->Compare(pContent);
	}

	int Alias::Compare(Scalar *pScalar)
	{
		return m_pRef->Compare(pScalar);
	}

	int Alias::Compare(Sequence *pSequence)
	{
		return m_pRef->Compare(pSequence);
	}

	int Alias::Compare(Map *pMap)
	{
		return m_pRef->Compare(pMap);
	}
}