YAML::Node Class Reference

#include <node.h>

Inheritance diagram for YAML::Node:
Inheritance graph
[legend]

List of all members.

Public Member Functions

Iterator begin () const
void Clear ()
std::auto_ptr< NodeClone () const
int Compare (const Node &rhs) const
Iterator end () const
const NodeFindValue (const char *key) const
template<typename T >
const NodeFindValue (const T &key) const
const Mark GetMark () const
bool GetScalar (std::string &s) const
const std::string GetTag () const
CONTENT_TYPE GetType () const
const NodeIdentity () const
bool IsAlias () const
bool IsReferenced () const
 Node ()
template<typename T >
 operator T () const
const Nodeoperator[] (const char *key) const
template<typename T >
const Nodeoperator[] (const T &key) const
void Parse (Scanner *pScanner, ParserState &state)
template<typename T >
const T Read () const
template<typename T >
bool Read (T &value) const
std::size_t size () const
 ~Node ()

Private Member Functions

const NodeFindAtIndex (std::size_t i) const
template<typename T >
const NodeFindValueForKey (const T &key) const
template<typename T >
const NodeGetValue (const T &key) const
 Node (const Mark &mark, const std::string &anchor, const std::string &tag, const Content *pContent)
void ParseAlias (Scanner *pScanner, ParserState &state)
void ParseAnchor (Scanner *pScanner, ParserState &state)
void ParseHeader (Scanner *pScanner, ParserState &state)
void ParseTag (Scanner *pScanner, ParserState &state)

Private Attributes

bool m_alias
std::string m_anchor
Mark m_mark
Content * m_pContent
const Nodem_pIdentity
bool m_referenced
std::string m_tag

Friends

struct _FindFromNodeAtIndex
bool operator< (const Node &n1, const Node &n2)
Emitteroperator<< (Emitter &out, const Node &node)
template<typename T >
void operator>> (const Node &node, T &value)

Detailed Description

Definition at line 20 of file node.h.


Constructor & Destructor Documentation

YAML::Node::Node (  ) 
YAML::Node::~Node (  ) 
YAML::Node::Node ( const Mark mark,
const std::string &  anchor,
const std::string &  tag,
const Content *  pContent 
) [private]

Member Function Documentation

Iterator YAML::Node::begin (  )  const
void YAML::Node::Clear (  ) 
std::auto_ptr<Node> YAML::Node::Clone (  )  const
int YAML::Node::Compare ( const Node rhs  )  const
Iterator YAML::Node::end (  )  const
const Node* YAML::Node::FindAtIndex ( std::size_t  i  )  const [private]
const Node * YAML::Node::FindValue ( const char *  key  )  const [inline]

Definition at line 72 of file nodeimpl.h.

template<typename T >
const Node * YAML::Node::FindValue ( const T &  key  )  const [inline]

Definition at line 31 of file nodeimpl.h.

template<typename T >
const Node * YAML::Node::FindValueForKey ( const T &  key  )  const [inline, private]

Definition at line 43 of file nodeimpl.h.

const Mark YAML::Node::GetMark (  )  const [inline]

Definition at line 33 of file node.h.

bool YAML::Node::GetScalar ( std::string &  s  )  const
const std::string YAML::Node::GetTag (  )  const [inline]

Definition at line 73 of file node.h.

CONTENT_TYPE YAML::Node::GetType (  )  const
template<typename T >
const Node & YAML::Node::GetValue ( const T &  key  )  const [inline, private]

Definition at line 56 of file nodeimpl.h.

const Node* YAML::Node::Identity (  )  const [inline]

Definition at line 68 of file node.h.

bool YAML::Node::IsAlias (  )  const [inline]

Definition at line 69 of file node.h.

bool YAML::Node::IsReferenced (  )  const [inline]

Definition at line 70 of file node.h.

template<typename T >
YAML::Node::operator T (  )  const [inline]

Definition at line 20 of file nodeimpl.h.

const Node & YAML::Node::operator[] ( const char *  key  )  const [inline]

Definition at line 76 of file nodeimpl.h.

template<typename T >
const Node & YAML::Node::operator[] ( const T &  key  )  const [inline]

Definition at line 68 of file nodeimpl.h.

void YAML::Node::Parse ( Scanner *  pScanner,
ParserState &  state 
)
void YAML::Node::ParseAlias ( Scanner *  pScanner,
ParserState &  state 
) [private]
void YAML::Node::ParseAnchor ( Scanner *  pScanner,
ParserState &  state 
) [private]
void YAML::Node::ParseHeader ( Scanner *  pScanner,
ParserState &  state 
) [private]
void YAML::Node::ParseTag ( Scanner *  pScanner,
ParserState &  state 
) [private]
template<typename T >
const T YAML::Node::Read (  )  const [inline]

Definition at line 13 of file nodeimpl.h.

template<typename T >
bool YAML::Node::Read ( T &  value  )  const [inline]

Definition at line 62 of file nodereadimpl.h.

std::size_t YAML::Node::size (  )  const

Friends And Related Function Documentation

friend struct _FindFromNodeAtIndex [friend]

Definition at line 84 of file node.h.

bool operator< ( const Node n1,
const Node n2 
) [friend]
Emitter& operator<< ( Emitter out,
const Node node 
) [friend]
template<typename T >
void operator>> ( const Node node,
T &  value 
) [friend]

Definition at line 25 of file nodeimpl.h.


Member Data Documentation

bool YAML::Node::m_alias [private]

Definition at line 107 of file node.h.

std::string YAML::Node::m_anchor [private]

Definition at line 105 of file node.h.

Definition at line 104 of file node.h.

Content* YAML::Node::m_pContent [private]

Definition at line 106 of file node.h.

const Node* YAML::Node::m_pIdentity [private]

Definition at line 108 of file node.h.

bool YAML::Node::m_referenced [mutable, private]

Definition at line 109 of file node.h.

std::string YAML::Node::m_tag [private]

Definition at line 105 of file node.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


yaml_cpp
Author(s): Jesse Beder
autogenerated on Fri Jan 11 09:42:46 2013