LLVM  3.7.0
Public Member Functions | List of all members
llvm::yaml::IO Class Referenceabstract

#include <YAMLTraits.h>

Inheritance diagram for llvm::yaml::IO:
[legend]

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 beginFlowMapping ()=0
 
virtual void endFlowMapping ()=0
 
virtual void beginEnumScalar ()=0
 
virtual bool matchEnumScalar (const char *, bool)=0
 
virtual bool matchEnumFallback ()=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 blockScalarString (StringRef &)=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 FBT , typename T >
void enumFallback (T &Val)
 
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)
 

Detailed Description

Definition at line 477 of file YAMLTraits.h.

Constructor & Destructor Documentation

IO::IO ( void *  Ctxt = nullptr)

Definition at line 29 of file YAMLTraits.cpp.

IO::~IO ( )
virtual

Definition at line 32 of file YAMLTraits.cpp.

Member Function Documentation

virtual bool llvm::yaml::IO::beginBitSetScalar ( bool )
pure virtual

Implemented in llvm::yaml::Output.

Referenced by llvm::yaml::yamlize().

virtual void llvm::yaml::IO::beginEnumScalar ( )
pure virtual

Implemented in llvm::yaml::Output.

Referenced by llvm::yaml::yamlize().

virtual void llvm::yaml::IO::beginFlowMapping ( )
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.

Referenced by llvm::yaml::yamlize().

virtual void llvm::yaml::IO::beginMapping ( )
pure virtual

Implemented in llvm::yaml::Output.

Referenced by llvm::yaml::yamlize().

virtual unsigned llvm::yaml::IO::beginSequence ( )
pure virtual

Implemented in llvm::yaml::Output.

Referenced by llvm::yaml::yamlize().

template<typename T >
void llvm::yaml::IO::bitSetCase ( T Val,
const char *  Str,
const T  ConstVal 
)
inline

Definition at line 545 of file YAMLTraits.h.

References bitSetMatch(), and outputting().

template<typename T >
void llvm::yaml::IO::bitSetCase ( T Val,
const char *  Str,
const uint32_t  ConstVal 
)
inline

Definition at line 553 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 void llvm::yaml::IO::blockScalarString ( StringRef )
pure virtual

Implemented in llvm::yaml::Output.

Referenced by llvm::yaml::yamlize().

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.

Referenced by llvm::yaml::yamlize().

virtual void llvm::yaml::IO::endEnumScalar ( )
pure virtual

Implemented in llvm::yaml::Output.

Referenced by llvm::yaml::yamlize().

virtual void llvm::yaml::IO::endFlowMapping ( )
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.

Referenced by llvm::yaml::yamlize().

virtual void llvm::yaml::IO::endMapping ( )
pure virtual

Implemented in llvm::yaml::Output.

Referenced by llvm::yaml::yamlize().

virtual void llvm::yaml::IO::endSequence ( )
pure virtual

Implemented in llvm::yaml::Output.

Referenced by llvm::yaml::yamlize().

template<typename T >
void llvm::yaml::IO::enumCase ( T Val,
const char *  Str,
const T  ConstVal 
)
inline
template<typename T >
void llvm::yaml::IO::enumCase ( T Val,
const char *  Str,
const uint32_t  ConstVal 
)
inline

Definition at line 528 of file YAMLTraits.h.

References matchEnumScalar(), and outputting().

template<typename FBT , typename T >
void llvm::yaml::IO::enumFallback ( T Val)
inline
void * IO::getContext ( )
template<typename T >
std::enable_if<has_SequenceTraits<T>::value,void>::type llvm::yaml::IO::mapOptional ( const char *  Key,
T Val 
)
inline
template<typename T >
void llvm::yaml::IO::mapOptional ( const char *  Key,
Optional< T > &  Val 
)
inline

Definition at line 590 of file YAMLTraits.h.

template<typename T >
std::enable_if<!has_SequenceTraits<T>::value,void>::type llvm::yaml::IO::mapOptional ( const char *  Key,
T Val 
)
inline

Definition at line 596 of file YAMLTraits.h.

template<typename T >
void llvm::yaml::IO::mapOptional ( const char *  Key,
T Val,
const T Default 
)
inline

Definition at line 601 of file YAMLTraits.h.

template<typename T >
void llvm::yaml::IO::mapRequired ( const char *  Key,
T Val 
)
inline

Definition at line 576 of file YAMLTraits.h.

Referenced by llvm::yaml::commonSectionMapping(), llvm::yaml::groupSectionMapping(), llvm::yaml::MappingTraits< VirtualRegisterDefinition >::mapping(), llvm::yaml::MappingTraits< MachineBasicBlock >::mapping(), llvm::yaml::MappingTraits< MachineStackObject >::mapping(), llvm::yaml::MappingTraits< COFFYAML::Relocation >::mapping(), llvm::yaml::MappingTraits< COFFYAML::PEHeader >::mapping(), llvm::yaml::MappingTraits< COFF::DataDirectory >::mapping(), llvm::yaml::MappingTraits< COFF::header >::mapping(), llvm::yaml::MappingTraits< COFF::AuxiliaryFunctionDefinition >::mapping(), llvm::yaml::MappingTraits< FixedMachineStackObject >::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< COFFYAML::Object >::mapping(), llvm::yaml::MappingTraits< MachineFunction >::mapping(), llvm::yaml::MappingTraits< ELFYAML::FileHeader >::mapping(), llvm::yaml::MappingTraits< ELFYAML::Relocation >::mapping(), llvm::yaml::MappingTraits< std::unique_ptr< ELFYAML::Section > >::mapping(), llvm::yaml::MappingTraits< ELFYAML::Object >::mapping(), llvm::yaml::MappingTraits< ELFYAML::SectionOrType >::mapping(), and llvm::yaml::sectionMapping().

virtual bool llvm::yaml::IO::mapTag ( StringRef  Tag,
bool  Default = false 
)
pure virtual

Implemented in llvm::yaml::Output.

template<typename T >
void llvm::yaml::IO::maskedBitSetCase ( T Val,
const char *  Str,
T  ConstVal,
T  Mask 
)
inline

Definition at line 560 of file YAMLTraits.h.

References bitSetMatch(), and outputting().

template<typename T >
void llvm::yaml::IO::maskedBitSetCase ( T Val,
const char *  Str,
uint32_t  ConstVal,
uint32_t  Mask 
)
inline

Definition at line 566 of file YAMLTraits.h.

References bitSetMatch(), and outputting().

virtual bool llvm::yaml::IO::matchEnumFallback ( )
pure virtual

Implemented in llvm::yaml::Output.

Referenced by enumFallback().

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
virtual void llvm::yaml::IO::postflightElement ( void *  )
pure virtual

Implemented in llvm::yaml::Output.

Referenced by llvm::yaml::yamlize().

virtual void llvm::yaml::IO::postflightFlowElement ( void *  )
pure virtual

Implemented in llvm::yaml::Output.

Referenced by llvm::yaml::yamlize().

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.

Referenced by llvm::yaml::yamlize().

virtual bool llvm::yaml::IO::preflightFlowElement ( unsigned  ,
void *&   
)
pure virtual

Implemented in llvm::yaml::Output.

Referenced by llvm::yaml::yamlize().

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.

Referenced by llvm::yaml::yamlize().

void IO::setContext ( void *  Context)
virtual void llvm::yaml::IO::setError ( const Twine )
pure virtual

Implemented in llvm::yaml::Output.

Referenced by llvm::yaml::yamlize().


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