rapidyaml 0.15.2
parse and emit YAML, and do it fast
Loading...
Searching...
No Matches
c4::yml::NodeType Struct Reference

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.

Detailed Description

Wraps a type_bits mask of NodeTypeBits flags with some syntactic sugar and predicates.

Definition at line 213 of file node_type.hpp.

Constructor & Destructor Documentation

◆ NodeType() [1/2]

c4::yml::NodeType::NodeType ( )
inlinenoexcept

Definition at line 234 of file node_type.hpp.

234: m_bits(NOTYPE) {}
@ NOTYPE
no node type or style is set
Definition node_type.hpp:32

Referenced by key_style(), and val_style().

◆ NodeType() [2/2]

c4::yml::NodeType::NodeType ( type_bits t)
inlinenoexcept

Definition at line 235 of file node_type.hpp.

235: m_bits(t) {}

Member Function Documentation

◆ operator type_bits &()

c4::yml::NodeType::operator type_bits & ( )
inlinenoexcept

Definition at line 224 of file node_type.hpp.

224{ return m_bits; }

◆ operator type_bits const &()

c4::yml::NodeType::operator type_bits const & ( ) const
inlinenoexcept

Definition at line 225 of file node_type.hpp.

225{ return m_bits; }

◆ has_any()

bool c4::yml::NodeType::has_any ( type_bits t) const
inlinenoexcept

Definition at line 244 of file node_type.hpp.

244{ return (m_bits & t) != 0u; }

◆ has_all()

bool c4::yml::NodeType::has_all ( type_bits t) const
inlinenoexcept

Definition at line 245 of file node_type.hpp.

245{ return (m_bits & t) == t; }

◆ has_none()

bool c4::yml::NodeType::has_none ( type_bits t) const
inlinenoexcept

Definition at line 246 of file node_type.hpp.

246{ return (m_bits & t) == 0; }

◆ set()

void c4::yml::NodeType::set ( type_bits t)
inlinenoexcept

Definition at line 248 of file node_type.hpp.

248{ m_bits = t; }

◆ add()

void c4::yml::NodeType::add ( type_bits t)
inlinenoexcept

Definition at line 249 of file node_type.hpp.

249{ m_bits |= t; }

Referenced by c4::yml::Tree::set_root_as_stream().

◆ rem()

void c4::yml::NodeType::rem ( type_bits t)
inlinenoexcept

Definition at line 250 of file node_type.hpp.

250{ m_bits &= ~t; }

Referenced by c4::yml::Tree::set_root_as_stream().

◆ addrem()

void c4::yml::NodeType::addrem ( type_bits bits_to_add,
type_bits bits_to_remove )
inlinenoexcept

Definition at line 251 of file node_type.hpp.

251{ m_bits |= bits_to_add; m_bits &= ~bits_to_remove; }

◆ clear()

void c4::yml::NodeType::clear ( )
inlinenoexcept

Definition at line 253 of file node_type.hpp.

253{ m_bits = NOTYPE; }

◆ type_str() [1/4]

const char * c4::yml::NodeType::type_str ( ) const
inlinenoexcept

return a preset string based on the node type

Definition at line 263 of file node_type.hpp.

263{ return type_str(m_bits); }
const char * type_str() const noexcept
return a preset string based on the node type

Referenced by type_str(), and type_str_sub().

◆ type_str() [2/4]

const char * c4::yml::NodeType::type_str ( type_bits t)
staticnoexcept

return a preset string based on the node type

Definition at line 12 of file node_type.cpp.

