LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
llvm::yaml::IO Class Referenceabstract

#include <YAMLTraits.h>

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

Public Member Functions

 IO (void *Ctxt=NULL)
 
virtual ~IO ()
 
virtual bool outputting () const =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 &)=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)
 
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)
 

Detailed Description

Definition at line 315 of file YAMLTraits.h.

Constructor & Destructor Documentation

IO::IO ( void *  Ctxt = NULL)

Definition at line 26 of file YAMLTraits.cpp.

IO::~IO ( )
virtual

Definition at line 29 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 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 368 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 376 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().

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

References matchEnumScalar(), and outputting().

void * IO::getContext ( )

Definition at line 32 of file YAMLTraits.cpp.

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

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

Definition at line 401 of file YAMLTraits.h.

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

Definition at line 406 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.

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 ( ) const
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 )
pure virtual

Implemented in llvm::yaml::Output.

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

void IO::setContext ( void *  Context)

Definition at line 36 of file YAMLTraits.cpp.

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: