LLVM API Documentation
#include <YAMLTraits.h>
Public Member Functions | |
Output (llvm::raw_ostream &, void *Ctxt=NULL) | |
virtual | ~Output () |
virtual bool | outputting () const |
virtual bool | mapTag (StringRef, bool) |
virtual void | beginMapping () |
virtual void | endMapping () |
virtual bool | preflightKey (const char *key, bool, bool, bool &, void *&) |
virtual void | postflightKey (void *) |
virtual unsigned | beginSequence () |
virtual void | endSequence () |
virtual bool | preflightElement (unsigned, void *&) |
virtual void | postflightElement (void *) |
virtual unsigned | beginFlowSequence () |
virtual bool | preflightFlowElement (unsigned, void *&) |
virtual void | postflightFlowElement (void *) |
virtual void | endFlowSequence () |
virtual void | beginEnumScalar () |
virtual bool | matchEnumScalar (const char *, bool) |
virtual void | endEnumScalar () |
virtual bool | beginBitSetScalar (bool &) |
virtual bool | bitSetMatch (const char *, bool) |
virtual void | endBitSetScalar () |
virtual void | scalarString (StringRef &) |
virtual void | setError (const Twine &message) |
virtual bool | canElideEmptySequence () |
void | beginDocuments () |
bool | preflightDocument (unsigned) |
void | postflightDocument () |
void | endDocuments () |
![]() | |
IO (void *Ctxt=NULL) | |
virtual | ~IO () |
template<typename T > | |
void | enumCase (T &Val, const char *Str, const T ConstVal) |
template<typename T > | |
void | enumCase (T &Val, const char *Str, const uint32_t ConstVal) |
template<typename T > | |
void | bitSetCase (T &Val, const char *Str, const T ConstVal) |
template<typename T > | |
void | bitSetCase (T &Val, const char *Str, const uint32_t ConstVal) |
void * | getContext () |
void | setContext (void *) |
template<typename T > | |
void | mapRequired (const char *Key, T &Val) |
template<typename T > | |
llvm::enable_if_c < has_SequenceTraits< T > ::value, void >::type | mapOptional (const char *Key, T &Val) |
template<typename T > | |
llvm::enable_if_c <!has_SequenceTraits< T > ::value, void >::type | mapOptional (const char *Key, T &Val) |
template<typename T > | |
void | mapOptional (const char *Key, T &Val, const T &Default) |
Static Public Member Functions | |
static bool | classof (const IO *io) |
The Output class is used to generate a yaml document from in-memory structs and vectors.
Definition at line 823 of file YAMLTraits.h.
Output::Output | ( | llvm::raw_ostream & | yout, |
void * | Ctxt = NULL |
||
) |
Definition at line 395 of file YAMLTraits.cpp.
|
virtual |
Definition at line 406 of file YAMLTraits.cpp.
Implements llvm::yaml::IO.
Definition at line 531 of file YAMLTraits.cpp.
void Output::beginDocuments | ( | ) |
Definition at line 448 of file YAMLTraits.cpp.
Referenced by llvm::yaml::operator<<().
|
virtual |
Implements llvm::yaml::IO.
Definition at line 513 of file YAMLTraits.cpp.
|
virtual |
Implements llvm::yaml::IO.
Definition at line 482 of file YAMLTraits.cpp.
References llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
|
virtual |
Implements llvm::yaml::IO.
Definition at line 413 of file YAMLTraits.cpp.
References llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
|
virtual |
Implements llvm::yaml::IO.
Definition at line 465 of file YAMLTraits.cpp.
References llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
Implements llvm::yaml::IO.
Definition at line 539 of file YAMLTraits.cpp.
|
virtual |
Implements llvm::yaml::IO.
Definition at line 592 of file YAMLTraits.cpp.
References llvm::SmallVectorTemplateCommon< T, typename >::back(), and llvm::SmallVectorTemplateCommon< T, typename >::size().
Definition at line 828 of file YAMLTraits.h.
References llvm::yaml::IO::outputting().
|
virtual |
Implements llvm::yaml::IO.
Definition at line 549 of file YAMLTraits.cpp.
void Output::endDocuments | ( | ) |
Definition at line 461 of file YAMLTraits.cpp.
Referenced by llvm::yaml::operator<<().
|
virtual |
Implements llvm::yaml::IO.
Definition at line 526 of file YAMLTraits.cpp.
References llvm_unreachable.
|
virtual |
Implements llvm::yaml::IO.
Definition at line 491 of file YAMLTraits.cpp.
References llvm::SmallVectorTemplateBase< T, isPodLike >::pop_back().
|
virtual |
Implements llvm::yaml::IO.
Definition at line 426 of file YAMLTraits.cpp.
References llvm::SmallVectorTemplateBase< T, isPodLike >::pop_back().
|
virtual |
Implements llvm::yaml::IO.
Definition at line 471 of file YAMLTraits.cpp.
References llvm::SmallVectorTemplateBase< T, isPodLike >::pop_back().
Implements llvm::yaml::IO.
Definition at line 418 of file YAMLTraits.cpp.
Implements llvm::yaml::IO.
Definition at line 517 of file YAMLTraits.cpp.
|
virtual |
Implements llvm::yaml::IO.
Definition at line 409 of file YAMLTraits.cpp.
void Output::postflightDocument | ( | ) |
Definition at line 458 of file YAMLTraits.cpp.
Referenced by llvm::yaml::operator<<().
|
virtual |
Implements llvm::yaml::IO.
Definition at line 479 of file YAMLTraits.cpp.
|
virtual |
Implements llvm::yaml::IO.
Definition at line 509 of file YAMLTraits.cpp.
|
virtual |
Implements llvm::yaml::IO.
Definition at line 441 of file YAMLTraits.cpp.
References llvm::SmallVectorTemplateCommon< T, typename >::back(), llvm::SmallVectorTemplateBase< T, isPodLike >::pop_back(), and llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
Definition at line 452 of file YAMLTraits.cpp.
Referenced by llvm::yaml::operator<<().
Implements llvm::yaml::IO.
Definition at line 475 of file YAMLTraits.cpp.
Implements llvm::yaml::IO.
Definition at line 496 of file YAMLTraits.cpp.
|
virtual |
Implements llvm::yaml::IO.
Definition at line 430 of file YAMLTraits.cpp.
|
virtual |
Implements llvm::yaml::IO.
Definition at line 553 of file YAMLTraits.cpp.
References llvm::StringRef::back(), llvm::StringRef::data(), llvm::StringRef::empty(), llvm::StringRef::find_first_not_of(), llvm::StringRef::front(), llvm::StringRef::npos, and llvm::StringRef::size().
|
virtual |
Implements llvm::yaml::IO.
Definition at line 589 of file YAMLTraits.cpp.