13{
14 switch(ty & TYMASK_)
15 {
16 case KEYVAL:
17 return "KEYVAL";
18 case KEY:
19 return "KEY";
20 case VAL:
21 return "VAL";
22 case MAP:
23 return "MAP";
24 case SEQ:
25 return "SEQ";
26 case KEYMAP:
27 return "KEYMAP";
28 case KEYSEQ:
29 return "KEYSEQ";
30 case DOCSEQ:
31 return "DOCSEQ";
32 case DOCMAP:
33 return "DOCMAP";
34 case DOCVAL:
35 return "DOCVAL";
36 case DOC:
37 return "DOC";
38 case STREAM:
39 return "STREAM";
40 case NOTYPE:
41 return "NOTYPE";
42 default:
43 if((ty & KEYVAL) == KEYVAL)
44 return "KEYVAL***";
45 if((ty & KEYMAP) == KEYMAP)
46 return "KEYMAP***";
47 if((ty & KEYSEQ) == KEYSEQ)
48 return "KEYSEQ***";
49 if((ty & DOCSEQ) == DOCSEQ)
50 return "DOCSEQ***";
51 if((ty & DOCMAP) == DOCMAP)
52 return "DOCMAP***";
53 if((ty & DOCVAL) == DOCVAL)
54 return "DOCVAL***";
55 if(ty & KEY)
56 return "KEY***";
57 if(ty & VAL)
58 return "VAL***";
59 if(ty & MAP)
60 return "MAP***";
61 if(ty & SEQ)
62 return "SEQ***";
63 if(ty & DOC)
64 return "DOC***";
65 return "(unk)";
66 }
67}
@ TYMASK_
all the bits up to here
Definition node_type.hpp:47
@ MAP
a map: a parent of KEYVAL/KEYSEQ/KEYMAP nodes
Definition node_type.hpp:35
@ STREAM
a stream: a seq of docs
Definition node_type.hpp:38
@ KEY
the scalar to the left of : in a map's member
Definition node_type.hpp:33
@ VAL
a scalar: has a scalar (ie string) value, possibly empty. must be a leaf node, and cannot be MAP or S...
Definition node_type.hpp:34
@ KEYMAP
mask of KEY|MAP
@ KEYSEQ
mask of KEY|SEQ
@ SEQ
a seq: a parent of VAL/SEQ/MAP nodes
Definition node_type.hpp:36
@ DOCSEQ
mask of DOC|SEQ
@ DOCMAP
mask of DOC|MAP
@ DOCVAL
mask of DOC|VAL
@ KEYVAL
mask of KEY|VAL
@ DOC
a document
Definition node_type.hpp:37

◆ type_str() [3/4]

size_t c4::yml::NodeType::type_str ( substr buf) const
inlinenoexcept

fill a string with the node type flags.

Definition at line 268 of file node_type.hpp.

268{ return type_str(buf, m_bits); }

Referenced by type_str().

◆ type_str() [4/4]

size_t c4::yml::NodeType::type_str ( substr buf,
type_bits t )
staticnoexcept

fill a string with the node type flags.

Definition at line 108 of file node_type.cpp.

109{
110 detail::SubstrWriter_ writer(buf);
111 for(type_and_name const tn : type_names)
112 {
113 if((flags & tn.bits) == tn.bits)
114 {
115 if(writer.pos)
116 writer.append('|');
117 writer.append(tn.str);
118 flags = flags & ~tn.bits; // remove the flag
119 }
120 }
121 if(!writer.pos)
122 writer.append("NOTYPE");
123 if(writer.pos < buf.len)
124 buf[writer.pos] = '\0';
125 return writer.pos;
126}

◆ type_str_sub() [1/2]

csubstr c4::yml::NodeType::type_str_sub ( substr buf) const
inlinenoexcept

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.

273{ return type_str_sub(buf, m_bits); }
csubstr type_str_sub(substr buf) const noexcept
fill a string with the node type flags.

Referenced by type_str_sub().

◆ type_str_sub() [2/2]

csubstr c4::yml::NodeType::type_str_sub ( substr buf,
type_bits t )
inlinestaticnoexcept

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.

276 {
277 csubstr ret;
278 ret.len = type_str(buf, t);
279 ret.str = ret.len < buf.len ? buf.str : nullptr;
280 return ret;
281 }
basic_substring< const char > csubstr
an immutable string view
Definition substr.hpp:2356
size_t len
the length of the substring
Definition substr.hpp:218

◆ is_notype()

bool c4::yml::NodeType::is_notype ( ) const
inlinenoexcept

Definition at line 290 of file node_type.hpp.

290{ return m_bits == NOTYPE; }

◆ is_stream()

bool c4::yml::NodeType::is_stream ( ) const
inlinenoexcept

Definition at line 291 of file node_type.hpp.

291{ return ((m_bits & STREAM) == STREAM) != 0; }

Referenced by c4::yml::Tree::set_root_as_stream().

◆ is_doc()

bool c4::yml::NodeType::is_doc ( ) const
inlinenoexcept

Definition at line 292 of file node_type.hpp.

292{ return (m_bits & DOC) != 0; }

Referenced by c4::yml::Tree::ancestor_doc().

◆ is_container()

bool c4::yml::NodeType::is_container ( ) const
inlinenoexcept

Definition at line 293 of file node_type.hpp.

293{ return (m_bits & (MAP|SEQ|STREAM)) != 0; }

Referenced by c4::yml::Tree::set_root_as_stream().

◆ is_map()

bool c4::yml::NodeType::is_map ( ) const
inlinenoexcept

◆ is_seq()

bool c4::yml::NodeType::is_seq ( ) const
inlinenoexcept

◆ has_key()

