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 (std::unique_ptr< Document > &D, StringRef Anchor, StringRef Tag, MappingType MT)
iterator begin ()
iterator end ()
void skip () 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 343 of file YAMLParser.h.


Member Typedef Documentation

Definition at line 359 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 347 of file YAMLParser.h.


Constructor & Destructor Documentation

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

Definition at line 353 of file YAMLParser.h.


Member Function Documentation

Definition at line 363 of file YAMLParser.h.

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

Definition at line 369 of file YAMLParser.h.

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

Definition at line 365 of file YAMLParser.h.

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

Reimplemented from llvm::yaml::Node.

Definition at line 367 of file YAMLParser.h.


Friends And Related Function Documentation

Definition at line 358 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: