|
rapidyaml 0.15.2
parse and emit YAML, and do it fast
|
Wraps a type_bits mask of NodeTypeBits flags with some syntactic sugar and predicates. More...
#include <node_type.hpp>
Public Member Functions | |
auto convert to type_bits | |
| operator type_bits & () noexcept | |
| operator type_bits const & () const noexcept | |
ctor | |
| NodeType () noexcept | |
| NodeType (type_bits t) noexcept | |
query / set | |
| bool | has_any (type_bits t) const noexcept |
| bool | has_all (type_bits t) const noexcept |
| bool | has_none (type_bits t) const noexcept |
| void | set (type_bits t) noexcept |
| void | add (type_bits t) noexcept |
| void | rem (type_bits t) noexcept |
| void | addrem (type_bits bits_to_add, type_bits bits_to_remove) noexcept |
| void | clear () noexcept |
node type predicates | |
| 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 |
node style predicates | |
| bool | is_container_styled () const noexcept |
| bool | is_block () const noexcept |
| bool | is_flow_sl () const noexcept |
| bool | is_flow_ml1 () const noexcept |
| bool | is_flow_mln () const noexcept |
| bool | is_flow_mlx () const noexcept |
| bool | is_flow () const noexcept |
| bool | has_flow_space () 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 (type_bits style) noexcept |
| void | set_key_style (type_bits style) noexcept |
| void | set_val_style (type_bits style) noexcept |
| void | clear_style () noexcept |
Public Attributes | |
| type_bits | m_bits |
convert to string | |
| const char * | type_str () const noexcept |
| return a preset string based on the node type | |
| size_t | type_str (substr buf) const noexcept |
| fill a string with the node type flags. | |
| csubstr | type_str_sub (substr buf) const noexcept |
| fill a string with the node type flags. | |
| static const char * | type_str (type_bits t) noexcept |
| return a preset string based on the node type | |
| static size_t | type_str (substr buf, type_bits t) noexcept |
| fill a string with the node type flags. | |
| static csubstr | type_str_sub (substr buf, type_bits t) noexcept |
| fill a string with the node type flags. | |
Wraps a type_bits mask of NodeTypeBits flags with some syntactic sugar and predicates.
Definition at line 213 of file node_type.hpp.
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 235 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 224 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 225 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 244 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 245 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 246 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 248 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 249 of file node_type.hpp.
Referenced by c4::yml::Tree::set_root_as_stream().
|
inlinenoexcept |
Definition at line 250 of file node_type.hpp.
Referenced by c4::yml::Tree::set_root_as_stream().
Definition at line 251 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 253 of file node_type.hpp.
|
inlinenoexcept |
return a preset string based on the node type
Definition at line 263 of file node_type.hpp.
Referenced by type_str(), and type_str_sub().
|
staticnoexcept |
return a preset string based on the node type
Definition at line 12 of file node_type.cpp.
|
inlinenoexcept |
fill a string with the node type flags.
Definition at line 268 of file node_type.hpp.
Referenced by type_str().
fill a string with the node type flags.
Definition at line 108 of file node_type.cpp.
fill a string with the node type flags.
If the string is small, returns {null, len}
Definition at line 273 of file node_type.hpp.
Referenced by type_str_sub().
fill a string with the node type flags.
If the string is small, returns {null, len}
Definition at line 275 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 290 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 291 of file node_type.hpp.
Referenced by c4::yml::Tree::set_root_as_stream().
|
inlinenoexcept |
Definition at line 292 of file node_type.hpp.
Referenced by c4::yml::Tree::ancestor_doc().
|
inlinenoexcept |
Definition at line 293 of file node_type.hpp.
Referenced by c4::yml::Tree::set_root_as_stream().
|
inlinenoexcept |
Definition at line 294 of file node_type.hpp.
Referenced by c4::yml::Tree::change_type(), c4::yml::Tree::duplicate_children_no_rep(), and c4::yml::Tree::merge_with().
|
inlinenoexcept |
Definition at line 295 of file node_type.hpp.
Referenced by c4::yml::Tree::change_type(), c4::yml::Tree::duplicate_children_no_rep(), and c4::yml::Tree::merge_with().
|
inlinenoexcept |
Definition at line 296 of file node_type.hpp.
Referenced by c4::yml::Tree::change_type(), and c4::yml::Tree::set_root_as_stream().
|
inlinenoexcept |
Definition at line 297 of file node_type.hpp.
Referenced by c4::yml::Tree::merge_with().
|
inlinenoexcept |
Definition at line 298 of file node_type.hpp.
Referenced by c4::yml::Tree::change_type(), and c4::yml::Tree::merge_with().
|
inlinenoexcept |
Definition at line 299 of file node_type.hpp.
Referenced by c4::yml::Tree::merge_with().
|
inlinenoexcept |
Definition at line 300 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 301 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 302 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 303 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 304 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 305 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 306 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 307 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 308 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 309 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 311 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 312 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 321 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 322 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 323 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 324 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 325 of file node_type.hpp.
Referenced by sample_style_flow_formatting().
|
inlinenoexcept |
Definition at line 326 of file node_type.hpp.
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 328 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 330 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 331 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 332 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 333 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 334 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 335 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 336 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 337 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 338 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 339 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 340 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 341 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 342 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 343 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 344 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 346 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 347 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 349 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 350 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 351 of file node_type.hpp.
|
inlinenoexcept |
Definition at line 352 of file node_type.hpp.
| type_bits c4::yml::NodeType::m_bits |
Definition at line 217 of file node_type.hpp.
Referenced by NodeType(), NodeType(), add(), addrem(), c4::yml::Tree::change_type(), clear(), clear_style(), has_all(), has_anchor(), has_any(), has_flow_space(), has_key(), has_key_anchor(), has_key_tag(), has_none(), has_val(), has_val_anchor(), has_val_tag(), is_block(), is_container(), is_container_styled(), is_doc(), is_flow(), is_flow_ml1(), is_flow_mln(), is_flow_mlx(), is_flow_sl(), is_key_dquo(), is_key_folded(), is_key_literal(), is_key_plain(), is_key_quoted(), is_key_ref(), is_key_squo(), is_key_styled(), is_key_unfiltered(), is_keyval(), is_map(), is_notype(), is_quoted(), is_ref(), is_seq(), is_stream(), is_val(), is_val_dquo(), is_val_folded(), is_val_literal(), is_val_plain(), is_val_quoted(), is_val_ref(), is_val_squo(), is_val_styled(), is_val_unfiltered(), key_is_null(), key_style(), operator type_bits &(), operator type_bits const &(), rem(), set(), set_container_style(), set_key_style(), set_val_style(), type_str(), type_str(), type_str_sub(), val_is_null(), and val_style().