bool c4::yml::NodeType::has_key ( ) const
inlinenoexcept

Definition at line 296 of file node_type.hpp.

296{ return (m_bits & KEY) != 0; }

Referenced by c4::yml::Tree::change_type(), and c4::yml::Tree::set_root_as_stream().

◆ has_val()

bool c4::yml::NodeType::has_val ( ) const
inlinenoexcept

Definition at line 297 of file node_type.hpp.

297{ return (m_bits & VAL) != 0; }

Referenced by c4::yml::Tree::merge_with().

◆ is_val()

bool c4::yml::NodeType::is_val ( ) const
inlinenoexcept

Definition at line 298 of file node_type.hpp.

298{ return (m_bits & KEYVAL) == VAL; }

Referenced by c4::yml::Tree::change_type(), and c4::yml::Tree::merge_with().

◆ is_keyval()

bool c4::yml::NodeType::is_keyval ( ) const
inlinenoexcept

Definition at line 299 of file node_type.hpp.

299{ return (m_bits & KEYVAL) == KEYVAL; }

Referenced by c4::yml::Tree::merge_with().

◆ key_is_null()

bool c4::yml::NodeType::key_is_null ( ) const
inlinenoexcept

Definition at line 300 of file node_type.hpp.

300{ return (m_bits & KEYNIL) != 0; }
@ KEYNIL
the key is null (eg { : b} results in a null key)
Definition node_type.hpp:45

◆ val_is_null()

bool c4::yml::NodeType::val_is_null ( ) const
inlinenoexcept

Definition at line 301 of file node_type.hpp.

301{ return (m_bits & VALNIL) != 0; }
@ VALNIL
the val is null (eg {a : } results in a null val)
Definition node_type.hpp:46

◆ has_key_tag()

bool c4::yml::NodeType::has_key_tag ( ) const
inlinenoexcept

Definition at line 302 of file node_type.hpp.

302{ return (m_bits & KEYTAG) != 0; }
@ KEYTAG
the key has a tag
Definition node_type.hpp:43

◆ has_val_tag()

bool c4::yml::NodeType::has_val_tag ( ) const
inlinenoexcept

Definition at line 303 of file node_type.hpp.

303{ return (m_bits & VALTAG) != 0; }
@ VALTAG
the val has a tag
Definition node_type.hpp:44

◆ has_key_anchor()

bool c4::yml::NodeType::has_key_anchor ( ) const
inlinenoexcept

Definition at line 304 of file node_type.hpp.

304{ return (m_bits & KEYANCH) != 0; }
@ KEYANCH
the key has an &anchor
Definition node_type.hpp:41

◆ has_val_anchor()

bool c4::yml::NodeType::has_val_anchor ( ) const
inlinenoexcept

Definition at line 305 of file node_type.hpp.

305{ return (m_bits & VALANCH) != 0; }
@ VALANCH
the val has an &anchor
Definition node_type.hpp:42

◆ has_anchor()

bool c4::yml::NodeType::has_anchor ( ) const
inlinenoexcept

Definition at line 306 of file node_type.hpp.

306{ return (m_bits & (KEYANCH|VALANCH)) != 0; }

◆ is_key_ref()

bool c4::yml::NodeType::is_key_ref ( ) const
inlinenoexcept

Definition at line 307 of file node_type.hpp.

307{ return (m_bits & KEYREF) != 0; }
@ KEYREF
a *reference: the key references an &anchor
Definition node_type.hpp:39

◆ is_val_ref()

bool c4::yml::NodeType::is_val_ref ( ) const
inlinenoexcept

Definition at line 308 of file node_type.hpp.

308{ return (m_bits & VALREF) != 0; }
@ VALREF
a *reference: the val references an &anchor
Definition node_type.hpp:40

◆ is_ref()

bool c4::yml::NodeType::is_ref ( ) const
inlinenoexcept

Definition at line 309 of file node_type.hpp.

309{ return (m_bits & (KEYREF|VALREF)) != 0; }

◆ is_key_unfiltered()

bool c4::yml::NodeType::is_key_unfiltered ( ) const
inlinenoexcept

Definition at line 311 of file node_type.hpp.

311{ return (m_bits & (KEY_UNFILT)) != 0; }
@ KEY_UNFILT
the key scalar was left unfiltered; the parser was set not to filter.
Definition node_type.hpp:51

◆ is_val_unfiltered()

bool c4::yml::NodeType::is_val_unfiltered ( ) const
inlinenoexcept

Definition at line 312 of file node_type.hpp.

