LLVM API Documentation

Public Member Functions | Friends
llvm::yaml::Document Class Reference

A YAML Stream is a sequence of Documents. A document contains a root node. More...

#include <YAMLParser.h>

List of all members.

Public Member Functions

NodeparseBlockNode ()
 Root for parsing a node. Returns a single node.
 Document (Stream &ParentStream)
bool skip ()
 Finish parsing the current document and return true if there are more. Return false otherwise.
NodegetRoot ()
 Parse and return the root level node.
const std::map< StringRef,
StringRef > & 
getTagMap () const

Friends

class Node
class document_iterator

Detailed Description

A YAML Stream is a sequence of Documents. A document contains a root node.

Definition at line 461 of file YAMLParser.h.


Constructor & Destructor Documentation

Document::Document ( Stream ParentStream)

Member Function Documentation

Parse and return the root level node.

Definition at line 473 of file YAMLParser.h.

References parseBlockNode().

Referenced by skip().

const std::map<StringRef, StringRef>& llvm::yaml::Document::getTagMap ( ) const [inline]

Definition at line 479 of file YAMLParser.h.

Finish parsing the current document and return true if there are more. Return false otherwise.

Definition at line 2024 of file YAMLParser.cpp.

References getRoot(), llvm::yaml::Token::Kind, llvm::yaml::Node::skip(), llvm::yaml::Token::TK_DocumentEnd, and llvm::yaml::Token::TK_StreamEnd.


Friends And Related Function Documentation

friend class document_iterator [friend]

Definition at line 483 of file YAMLParser.h.

friend class Node [friend]

Definition at line 482 of file YAMLParser.h.


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