84 lines
1.6 KiB
C++
84 lines
1.6 KiB
C++
#include "aliascontent.h"
|
|
|
|
namespace YAML
|
|
{
|
|
AliasContent::AliasContent(Content* pNodeContent): m_pRef(pNodeContent)
|
|
{
|
|
}
|
|
|
|
bool AliasContent::GetBegin(std::vector <Node *>::const_iterator& i) const
|
|
{
|
|
return m_pRef->GetBegin(i);
|
|
}
|
|
|
|
bool AliasContent::GetBegin(std::map <Node *, Node *, ltnode>::const_iterator& i) const
|
|
{
|
|
return m_pRef->GetBegin(i);
|
|
}
|
|
|
|
bool AliasContent::GetEnd(std::vector <Node *>::const_iterator& i) const
|
|
{
|
|
return m_pRef->GetEnd(i);
|
|
}
|
|
|
|
bool AliasContent::GetEnd(std::map <Node *, Node *, ltnode>::const_iterator& i) const
|
|
{
|
|
return m_pRef->GetEnd(i);
|
|
}
|
|
|
|
Node* AliasContent::GetNode(std::size_t n) const
|
|
{
|
|
return m_pRef->GetNode(n);
|
|
}
|
|
|
|
std::size_t AliasContent::GetSize() const
|
|
{
|
|
return m_pRef->GetSize();
|
|
}
|
|
|
|
bool AliasContent::IsScalar() const
|
|
{
|
|
return m_pRef->IsScalar();
|
|
}
|
|
|
|
bool AliasContent::IsMap() const
|
|
{
|
|
return m_pRef->IsMap();
|
|
}
|
|
|
|
bool AliasContent::IsSequence() const
|
|
{
|
|
return m_pRef->IsSequence();
|
|
}
|
|
|
|
bool AliasContent::GetScalar(std::string& scalar) const
|
|
{
|
|
return m_pRef->GetScalar(scalar);
|
|
}
|
|
|
|
void AliasContent::EmitEvents(AliasManager& am, EventHandler& eventHandler, const Mark& mark, const std::string& tag, anchor_t anchor) const
|
|
{
|
|
m_pRef->EmitEvents(am, eventHandler, mark, tag, anchor);
|
|
}
|
|
|
|
int AliasContent::Compare(Content *pContent)
|
|
{
|
|
return m_pRef->Compare(pContent);
|
|
}
|
|
|
|
int AliasContent::Compare(Scalar *pScalar)
|
|
{
|
|
return m_pRef->Compare(pScalar);
|
|
}
|
|
|
|
int AliasContent::Compare(Sequence *pSequence)
|
|
{
|
|
return m_pRef->Compare(pSequence);
|
|
}
|
|
|
|
int AliasContent::Compare(Map *pMap)
|
|
{
|
|
return m_pRef->Compare(pMap);
|
|
}
|
|
}
|