LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
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]

Public Types

enum  MappingType { MT_Block, MT_Flow, MT_Inline }
 
typedef
basic_collection_iterator
< MappingNode, KeyValueNode
iterator
 
- Public Types inherited from llvm::yaml::Node
enum  NodeKind {
  NK_Null, NK_Scalar, NK_KeyValue, NK_Mapping,
  NK_Sequence, NK_Alias
}
 

Public Member Functions

 MappingNode (OwningPtr< Document > &D, StringRef Anchor, StringRef Tag, MappingType MT)
 
iterator begin ()
 
iterator end ()
 
virtual void skip () LLVM_OVERRIDE
 
- Public Member Functions inherited from llvm::yaml::Node
 Node (unsigned int Type, OwningPtr< Document > &, StringRef Anchor, StringRef Tag)
 
StringRef getAnchor () const
 Get the value of the anchor attached to this node. If it does not have one, getAnchor().size() will be 0. More...
 
StringRef getRawTag () const
 Get the tag as it was written in the document. This does not perform tag resolution. More...
 
std::string getVerbatimTag () const
 Get the verbatium tag for a given Node. This performs tag resoluton and substitution. More...
 
SMRange getSourceRange () const
 
void setSourceRange (SMRange SR)
 
TokenpeekNext ()
 
Token getNext ()
 
NodeparseBlockNode ()
 
BumpPtrAllocatorgetAllocator ()
 
void setError (const Twine &Message, Token &Location) const
 
bool failed () const
 
unsigned int getType () const
 
void * operator new (size_t Size, BumpPtrAllocator &Alloc, size_t Alignment=16) throw ()
 
void operator delete (void *Ptr, BumpPtrAllocator &Alloc, size_t) throw ()
 

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 &)
 

Additional Inherited Members

- Protected Member Functions inherited from llvm::yaml::Node
void operator delete (void *) throw ()
 
virtual ~Node ()
 
- Protected Attributes inherited from llvm::yaml::Node
OwningPtr< Document > & Doc
 
SMRange SourceRange
 

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 348 of file YAMLParser.h.

Member Typedef Documentation

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

Constructor & Destructor Documentation

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

Definition at line 357 of file YAMLParser.h.

Member Function Documentation

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

Definition at line 367 of file YAMLParser.h.

References llvm::yaml::begin().

static bool llvm::yaml::MappingNode::classof ( const Node N)
inlinestatic

Definition at line 377 of file YAMLParser.h.

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

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

Definition at line 371 of file YAMLParser.h.

virtual void llvm::yaml::MappingNode::skip ( )
inlinevirtual

Reimplemented from llvm::yaml::Node.

Definition at line 373 of file YAMLParser.h.

References llvm::yaml::skip().

Friends And Related Function Documentation

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