LLVM API Documentation

Public Member Functions
llvm::yaml::Output Class Reference

#include <YAMLTraits.h>

Inheritance diagram for llvm::yaml::Output:
Inheritance graph
[legend]
Collaboration diagram for llvm::yaml::Output:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Output (llvm::raw_ostream &, void *Ctxt=nullptr)
virtual ~Output ()
bool outputting () override
bool mapTag (StringRef, bool) override
void beginMapping () override
void endMapping () override
bool preflightKey (const char *key, bool, bool, bool &, void *&) override
void postflightKey (void *) override
unsigned beginSequence () override
void endSequence () override
bool preflightElement (unsigned, void *&) override
void postflightElement (void *) override
unsigned beginFlowSequence () override
bool preflightFlowElement (unsigned, void *&) override
void postflightFlowElement (void *) override
void endFlowSequence () override
void beginEnumScalar () override
bool matchEnumScalar (const char *, bool) override
void endEnumScalar () override
bool beginBitSetScalar (bool &) override
bool bitSetMatch (const char *, bool) override
void endBitSetScalar () override
void scalarString (StringRef &, bool) override
void setError (const Twine &message) override
bool canElideEmptySequence () override
void beginDocuments ()
bool preflightDocument (unsigned)
void postflightDocument ()
void endDocuments ()

Detailed Description

The Output class is used to generate a yaml document from in-memory structs and vectors.

Definition at line 1008 of file YAMLTraits.h.


Constructor & Destructor Documentation

Output::Output ( llvm::raw_ostream yout,
void *  Ctxt = nullptr 
)

Definition at line 380 of file YAMLTraits.cpp.

Output::~Output ( ) [virtual]

Definition at line 391 of file YAMLTraits.cpp.


Member Function Documentation

bool Output::beginBitSetScalar ( bool DoClear) [override, virtual]

Implements llvm::yaml::IO.

Definition at line 516 of file YAMLTraits.cpp.

Definition at line 433 of file YAMLTraits.cpp.

Referenced by llvm::yaml::operator<<().

void Output::beginEnumScalar ( ) [override, virtual]

Implements llvm::yaml::IO.

Definition at line 498 of file YAMLTraits.cpp.

unsigned Output::beginFlowSequence ( ) [override, virtual]
void Output::beginMapping ( ) [override, virtual]
unsigned Output::beginSequence ( ) [override, virtual]
bool Output::bitSetMatch ( const char *  Str,
bool  Matches 
) [override, virtual]

Implements llvm::yaml::IO.

Definition at line 524 of file YAMLTraits.cpp.

bool Output::canElideEmptySequence ( ) [override, virtual]
void Output::endBitSetScalar ( ) [override, virtual]

Implements llvm::yaml::IO.

Definition at line 534 of file YAMLTraits.cpp.

Definition at line 446 of file YAMLTraits.cpp.

Referenced by llvm::yaml::operator<<().

void Output::endEnumScalar ( ) [override, virtual]

Implements llvm::yaml::IO.

Definition at line 511 of file YAMLTraits.cpp.

References llvm_unreachable.

void Output::endFlowSequence ( ) [override, virtual]
void Output::endMapping ( ) [override, virtual]
void Output::endSequence ( ) [override, virtual]
bool Output::mapTag ( StringRef  Tag,
bool  Use 
) [override, virtual]

Implements llvm::yaml::IO.

Definition at line 403 of file YAMLTraits.cpp.

bool Output::matchEnumScalar ( const char *  Str,
bool  Match 
) [override, virtual]

Implements llvm::yaml::IO.

Definition at line 502 of file YAMLTraits.cpp.

bool Output::outputting ( ) [override, virtual]

Implements llvm::yaml::IO.

Definition at line 394 of file YAMLTraits.cpp.

Definition at line 443 of file YAMLTraits.cpp.

Referenced by llvm::yaml::operator<<().

void Output::postflightElement ( void *  ) [override, virtual]

Implements llvm::yaml::IO.

Definition at line 464 of file YAMLTraits.cpp.

void Output::postflightFlowElement ( void *  ) [override, virtual]

Implements llvm::yaml::IO.

Definition at line 494 of file YAMLTraits.cpp.

void Output::postflightKey ( void *  ) [override, virtual]

Definition at line 437 of file YAMLTraits.cpp.

Referenced by llvm::yaml::operator<<().

bool Output::preflightElement ( unsigned  ,
void *&   
) [override, virtual]

Implements llvm::yaml::IO.

Definition at line 460 of file YAMLTraits.cpp.

bool Output::preflightFlowElement ( unsigned  ,
void *&   
) [override, virtual]

Implements llvm::yaml::IO.

Definition at line 481 of file YAMLTraits.cpp.

bool Output::preflightKey ( const char *  key,
bool  Required,
bool  SameAsDefault,
bool UseDefault,
void *&   
) [override, virtual]

Implements llvm::yaml::IO.

Definition at line 415 of file YAMLTraits.cpp.

void Output::scalarString ( StringRef S,
bool  MustQuote 
) [override, virtual]
void Output::setError ( const Twine message) [override, virtual]

Implements llvm::yaml::IO.

Definition at line 569 of file YAMLTraits.cpp.


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