LLVM API Documentation

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

#include <YAMLTraits.h>

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

List of all members.

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)

Detailed Description

Definition at line 423 of file YAMLTraits.h.


Constructor & Destructor Documentation

IO::IO ( void *  Ctxt = nullptr)

Definition at line 27 of file YAMLTraits.cpp.

IO::~IO ( ) [virtual]

Definition at line 30 of file YAMLTraits.cpp.


Member Function Documentation

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.

template<typename T >
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().

template<typename T >
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.

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 469 of file YAMLTraits.h.

References matchEnumScalar(), and outputting().

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 521 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 527 of file YAMLTraits.h.

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

Definition at line 532 of file YAMLTraits.h.

template<typename T >
void llvm::yaml::IO::mapRequired ( const char *  Key,
T Val 
) [inline]
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 491 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 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]
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)
virtual void llvm::yaml::IO::setError ( const Twine ) [pure virtual]

Implemented in llvm::yaml::Output.


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