312{ return (m_bits & (VAL_UNFILT)) != 0; }
@ VAL_UNFILT
the val scalar was left unfiltered; the parser was set not to filter.
Definition node_type.hpp:52

◆ is_container_styled()

bool c4::yml::NodeType::is_container_styled ( ) const
inlinenoexcept

Definition at line 321 of file node_type.hpp.

321{ return (m_bits & (CONTAINER_STYLE)) != 0; }
@ CONTAINER_STYLE
mask of CONTAINER_STYLE_FLOW|CONTAINER_STYLE_BLOCK : all container style flags

◆ is_block()

bool c4::yml::NodeType::is_block ( ) const
inlinenoexcept

Definition at line 322 of file node_type.hpp.

322{ return (m_bits & (BLOCK)) != 0; }
@ BLOCK
mark container with block style

◆ is_flow_sl()

bool c4::yml::NodeType::is_flow_sl ( ) const
inlinenoexcept

Definition at line 323 of file node_type.hpp.

323{ return (m_bits & (FLOW_SL)) != 0; }
@ FLOW_SL
mark container with single-line flow style
Definition node_type.hpp:56

◆ is_flow_ml1()

bool c4::yml::NodeType::is_flow_ml1 ( ) const
inlinenoexcept

Definition at line 324 of file node_type.hpp.

324{ return (m_bits & (FLOW_ML1)) != 0; }
@ FLOW_ML1
mark container with multi-line flow style, 1 element per line
Definition node_type.hpp:75

◆ is_flow_mln()

bool c4::yml::NodeType::is_flow_mln ( ) const
inlinenoexcept

Definition at line 325 of file node_type.hpp.

