LLVM  8.0.1
Public Member Functions | Friends | List of all members
llvm::yaml::Document Class Reference

A YAML Stream is a sequence of Documents. More...

#include "llvm/Support/YAMLParser.h"

Public Member Functions

 Document (Stream &ParentStream)
 
NodeparseBlockNode ()
 Root for parsing a node. Returns a single node. More...
 
bool skip ()
 Finish parsing the current document and return true if there are more. More...
 
NodegetRoot ()
 Parse and return the root level node. More...
 
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 523 of file YAMLParser.h.

Constructor & Destructor Documentation

◆ Document()

Document::Document ( Stream ParentStream)

Member Function Documentation

◆ getRoot()

Node* llvm::yaml::Document::getRoot ( )
inline

Parse and return the root level node.

Definition at line 535 of file YAMLParser.h.

Referenced by skip().

◆ getTagMap()

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

Definition at line 541 of file YAMLParser.h.

◆ parseBlockNode()

Node * Document::parseBlockNode ( )

◆ skip()

bool Document::skip ( )

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

Return false otherwise.

Definition at line 2270 of file YAMLParser.cpp.

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

Friends And Related Function Documentation

◆ document_iterator

friend class document_iterator
friend

Definition at line 545 of file YAMLParser.h.

◆ Node

friend class Node
friend

Definition at line 544 of file YAMLParser.h.


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