LLVM API Documentation
#include <YAMLTraits.h>
Public Member Functions | |
IO (void *Ctxt=nullptr) | |
virtual | ~IO () |
virtual bool | outputting ()=0 |
virtual unsigned | beginSequence ()=0 |
virtual bool | preflightElement (unsigned, void *&)=0 |
virtual void | postflightElement (void *)=0 |
virtual void | endSequence ()=0 |
virtual bool | canElideEmptySequence ()=0 |
virtual unsigned | beginFlowSequence ()=0 |
virtual bool | preflightFlowElement (unsigned, void *&)=0 |
virtual void | postflightFlowElement (void *)=0 |
virtual void | endFlowSequence ()=0 |
virtual bool | mapTag (StringRef Tag, bool Default=false)=0 |
virtual void | beginMapping ()=0 |
virtual void | endMapping ()=0 |
virtual bool | preflightKey (const char *, bool, bool, bool &, void *&)=0 |
virtual void | postflightKey (void *)=0 |
virtual void | beginEnumScalar ()=0 |
virtual bool | matchEnumScalar (const char *, bool)=0 |
virtual void | endEnumScalar ()=0 |
virtual bool | beginBitSetScalar (bool &)=0 |
virtual bool | bitSetMatch (const char *, bool)=0 |
virtual void | endBitSetScalar ()=0 |
virtual void | scalarString (StringRef &, bool)=0 |
virtual void | setError (const Twine &)=0 |
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) |
template<typename T > | |
void | maskedBitSetCase (T &Val, const char *Str, T ConstVal, T Mask) |
template<typename T > | |
void | maskedBitSetCase (T &Val, const char *Str, uint32_t ConstVal, uint32_t Mask) |
void * | getContext () |
void | setContext (void *) |
template<typename T > | |
void | mapRequired (const char *Key, T &Val) |
template<typename T > | |
std::enable_if < has_SequenceTraits< T > ::value, void >::type | mapOptional (const char *Key, T &Val) |
template<typename T > | |
void | mapOptional (const char *Key, Optional< T > &Val) |
template<typename T > | |
std::enable_if <!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) |
Definition at line 423 of file YAMLTraits.h.
IO::IO | ( | void * | Ctxt = nullptr | ) |
Definition at line 27 of file YAMLTraits.cpp.
IO::~IO | ( | ) | [virtual] |
Definition at line 30 of file YAMLTraits.cpp.
virtual bool llvm::yaml::IO::beginBitSetScalar | ( | bool & | ) | [pure virtual] |
Implemented in llvm::yaml::Output.
virtual void llvm::yaml::IO::beginEnumScalar | ( | ) | [pure virtual] |
Implemented in llvm::yaml::Output.
Referenced by llvm::yaml::yamlize().
virtual unsigned llvm::yaml::IO::beginFlowSequence | ( | ) | [pure virtual] |
Implemented in llvm::yaml::Output.
virtual void llvm::yaml::IO::beginMapping | ( | ) | [pure virtual] |
Implemented in llvm::yaml::Output.
virtual unsigned llvm::yaml::IO::beginSequence | ( | ) | [pure virtual] |
Implemented in llvm::yaml::Output.
void llvm::yaml::IO::bitSetCase | ( | T & | Val, |
const char * | Str, | ||
const T | ConstVal | ||
) | [inline] |
Definition at line 476 of file YAMLTraits.h.
References bitSetMatch(), and outputting().
void llvm::yaml::IO::bitSetCase | ( | T & | Val, |
const char * | Str, | ||
const uint32_t | ConstVal | ||
) | [inline] |
Definition at line 484 of file YAMLTraits.h.
References bitSetMatch(), and outputting().
virtual bool llvm::yaml::IO::bitSetMatch | ( | const char * | , |
bool | |||
) | [pure virtual] |
Implemented in llvm::yaml::Output.
Referenced by bitSetCase(), and maskedBitSetCase().
virtual bool llvm::yaml::IO::canElideEmptySequence | ( | ) | [pure virtual] |
Implemented in llvm::yaml::Output.
Referenced by mapOptional().
virtual void llvm::yaml::IO::endBitSetScalar | ( | ) | [pure virtual] |
Implemented in llvm::yaml::Output.
virtual void llvm::yaml::IO::endEnumScalar | ( | ) | [pure virtual] |
Implemented in llvm::yaml::Output.
Referenced by llvm::yaml::yamlize().
virtual void llvm::yaml::IO::endFlowSequence | ( | ) | [pure virtual] |
Implemented in llvm::yaml::Output.
virtual void llvm::yaml::IO::endMapping | ( | ) | [pure virtual] |
Implemented in llvm::yaml::Output.
virtual void llvm::yaml::IO::endSequence | ( | ) | [pure virtual] |
Implemented in llvm::yaml::Output.
void llvm::yaml::IO::enumCase | ( | T & | Val, |
const char * | Str, | ||
const T | ConstVal | ||
) | [inline] |
Definition at line 461 of file YAMLTraits.h.
References matchEnumScalar(), and outputting().
Referenced by llvm::yaml::ScalarEnumerationTraits< COFFYAML::WeakExternalCharacteristics >::enumeration(), and llvm::yaml::ScalarEnumerationTraits< COFFYAML::COMDATType >::enumeration().
void llvm::yaml::IO::enumCase | ( | T & | Val, |
const char * | Str, | ||
const uint32_t | ConstVal | ||
) | [inline] |
Definition at line 469 of file YAMLTraits.h.
References matchEnumScalar(), and outputting().
void * IO::getContext | ( | ) |
Definition at line 33 of file YAMLTraits.cpp.
Referenced by llvm::yaml::ScalarBitSetTraits< ELFYAML::ELF_EF >::bitset(), llvm::yaml::ScalarEnumerationTraits< ELFYAML::ELF_SHT >::enumeration(), llvm::yaml::ScalarEnumerationTraits< ELFYAML::ELF_REL >::enumeration(), llvm::yaml::MappingTraits< COFFYAML::Relocation >::mapping(), and llvm::yaml::MappingTraits< ELFYAML::Object >::mapping().
std::enable_if<has_SequenceTraits<T>::value,void>::type llvm::yaml::IO::mapOptional | ( | const char * | Key, |
T & | Val | ||
) | [inline] |
Definition at line 513 of file YAMLTraits.h.
References canElideEmptySequence().
Referenced by llvm::yaml::commonSectionMapping(), llvm::yaml::MappingTraits< COFF::header >::mapping(), llvm::yaml::MappingTraits< COFF::AuxiliarySectionDefinition >::mapping(), llvm::yaml::MappingTraits< COFFYAML::Symbol >::mapping(), llvm::yaml::MappingTraits< COFFYAML::Section >::mapping(), llvm::yaml::MappingTraits< ELFYAML::FileHeader >::mapping(), llvm::yaml::MappingTraits< ELFYAML::Symbol >::mapping(), llvm::yaml::MappingTraits< ELFYAML::LocalGlobalWeakSymbols >::mapping(), llvm::yaml::MappingTraits< ELFYAML::Relocation >::mapping(), llvm::yaml::MappingTraits< ELFYAML::Object >::mapping(), and llvm::yaml::sectionMapping().
void llvm::yaml::IO::mapOptional | ( | const char * | Key, |
Optional< T > & | Val | ||
) | [inline] |
Definition at line 521 of file YAMLTraits.h.
std::enable_if<!has_SequenceTraits<T>::value,void>::type llvm::yaml::IO::mapOptional | ( | const char * | Key, |
T & | Val | ||
) | [inline] |
Definition at line 527 of file YAMLTraits.h.
void llvm::yaml::IO::mapOptional | ( | const char * | Key, |
T & | Val, | ||
const T & | Default | ||
) | [inline] |
Definition at line 532 of file YAMLTraits.h.
void llvm::yaml::IO::mapRequired | ( | const char * | Key, |
T & | Val | ||
) | [inline] |
Definition at line 507 of file YAMLTraits.h.
Referenced by llvm::yaml::commonSectionMapping(), llvm::yaml::MappingTraits< COFFYAML::Relocation >::mapping(), llvm::yaml::MappingTraits< COFF::header >::mapping(), llvm::yaml::MappingTraits< COFF::AuxiliaryFunctionDefinition >::mapping(), llvm::yaml::MappingTraits< COFF::AuxiliarybfAndefSymbol >::mapping(), llvm::yaml::MappingTraits< COFF::AuxiliaryWeakExternal >::mapping(), llvm::yaml::MappingTraits< COFF::AuxiliarySectionDefinition >::mapping(), llvm::yaml::MappingTraits< COFF::AuxiliaryCLRToken >::mapping(), llvm::yaml::MappingTraits< COFFYAML::Symbol >::mapping(), llvm::yaml::MappingTraits< COFFYAML::Section >::mapping(), llvm::yaml::MappingTraits< ELFYAML::FileHeader >::mapping(), llvm::yaml::MappingTraits< COFFYAML::Object >::mapping(), llvm::yaml::MappingTraits< ELFYAML::Relocation >::mapping(), llvm::yaml::MappingTraits< std::unique_ptr< ELFYAML::Section > >::mapping(), and llvm::yaml::MappingTraits< ELFYAML::Object >::mapping().
virtual bool llvm::yaml::IO::mapTag | ( | StringRef | Tag, |
bool | Default = false |
||
) | [pure virtual] |
Implemented in llvm::yaml::Output.
void llvm::yaml::IO::maskedBitSetCase | ( | T & | Val, |
const char * | Str, | ||
T | ConstVal, | ||
T | Mask | ||
) | [inline] |
Definition at line 491 of file YAMLTraits.h.
References bitSetMatch(), and outputting().
void llvm::yaml::IO::maskedBitSetCase | ( | T & | Val, |
const char * | Str, | ||
uint32_t | ConstVal, | ||
uint32_t | Mask | ||
) | [inline] |
Definition at line 497 of file YAMLTraits.h.
References bitSetMatch(), and outputting().
virtual bool llvm::yaml::IO::matchEnumScalar | ( | const char * | , |
bool | |||
) | [pure virtual] |
Implemented in llvm::yaml::Output.
Referenced by enumCase().
virtual bool llvm::yaml::IO::outputting | ( | ) | [pure virtual] |
Implemented in llvm::yaml::Output.
Referenced by bitSetCase(), enumCase(), llvm::yaml::MappingTraits< std::unique_ptr< ELFYAML::Section > >::mapping(), and maskedBitSetCase().
virtual void llvm::yaml::IO::postflightElement | ( | void * | ) | [pure virtual] |
Implemented in llvm::yaml::Output.
virtual void llvm::yaml::IO::postflightFlowElement | ( | void * | ) | [pure virtual] |
Implemented in llvm::yaml::Output.
virtual void llvm::yaml::IO::postflightKey | ( | void * | ) | [pure virtual] |
Implemented in llvm::yaml::Output.
virtual bool llvm::yaml::IO::preflightElement | ( | unsigned | , |
void *& | |||
) | [pure virtual] |
Implemented in llvm::yaml::Output.
virtual bool llvm::yaml::IO::preflightFlowElement | ( | unsigned | , |
void *& | |||
) | [pure virtual] |
Implemented in llvm::yaml::Output.
virtual bool llvm::yaml::IO::preflightKey | ( | const char * | , |
bool | , | ||
bool | , | ||
bool & | , | ||
void *& | |||
) | [pure virtual] |
Implemented in llvm::yaml::Output.
virtual void llvm::yaml::IO::scalarString | ( | StringRef & | , |
bool | |||
) | [pure virtual] |
Implemented in llvm::yaml::Output.
void IO::setContext | ( | void * | Context | ) |
Definition at line 37 of file YAMLTraits.cpp.
Referenced by llvm::yaml::MappingTraits< COFF::header >::mapping(), and llvm::yaml::MappingTraits< ELFYAML::Object >::mapping().
virtual void llvm::yaml::IO::setError | ( | const Twine & | ) | [pure virtual] |
Implemented in llvm::yaml::Output.