llvm::yaml::IO

Function-pointer type matching ScalarEnumerationTraits::enumeration.

Synopsis

Declared in <llvm/Support/YAMLTraits.h>

class IO;

Member Functions

NameDescription
IO [constructor]Construct an IO object with optional user context Ctxt.
~IO [destructor] [virtual]Destroy the IO object.
beginBitSetScalar [virtual]Begin converting a bit-set scalar.
beginEnumScalar [virtual]Begin converting an enumeration scalar.
beginFlowMapping [virtual]Begin reading or writing a flow-style mapping.
beginFlowSequence [virtual]Begin reading or writing a flow-style sequence.
beginMapping [virtual]Begin reading or writing a block-style mapping.
beginSequence [virtual]Begin reading or writing a block-style sequence.
bitSetCase bitSetCase overloads
bitSetMatch [virtual]Match bit-set case Str, optionally treating it as selected.
blockScalarString [virtual]Read or write a literal block scalar string.
canElideEmptySequence [virtual]Return true if empty sequences may be omitted on output.
endBitSetScalar [virtual]Finish converting a bit-set scalar.
endEnumScalar [virtual]Finish converting an enumeration scalar.
endFlowMapping [virtual]Finish reading or writing a flow-style mapping.
endFlowSequence [virtual]Finish reading or writing a flow-style sequence.
endMapping [virtual]Finish reading or writing a block-style mapping.
endSequence [virtual]Finish reading or writing a block-style sequence.
enumCase enumCase overloads
enumFallback Fall back to converting Val via strong typedef base type FBT.
error [virtual]Return the error state from this IO operation.
getContext Return the opaque client context pointer.
getNodeKind [virtual]Return the kind of the current YAML node.
keys [virtual]Return the keys present in the current mapping (input).
mapOptional mapOptional overloads
mapOptionalWithContext mapOptionalWithContext overloads
mapRequired mapRequired overloads
mapTag [virtual]Match or emit mapping tag Tag.
maskedBitSetCase maskedBitSetCase overloads
matchEnumFallback [virtual]Attempt the enumeration fallback conversion path.
matchEnumScalar [virtual]Match enumeration case Str, optionally treating it as selected.
outputting [virtual]Return true when this IO is writing YAML rather than reading it.
postflightElement [virtual]Finish processing a block-sequence element.
postflightFlowElement [virtual]Finish processing a flow-sequence element.
postflightKey [virtual]Finish processing a mapping key.
preflightElement [virtual]Prepare element Index of a block sequence.
preflightFlowElement [virtual]Prepare element Index of a flow sequence.
preflightKey [virtual]Prepare key Key in the current mapping.
scalarString [virtual]Read or write a plain scalar string.
scalarTag [virtual]Read or write the YAML tag associated with a scalar.
setAllowUnknownKeys [virtual]Allow (or reject) unknown mapping keys during input.
setContext Set the opaque client context pointer to Context.
setError [virtual]Record error Message for this IO operation.

Non-Member Functions

NameDescription
yamlizeConvert mapping Val without a validate hook.
yamlizeIntentionally ill-formed overload that diagnoses missing YAML traits for T.
yamlizeConvert scalar Val through ScalarTraits.
yamlizeConvert block scalar Val through BlockScalarTraits.
yamlizeConvert enumeration Val through ScalarEnumerationTraits.
yamlizeConvert sequence Seq through SequenceTraits.
yamlizeConvert tagged scalar Val through TaggedScalarTraits.
yamlizeConvert bit-set Val through ScalarBitSetTraits.
yamlizeConvert custom mapping Val through CustomMappingTraits.
yamlizeConvert polymorphic Val through PolymorphicTraits.
yamlizeConvert mapping Val with validation through mapping traits.
yamlizeMappingEnumInputTry converting mapping Val via an enumInput trait on input.

Derived Classes

NameDescription
Input Parses YAML text into in-memory structs and vectors.
Output Generates YAML text from in-memory structs and vectors.