|
rapidyaml
0.16.0
parseandemitYAML,anddoitfast
|
Classes | |
| struct | c4::yml::NodeType |
| Wraps a type_bits mask of NodeTypeBits flags with some syntactic sugar and predicates. More... | |
Typedefs | |
| using | c4::yml::type_bits = uint32_t |
| the integral type necessary to cover all the bits for NodeType_e More... | |
| using c4::yml::type_bits = typedef uint32_t |
the integral type necessary to cover all the bits for NodeType_e
Definition at line 26 of file node_type.hpp.
| enum c4::yml::NodeTypeBits : type_bits |
a bit mask for marking node types and styles
| Enumerator | |
|---|---|
| NOTYPE |
no node type or style is set |
| KEY |
the scalar to the left of |
| VAL |
a scalar: has a scalar (ie string) value, possibly empty. must be a leaf node, and cannot be MAP or SEQ |
| MAP |
a map: a parent of KEYVAL/KEYSEQ/KEYMAP nodes |
| SEQ |
a seq: a parent of VAL/SEQ/MAP nodes |
| DOC |
a document |
| STREAM |
a stream: a seq of docs |
| KEYREF |
a *reference: the key references an &anchor |
| VALREF |
a *reference: the val references an &anchor |
| KEYANCH |
the key has an &anchor |
| VALANCH |
the val has an &anchor |
| KEYTAG |
the key has a tag |
| VALTAG |
the val has a tag |
| KEYNIL |
the key is null (eg |
| VALNIL |
the val is null (eg |
| TYMASK_ |
all the bits up to here |
| KEY_UNFILT |
the key scalar was left unfiltered; the parser was set not to filter. |
| VAL_UNFILT |
the val scalar was left unfiltered; the parser was set not to filter. |
| FLOW_SL |
mark container with single-line flow style < - seqs as < < when FLOW_SPC is not set, or < < when FLOW_SPC is set (or EmitOptions::force_flow_spc() is set) < - maps as < < when FLOW_SPC is not set, or < < when FLOW_SPC is set (or EmitOptions::force_flow_spc() is set) |
| FLOW_ML1 |
mark container with multi-line flow style, 1 element per line < - seqs as < < - maps as < |
| FLOW_MLN |
mark container with multi-line flow style, n elements per line, < wrapped (as set by EmitOptions::max_cols()): < - seqs as < < when FLOW_SPC is not set, or < < when FLOW_SPC is set (or EmitOptions::force_flow_spc() is set) < - maps as < < when FLOW_SPC is not set, or < < when FLOW_SPC is set (or EmitOptions::force_flow_spc() is set) |
| FLOW_SPC |
mark container with spaces after comma when in flow mode. < Applies to both FLOW_SL and FLOW_MLN (but not < to FLOW_ML1), and can be overriden globally by < EmitOptions::force_flow_spc(). |
| BLOCK |
mark container with block style < - seqs as < < - maps as < |
| KEY_LITERAL |
mark key scalar as multiline, block literal | |
| VAL_LITERAL |
mark val scalar as multiline, block literal | |
| KEY_FOLDED |
mark key scalar as multiline, block folded > |
| VAL_FOLDED |
mark val scalar as multiline, block folded > |
| KEY_SQUO |
mark key scalar as single quoted ' |
| VAL_SQUO |
mark val scalar as single quoted ' |
| KEY_DQUO |
mark key scalar as double quoted " |
| VAL_DQUO |
mark val scalar as double quoted " |
| KEY_PLAIN |
mark key scalar as plain scalar (unquoted, even when multiline) |
| VAL_PLAIN |
mark val scalar as plain scalar (unquoted, even when multiline) |
| KEYVAL | |
| KEYSEQ | |
| KEYMAP | |
| DOCMAP | |
| DOCSEQ | |
| DOCVAL | |
| SCALAR_LITERAL |
mask of KEY_LITERAL|VAL_LITERAL, |
| SCALAR_FOLDED |
mask of KEY_FOLDED|VAL_FOLDED, |
| SCALAR_SQUO | |
| SCALAR_DQUO | |
| SCALAR_PLAIN | |
| KEYQUO |
key style is one of `'">|`. mask of KEY_SQUO|KEY_DQUO|KEY_FOLDED|KEY_LITERAL |
| VALQUO |
val style is one of `'">|`. mask of VAL_SQUO|VAL_DQUO|VAL_FOLDED|VAL_LITERAL |
| KEY_STYLE |
mask of KEYQUO|KEY_PLAIN : all the key scalar styles for key (not container styles!) |
| VAL_STYLE |
mask of VALQUO|VAL_PLAIN : all the val scalar styles for val (not container styles!) |
| SCALAR_STYLE | |
| FLOW_MLX | |
| CONTAINER_STYLE_FLOW | |
| CONTAINER_STYLE_BLOCK |
alias to BLOCK |
| CONTAINER_STYLE |
mask of CONTAINER_STYLE_FLOW|CONTAINER_STYLE_BLOCK : all container style flags |
| STYLE |
mask of SCALAR_STYLE | CONTAINER_STYLE : all style flags |
Definition at line 30 of file node_type.hpp.