325{ return (m_bits & (FLOW_MLN)) != 0; }
@ FLOW_MLN
mark container with multi-line flow style, n elements per line, wrapped (as set by EmitOptions::max_c...
Definition node_type.hpp:90

Referenced by sample_style_flow_formatting().

◆ is_flow_mlx()

bool c4::yml::NodeType::is_flow_mlx ( ) const
inlinenoexcept

Definition at line 326 of file node_type.hpp.

326{ return (m_bits & (FLOW_ML1|FLOW_MLN)) != 0; }

◆ is_flow()

bool c4::yml::NodeType::is_flow ( ) const
inlinenoexcept

Definition at line 327 of file node_type.hpp.

327{ return (m_bits & (FLOW_ML1|FLOW_MLN|FLOW_SL)) != 0; }

◆ has_flow_space()

bool c4::yml::NodeType::has_flow_space ( ) const
inlinenoexcept

Definition at line 328 of file node_type.hpp.

328{ return (m_bits & (FLOW_SPC)) != 0; }
@ FLOW_SPC
mark container with spaces after comma when in flow mode. Applies to both FLOW_SL and FLOW_MLN (but n...

◆ is_key_styled()

bool c4::yml::NodeType::is_key_styled ( ) const
inlinenoexcept

Definition at line 330 of file node_type.hpp.

330{ return (m_bits & (KEY_STYLE)) != 0; }
@ KEY_STYLE
mask of KEYQUO|KEY_PLAIN : all the key scalar styles for key (not container styles!...

◆ is_val_styled()

bool c4::yml::NodeType::is_val_styled ( ) const
inlinenoexcept

Definition at line 331 of file node_type.hpp.

331{ return (m_bits & (VAL_STYLE)) != 0; }
@ VAL_STYLE
mask of VALQUO|VAL_PLAIN : all the val scalar styles for val (not container styles!...

◆ is_key_literal()

bool c4::yml::NodeType::is_key_literal ( ) const
inlinenoexcept

Definition at line 332 of file node_type.hpp.

332{ return (m_bits & (KEY_LITERAL)) != 0; }
@ KEY_LITERAL
mark key scalar as multiline, block literal |

◆ is_val_literal()

bool c4::yml::NodeType::is_val_literal ( ) const
inlinenoexcept

Definition at line 333 of file node_type.hpp.

333{ return (m_bits & (VAL_LITERAL)) != 0; }
@ VAL_LITERAL
mark val scalar as multiline, block literal |

◆ is_key_folded()

bool c4::yml::NodeType::is_key_folded ( ) const
inlinenoexcept

Definition at line 334 of file node_type.hpp.

334{ return (m_bits & (KEY_FOLDED)) != 0; }
@ KEY_FOLDED
mark key scalar as multiline, block folded >

◆ is_val_folded()

bool c4::yml::NodeType::is_val_folded ( ) const
inlinenoexcept

Definition at line 335 of file node_type.hpp.

335{ return (m_bits & (VAL_FOLDED)) != 0; }
@ VAL_FOLDED
mark val scalar as multiline, block folded >

◆ is_key_squo()

bool c4::yml::NodeType::is_key_squo ( ) const
inlinenoexcept

Definition at line 336 of file node_type.hpp.

336{ return (m_bits & (KEY_SQUO)) != 0; }
@ KEY_SQUO
mark key scalar as single quoted '

◆ is_val_squo()

bool c4::yml::NodeType::is_val_squo ( ) const
inlinenoexcept

Definition at line 337 of file node_type.hpp.

337{ return (m_bits & (VAL_SQUO)) != 0; }
@ VAL_SQUO
mark val scalar as single quoted '

◆ is_key_dquo()

bool c4::yml::NodeType::is_key_dquo ( ) const
inlinenoexcept

Definition at line 338 of file node_type.hpp.

338{ return (m_bits & (KEY_DQUO)) != 0; }
@ KEY_DQUO
mark key scalar as double quoted "

◆ is_val_dquo()

bool c4::yml::NodeType::is_val_dquo ( ) const
inlinenoexcept

Definition at line 339 of file node_type.hpp.

339{ return (m_bits & (VAL_DQUO)) != 0; }
@ VAL_DQUO
mark val scalar as double quoted "

◆ is_key_plain()

bool c4::yml::NodeType::is_key_plain ( ) const
inlinenoexcept

Definition at line 340 of file node_type.hpp.

340{ return (m_bits & (KEY_PLAIN)) != 0; }
@ KEY_PLAIN
mark key scalar as plain scalar (unquoted, even when multiline)

◆ is_val_plain()

bool c4::yml::NodeType::is_val_plain ( ) const
inlinenoexcept

Definition at line 341 of file node_type.hpp.

341{ return (m_bits & (VAL_PLAIN)) != 0; }
@ VAL_PLAIN
mark val scalar as plain scalar (unquoted, even when multiline)

◆ is_key_quoted()

bool c4::yml::NodeType::is_key_quoted ( ) const
inlinenoexcept

Definition at line 342 of file node_type.hpp.

342{ return (m_bits & KEYQUO) != 0; }
@ KEYQUO
key style is one of '">|. mask of KEY_SQUO|KEY_DQUO|KEY_FOLDED|KEY_LITERAL

◆ is_val_quoted()

bool c4::yml::NodeType::is_val_quoted ( ) const
inlinenoexcept

Definition at line 343 of file node_type.hpp.

343{ return (m_bits & VALQUO) != 0; }
@ VALQUO
val style is one of '">|. mask of VAL_SQUO|VAL_DQUO|VAL_FOLDED|VAL_LITERAL

◆ is_quoted()

bool c4::yml::NodeType::is_quoted ( ) const
inlinenoexcept

Definition at line 344 of file node_type.hpp.

344{ return (m_bits & (KEYQUO|VALQUO)) != 0; }

◆ key_style()

NodeType c4::yml::NodeType::key_style ( ) const
inlinenoexcept

Definition at line 346 of file node_type.hpp.

346{ return (m_bits & (KEY_STYLE)); }

◆ val_style()

NodeType c4::yml::NodeType::val_style ( ) const
inlinenoexcept

Definition at line 347 of file node_type.hpp.

347{ return (m_bits & (VAL_STYLE)); }

◆ set_container_style()

void c4::yml::NodeType::set_container_style ( type_bits style)
inlinenoexcept

Definition at line 349 of file node_type.hpp.

349{ m_bits = ((style & CONTAINER_STYLE) | (m_bits & ~CONTAINER_STYLE)); }

◆ set_key_style()

void c4::yml::NodeType::set_key_style ( type_bits style)
inlinenoexcept

Definition at line 350 of file node_type.hpp.

350{ m_bits = ((style & KEY_STYLE) | (m_bits & ~KEY_STYLE)); }

◆ set_val_style()

void c4::yml::NodeType::set_val_style ( type_bits style)
inlinenoexcept

Definition at line 351 of file node_type.hpp.

351{ m_bits = ((style & VAL_STYLE) | (m_bits & ~VAL_STYLE)); }

◆ clear_style()

void c4::yml::NodeType::clear_style ( )
inlinenoexcept

Definition at line 352 of file node_type.hpp.

352{ m_bits &= ~STYLE; }

Member Data Documentation

◆ m_bits


The documentation for this struct was generated from the following files:
  • /home/docs/checkouts/readthedocs.org/user_builds/rapidyaml/checkouts/latest/src/c4/yml/node_type.hpp
  • /home/docs/checkouts/readthedocs.org/user_builds/rapidyaml/checkouts/latest/src/c4/yml/node_type.cpp