Lines Matching full:mapping
15 or string. The pound/hash symbol (#) begins a comment line. A mapping is
20 # a mapping
35 of mappings in which one of the mapping values is itself a sequence:
80 possible YAML representations that a direct mapping of your data structures
111 both reading and writing YAML. That is, the mapping between in-memory enum
127 static void mapping(IO &io, Person &info) {
224 YAML scalars are just strings (i.e. not a sequence or mapping). The YAML I/O
329 static void mapping(IO &io, Info &info) {
385 static void mapping(IO &io, Info& info) {
475 To be translated to or from a YAML mapping for your type T you must specialize
476 llvm::yaml::MappingTraits on T and implement the "void mapping(IO &io, T&)"
488 static void mapping(IO &io, Foo &foo) {
497 static void mapping(IO &io, Bar *&bar) {
507 The mapping() method is responsible, if needed, for normalizing and
509 normalization, the mapping method just uses mapOptional() or mapRequired() to
519 static void mapping(IO &io, Person &info) {
529 When [de]normalization is required, the mapping() method needs a way to access
533 a local variable in your mapping() method which contains the normalized keys.
582 static void mapping(IO &io, Polar &polar) {
598 fields of the NormalizedPolar object keys. At the end of the mapping() method
601 and then assigned back to the second parameter to mapping().
614 Within a mapping() method, calls to io.mapRequired() mean that that key is
622 second parameter to the mapping() method is a reference to a native class. That
639 calls to mapRequired()/mapOptional() are made in the mapping() method. This
646 are made in the mapping() method. That enables some interesting
664 static void mapping(IO &io, Info &info) {
685 To check a tag, inside your mapping() method you can use io.mapTag() to specify
715 static void mapping(IO &io, Stuff &stuff) {
798 will be a mapping or sequence. For those cases, the following is not needed.
820 in the mapping. But what if an inner mapping needs to know some field value
821 of an outer mapping? That is where the "context" parameter comes in. You
822 can set values in the context in the outer map's mapping() method and
823 retrieve those values in the inner map's mapping() method.
848 streaming as YAML is a mapping, scalar, or sequence, then Output assumes you
849 are generating one document and wraps the mapping output