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

This class represents a YAML stream potentially containing multiple documents. More...

#include "llvm/Support/YAMLParser.h"

Public Member Functions

 Stream (StringRef Input, SourceMgr &, bool ShowColors=true, std::error_code *EC=nullptr)
 This keeps a reference to the string referenced by Input. More...
 
 Stream (MemoryBufferRef InputBuffer, SourceMgr &, bool ShowColors=true, std::error_code *EC=nullptr)
 
 ~Stream ()
 
document_iterator begin ()
 
document_iterator end ()
 
void skip ()
 
bool failed ()
 
bool validate ()
 
void printError (Node *N, const Twine &Msg)
 

Friends

class Document
 

Detailed Description

This class represents a YAML stream potentially containing multiple documents.

Definition at line 84 of file YAMLParser.h.

Constructor & Destructor Documentation

◆ Stream() [1/2]

Stream::Stream ( StringRef  Input,
SourceMgr SM,
bool  ShowColors = true,
std::error_code *  EC = nullptr 
)

This keeps a reference to the string referenced by Input.

Definition at line 1763 of file YAMLParser.cpp.

◆ Stream() [2/2]

Stream::Stream ( MemoryBufferRef  InputBuffer,
SourceMgr SM,
bool  ShowColors = true,
std::error_code *  EC = nullptr 
)

Definition at line 1767 of file YAMLParser.cpp.

References ~Stream().

◆ ~Stream()

Stream::~Stream ( )
default

Referenced by Stream().

Member Function Documentation

◆ begin()

document_iterator Stream::begin ( )

Definition at line 1782 of file YAMLParser.cpp.

References Document, and llvm::report_fatal_error().

Referenced by skip(), and llvm::yaml::skip().

◆ end()

document_iterator Stream::end ( )

Definition at line 1793 of file YAMLParser.cpp.

Referenced by skip().

◆ failed()

bool Stream::failed ( )

◆ printError()

void Stream::printError ( Node N,
const Twine Msg 
)

◆ skip()

void Stream::skip ( )

Definition at line 1797 of file YAMLParser.cpp.

References begin(), and end().

Referenced by validate().

◆ validate()

bool llvm::yaml::Stream::validate ( )
inline

Definition at line 99 of file YAMLParser.h.

References failed(), N, printError(), and skip().

Friends And Related Function Documentation

◆ Document

friend class Document
friend

Definition at line 107 of file YAMLParser.h.

Referenced by begin(), and llvm::yaml::document_iterator::operator++().


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