LLVM  4.0.0
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 <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 76 of file YAMLParser.h.

Constructor & Destructor Documentation

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 1739 of file YAMLParser.cpp.

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

Definition at line 1743 of file YAMLParser.cpp.

Stream::~Stream ( )

Definition at line 1747 of file YAMLParser.cpp.

Member Function Documentation

document_iterator Stream::begin ( )

Definition at line 1758 of file YAMLParser.cpp.

References Document, and llvm::report_fatal_error().

Referenced by skip().

document_iterator Stream::end ( )

Definition at line 1769 of file YAMLParser.cpp.

Referenced by skip().

bool Stream::failed ( )

Definition at line 1749 of file YAMLParser.cpp.

Referenced by validate().

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

Definition at line 1773 of file YAMLParser.cpp.

References begin(), end(), and i.

Referenced by validate().

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

Definition at line 90 of file YAMLParser.h.

References failed(), and skip().

Friends And Related Function Documentation

friend class Document
friend

Definition at line 101 of file YAMLParser.h.

Referenced by begin().


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