|
rapidyaml
0.11.1
parse and emit YAML, and do it fast
|
wraps a NodeType_e element with some syntactic sugar and predicates More...
#include <node_type.hpp>
Public Member Functions | |
| NodeType () noexcept | |
| NodeType (NodeType_e t) noexcept | |
| NodeType (type_bits t) noexcept | |
| bool | has_any (NodeType_e t) const noexcept |
| bool | has_all (NodeType_e t) const noexcept |
| bool | has_none (NodeType_e t) const noexcept |
| void | set (NodeType_e t) noexcept |
| void | add (NodeType_e t) noexcept |
| void | rem (NodeType_e t) noexcept |
| void | addrem (NodeType_e bits_to_add, NodeType_e bits_to_remove) noexcept |
| void | clear () noexcept |
| operator NodeType_e & () noexcept | |
| operator NodeType_e const & () const noexcept | |
style functions | |
| bool | is_container_styled () const noexcept |
| bool | is_block () const noexcept |
| bool | is_flow_sl () const noexcept |
| bool | is_flow_ml () const noexcept |
| bool | is_flow () const noexcept |
| bool | is_key_styled () const noexcept |
| bool | is_val_styled () const noexcept |
| bool | is_key_literal () const noexcept |
| bool | is_val_literal () const noexcept |
| bool | is_key_folded () const noexcept |
| bool | is_val_folded () const noexcept |
| bool | is_key_squo () const noexcept |
| bool | is_val_squo () const noexcept |
| bool | is_key_dquo () const noexcept |
| bool | is_val_dquo () const noexcept |
| bool | is_key_plain () const noexcept |
| bool | is_val_plain () const noexcept |
| bool | is_key_quoted () const noexcept |
| bool | is_val_quoted () const noexcept |
| bool | is_quoted () const noexcept |
| NodeType | key_style () const noexcept |
| NodeType | val_style () const noexcept |
| void | set_container_style (NodeType_e style) noexcept |
| void | set_key_style (NodeType_e style) noexcept |
| void | set_val_style (NodeType_e style) noexcept |
| void | clear_style () noexcept |
Public Attributes | |
| NodeType_e | type |
node type queries | |
| const char * | type_str () const noexcept |
| return a preset string based on the node type More... | |
| csubstr | type_str (substr buf) const noexcept |
| fill a string with the node type flags. More... | |
| bool | is_notype () const noexcept |
| bool | is_stream () const noexcept |
| bool | is_doc () const noexcept |
| bool | is_container () const noexcept |
| bool | is_map () const noexcept |
| bool | is_seq () const noexcept |
| bool | has_key () const noexcept |
| bool | has_val () const noexcept |
| bool | is_val () const noexcept |
| bool | is_keyval () const noexcept |
| bool | key_is_null () const noexcept |
| bool | val_is_null () const noexcept |
| bool | has_key_tag () const noexcept |
| bool | has_val_tag () const noexcept |
| bool | has_key_anchor () const noexcept |
| bool | has_val_anchor () const noexcept |
| bool | has_anchor () const noexcept |
| bool | is_key_ref () const noexcept |
| bool | is_val_ref () const noexcept |
| bool | is_ref () const noexcept |
| bool | is_key_unfiltered () const noexcept |
| bool | is_val_unfiltered () const noexcept |
| bool | is_key_anchor () const noexcept |
| bool | is_val_anchor () const noexcept |
| bool | is_anchor () const noexcept |
| bool | is_anchor_or_ref () const noexcept |
| static const char * | type_str (NodeType_e t) noexcept |
| return a preset string based on the node type More... | |
| static csubstr | type_str (substr buf, NodeType_e t) noexcept |
| fill a string with the node type flags. More... | |
wraps a NodeType_e element with some syntactic sugar and predicates
Definition at line 119 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 127 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 128 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 129 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 131 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 132 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 133 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 135 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 136 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 137 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 138 of file node_type.hpp.
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 144 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 145 of file node_type.hpp.
|
inlinenoexcept |
return a preset string based on the node type
Definition at line 153 of file node_type.hpp.
References type_str().
|
staticnoexcept |
return a preset string based on the node type
Definition at line 6 of file node_type.cpp.
References c4::yml::_TYMASK, c4::yml::DOC, c4::yml::DOCMAP, c4::yml::DOCSEQ, c4::yml::DOCVAL, c4::yml::KEY, c4::yml::KEYMAP, c4::yml::KEYSEQ, c4::yml::KEYVAL, c4::yml::MAP, c4::yml::NOTYPE, c4::yml::SEQ, c4::yml::STREAM, and c4::yml::VAL.
|
inlinenoexcept |
fill a string with the node type flags.
If the string is small, returns {null, len}
Definition at line 158 of file node_type.hpp.
References type_str().
|
staticnoexcept |
fill a string with the node type flags.
If the string is small, returns {null, len}
Definition at line 63 of file node_type.cpp.
References _prflag, c4::yml::BLOCK, c4::yml::DOC, c4::yml::FLOW_ML, c4::yml::FLOW_SL, c4::yml::KEY, c4::yml::KEY_DQUO, c4::yml::KEY_FOLDED, c4::yml::KEY_LITERAL, c4::yml::KEY_PLAIN, c4::yml::KEY_SQUO, c4::yml::KEY_UNFILT, c4::yml::KEYANCH, c4::yml::KEYNIL, c4::yml::KEYREF, c4::yml::KEYTAG, c4::yml::MAP, c4::yml::NOTYPE, c4::yml::SEQ, c4::yml::STREAM, c4::yml::VAL, c4::yml::VAL_DQUO, c4::yml::VAL_FOLDED, c4::yml::VAL_LITERAL, c4::yml::VAL_PLAIN, c4::yml::VAL_SQUO, c4::yml::VAL_UNFILT, c4::yml::VALANCH, c4::yml::VALNIL, c4::yml::VALREF, and c4::yml::VALTAG.
|
inlinenoexcept |
Definition at line 167 of file node_type.hpp.
References c4::yml::NOTYPE.
|
inlinenoexcept |
Definition at line 168 of file node_type.hpp.
References c4::yml::STREAM.
|
inlinenoexcept |
Definition at line 169 of file node_type.hpp.
References c4::yml::DOC.
|
inlinenoexcept |
Definition at line 170 of file node_type.hpp.
References c4::yml::MAP, c4::yml::SEQ, and c4::yml::STREAM.
|
inlinenoexcept |
Definition at line 171 of file node_type.hpp.
References c4::yml::MAP.
|
inlinenoexcept |
Definition at line 172 of file node_type.hpp.
References c4::yml::SEQ.
|
inlinenoexcept |
Definition at line 173 of file node_type.hpp.
References c4::yml::KEY.
|
inlinenoexcept |
Definition at line 174 of file node_type.hpp.
References c4::yml::VAL.
|
inlinenoexcept |
Definition at line 175 of file node_type.hpp.
References c4::yml::KEYVAL, and c4::yml::VAL.
|
inlinenoexcept |
Definition at line 176 of file node_type.hpp.
References c4::yml::KEYVAL.
|
inlinenoexcept |
Definition at line 177 of file node_type.hpp.
References c4::yml::KEYNIL.
|
inlinenoexcept |
Definition at line 178 of file node_type.hpp.
References c4::yml::VALNIL.
|
inlinenoexcept |
Definition at line 179 of file node_type.hpp.
References c4::yml::KEYTAG.
|
inlinenoexcept |
Definition at line 180 of file node_type.hpp.
References c4::yml::VALTAG.
|
inlinenoexcept |
Definition at line 181 of file node_type.hpp.
References c4::yml::KEYANCH.
|
inlinenoexcept |
Definition at line 182 of file node_type.hpp.
References c4::yml::VALANCH.
|
inlinenoexcept |
Definition at line 183 of file node_type.hpp.
References c4::yml::KEYANCH, and c4::yml::VALANCH.
|
inlinenoexcept |
Definition at line 184 of file node_type.hpp.
References c4::yml::KEYREF.
|
inlinenoexcept |
Definition at line 185 of file node_type.hpp.
References c4::yml::VALREF.
|
inlinenoexcept |
Definition at line 186 of file node_type.hpp.
References c4::yml::KEYREF, and c4::yml::VALREF.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 191 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 192 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 193 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 194 of file node_type.hpp.
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 203 of file node_type.hpp.
References c4::yml::BLOCK.
|
inlinenoexcept |
Definition at line 204 of file node_type.hpp.
References c4::yml::FLOW_SL.
|
inlinenoexcept |
Definition at line 205 of file node_type.hpp.
References c4::yml::FLOW_ML.
|
inlinenoexcept |
Definition at line 206 of file node_type.hpp.
References c4::yml::FLOW_ML, and c4::yml::FLOW_SL.
|
inlinenoexcept |
Definition at line 208 of file node_type.hpp.
References c4::yml::KEY_STYLE.
|
inlinenoexcept |
Definition at line 209 of file node_type.hpp.
References c4::yml::VAL_STYLE.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 214 of file node_type.hpp.
References c4::yml::KEY_SQUO.
|
inlinenoexcept |
Definition at line 215 of file node_type.hpp.
References c4::yml::VAL_SQUO.
|
inlinenoexcept |
Definition at line 216 of file node_type.hpp.
References c4::yml::KEY_DQUO.
|
inlinenoexcept |
Definition at line 217 of file node_type.hpp.
References c4::yml::VAL_DQUO.
|
inlinenoexcept |
Definition at line 218 of file node_type.hpp.
References c4::yml::KEY_PLAIN.
|
inlinenoexcept |
Definition at line 219 of file node_type.hpp.
References c4::yml::VAL_PLAIN.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 222 of file node_type.hpp.
References c4::yml::KEYQUO, and c4::yml::VALQUO.
|
inlinenoexcept |
Definition at line 224 of file node_type.hpp.
References c4::yml::KEY_STYLE.
|
inlinenoexcept |
Definition at line 225 of file node_type.hpp.
References c4::yml::VAL_STYLE.
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 228 of file node_type.hpp.
References c4::yml::KEY_STYLE.
|
inlinenoexcept |
Definition at line 229 of file node_type.hpp.
References c4::yml::VAL_STYLE.
|
inlinenoexcept |
| NodeType_e c4::yml::NodeType::type |
Definition at line 123 of file node_type.hpp.