LLVM API Documentation

Public Types | Public Member Functions | Static Public Member Functions | Friends
llvm::yaml::MappingNode Class Reference

Represents a YAML map created from either a block map for a flow map. More...

#include <YAMLParser.h>

Inheritance diagram for llvm::yaml::MappingNode:
Inheritance graph
[legend]
Collaboration diagram for llvm::yaml::MappingNode:
Collaboration graph
[legend]

List of all members.

Public Types

enum  MappingType { MT_Block, MT_Flow, MT_Inline }
typedef
basic_collection_iterator
< MappingNode, KeyValueNode
iterator

Public Member Functions

 MappingNode (OwningPtr< Document > &D, StringRef Anchor, MappingType MT)
iterator begin ()
iterator end ()
virtual void skip () LLVM_OVERRIDE

Static Public Member Functions

static bool classof (const Node *N)

Friends

class basic_collection_iterator< MappingNode, KeyValueNode >
template<class T >
T::iterator yaml::begin (T &)
template<class T >
void yaml::skip (T &)

Detailed Description

Represents a YAML map created from either a block map for a flow map.

This parses the YAML stream as increment() is called.

Example: Name: _main Scope: Global

Definition at line 333 of file YAMLParser.h.


Member Typedef Documentation

Definition at line 350 of file YAMLParser.h.


Member Enumeration Documentation

Enumerator:
MT_Block 
MT_Flow 
MT_Inline 

An inline mapping node is used for "[key: value]".

Definition at line 335 of file YAMLParser.h.


Constructor & Destructor Documentation

llvm::yaml::MappingNode::MappingNode ( OwningPtr< Document > &  D,
StringRef  Anchor,
MappingType  MT 
) [inline]

Definition at line 341 of file YAMLParser.h.


Member Function Documentation

iterator llvm::yaml::MappingNode::begin ( ) [inline]

Definition at line 354 of file YAMLParser.h.

static bool llvm::yaml::MappingNode::classof ( const Node N) [inline, static]

Definition at line 364 of file YAMLParser.h.

References llvm::yaml::Node::getType(), and llvm::yaml::Node::NK_Mapping.

iterator llvm::yaml::MappingNode::end ( ) [inline]

Definition at line 358 of file YAMLParser.h.

virtual void llvm::yaml::MappingNode::skip ( ) [inline, virtual]

Reimplemented from llvm::yaml::Node.

Definition at line 360 of file YAMLParser.h.


Friends And Related Function Documentation

Definition at line 349 of file YAMLParser.h.

template<class T >
T::iterator yaml::begin ( T ) [friend]
template<class T >
void yaml::skip ( T ) [friend]

The documentation for this class was generated from the following files: