|
|
| NodeData const * | get () const RYML_NOEXCEPT |
| | returns the data or null when the id is NONE More...
|
| |
| template<class U = Impl> |
| auto | get () RYML_NOEXCEPT -> NodeData * |
| | returns the data or null when the id is NONE More...
|
| |
| NodeType | type () const RYML_NOEXCEPT |
| | Forward to Tree::type(). More...
|
| |
| const char * | type_str () const RYML_NOEXCEPT |
| | Forward to Tree::type_str(). More...
|
| |
| csubstr | key () const RYML_NOEXCEPT |
| | Forward to Tree::key(). More...
|
| |
| csubstr | key_tag () const RYML_NOEXCEPT |
| | Forward to Tree::key_tag(). More...
|
| |
| csubstr | key_ref () const RYML_NOEXCEPT |
| | Forward to Tree::key_ref(). More...
|
| |
| csubstr | key_anchor () const RYML_NOEXCEPT |
| | Forward to Tree::key_anchor(). More...
|
| |
| csubstr | val () const RYML_NOEXCEPT |
| | Forward to Tree::val(). More...
|
| |
| csubstr | val_tag () const RYML_NOEXCEPT |
| | Forward to Tree::val_tag(). More...
|
| |
| csubstr | val_ref () const RYML_NOEXCEPT |
| | Forward to Tree::val_ref(). More...
|
| |
| csubstr | val_anchor () const RYML_NOEXCEPT |
| | Forward to Tree::val_anchor(). More...
|
| |
| NodeScalar const & | keysc () const RYML_NOEXCEPT |
| | Forward to Tree::keysc(). More...
|
| |
| NodeScalar const & | valsc () const RYML_NOEXCEPT |
| | Forward to Tree::valsc(). More...
|
| |
| bool | key_is_null () const RYML_NOEXCEPT |
| | Forward to Tree::key_is_null(). More...
|
| |
| bool | val_is_null () const RYML_NOEXCEPT |
| | Forward to Tree::val_is_null(). More...
|
| |
| bool | is_key_unfiltered () const noexcept |
| | Forward to Tree::is_key_unfiltered(). More...
|
| |
| bool | is_val_unfiltered () const noexcept |
| | Forward to Tree::is_val_unfiltered(). More...
|
| |
|
| bool | empty () const RYML_NOEXCEPT |
| | Forward to Tree::empty(). More...
|
| |
| bool | is_stream () const RYML_NOEXCEPT |
| | Forward to Tree::is_stream(). More...
|
| |
| bool | is_doc () const RYML_NOEXCEPT |
| | Forward to Tree::is_doc(). More...
|
| |
| bool | is_container () const RYML_NOEXCEPT |
| | Forward to Tree::is_container(). More...
|
| |
| bool | is_map () const RYML_NOEXCEPT |
| | Forward to Tree::is_map(). More...
|
| |
| bool | is_seq () const RYML_NOEXCEPT |
| | Forward to Tree::is_seq(). More...
|
| |
| bool | has_val () const RYML_NOEXCEPT |
| | Forward to Tree::has_val(). More...
|
| |
| bool | has_key () const RYML_NOEXCEPT |
| | Forward to Tree::has_key(). More...
|
| |
| bool | is_val () const RYML_NOEXCEPT |
| | Forward to Tree::is_val(). More...
|
| |
| bool | is_keyval () const RYML_NOEXCEPT |
| | Forward to Tree::is_keyval(). More...
|
| |
| bool | has_key_tag () const RYML_NOEXCEPT |
| | Forward to Tree::has_key_tag(). More...
|
| |
| bool | has_val_tag () const RYML_NOEXCEPT |
| | Forward to Tree::has_val_tag(). More...
|
| |
| bool | has_key_anchor () const RYML_NOEXCEPT |
| | Forward to Tree::has_key_anchor(). More...
|
| |
| bool | has_val_anchor () const RYML_NOEXCEPT |
| | Forward to Tree::has_val_anchor(). More...
|
| |
| bool | has_anchor () const RYML_NOEXCEPT |
| | Forward to Tree::has_anchor(). More...
|
| |
| bool | is_key_ref () const RYML_NOEXCEPT |
| | Forward to Tree::is_key_ref(). More...
|
| |
| bool | is_val_ref () const RYML_NOEXCEPT |
| | Forward to Tree::is_val_ref(). More...
|
| |
| bool | is_ref () const RYML_NOEXCEPT |
| | Forward to Tree::is_ref(). More...
|
| |
| bool | parent_is_seq () const RYML_NOEXCEPT |
| | Forward to Tree::parent_is_seq(). More...
|
| |
| bool | parent_is_map () const RYML_NOEXCEPT |
| | Forward to Tree::parent_is_map(). More...
|
| |
| bool | is_key_anchor () const noexcept |
| |
| bool | is_val_hanchor () const noexcept |
| |
| bool | is_anchor () const noexcept |
| |
| bool | is_anchor_or_ref () const noexcept |
| |
|
| bool | type_has_any (NodeType_e bits) const RYML_NOEXCEPT |
| | Forward to Tree::type_has_any(). More...
|
| |
| bool | type_has_all (NodeType_e bits) const RYML_NOEXCEPT |
| | Forward to Tree::type_has_all(). More...
|
| |
| bool | type_has_none (NodeType_e bits) const RYML_NOEXCEPT |
| | Forward to Tree::type_has_none(). More...
|
| |
| NodeType | key_style () const RYML_NOEXCEPT |
| | Forward to Tree::key_style(). More...
|
| |
| NodeType | val_style () const RYML_NOEXCEPT |
| | Forward to Tree::val_style(). More...
|
| |
| bool | is_container_styled () const RYML_NOEXCEPT |
| | Forward to Tree::is_container_styled(). More...
|
| |
| bool | is_block () const RYML_NOEXCEPT |
| | Forward to Tree::is_block(). More...
|
| |
| bool | is_flow_sl () const RYML_NOEXCEPT |
| | Forward to Tree::is_flow_sl(). More...
|
| |
| bool | is_flow_ml () const RYML_NOEXCEPT |
| | Forward to Tree::is_flow_ml(). More...
|
| |
| bool | is_flow () const RYML_NOEXCEPT |
| | Forward to Tree::is_flow(). More...
|
| |
| bool | is_key_styled () const RYML_NOEXCEPT |
| | Forward to Tree::is_key_styled(). More...
|
| |
| bool | is_val_styled () const RYML_NOEXCEPT |
| | Forward to Tree::is_val_styled(). More...
|
| |
| bool | is_key_literal () const RYML_NOEXCEPT |
| | Forward to Tree::is_key_literal(). More...
|
| |
| bool | is_val_literal () const RYML_NOEXCEPT |
| | Forward to Tree::is_val_literal(). More...
|
| |
| bool | is_key_folded () const RYML_NOEXCEPT |
| | Forward to Tree::is_key_folded(). More...
|
| |
| bool | is_val_folded () const RYML_NOEXCEPT |
| | Forward to Tree::is_val_folded(). More...
|
| |
| bool | is_key_squo () const RYML_NOEXCEPT |
| | Forward to Tree::is_key_squo(). More...
|
| |
| bool | is_val_squo () const RYML_NOEXCEPT |
| | Forward to Tree::is_val_squo(). More...
|
| |
| bool | is_key_dquo () const RYML_NOEXCEPT |
| | Forward to Tree::is_key_dquo(). More...
|
| |
| bool | is_val_dquo () const RYML_NOEXCEPT |
| | Forward to Tree::is_val_dquo(). More...
|
| |
| bool | is_key_plain () const RYML_NOEXCEPT |
| | Forward to Tree::is_key_plain(). More...
|
| |
| bool | is_val_plain () const RYML_NOEXCEPT |
| | Forward to Tree::is_val_plain(). More...
|
| |
| bool | is_key_quoted () const RYML_NOEXCEPT |
| | Forward to Tree::is_key_quoted(). More...
|
| |
| bool | is_val_quoted () const RYML_NOEXCEPT |
| | Forward to Tree::is_val_quoted(). More...
|
| |
| bool | is_quoted () const RYML_NOEXCEPT |
| | Forward to Tree::is_quoted(). More...
|
| |
|
| bool | is_root () const RYML_NOEXCEPT |
| | Forward to Tree::is_root(). More...
|
| |
| bool | has_parent () const RYML_NOEXCEPT |
| | Forward to Tree::has_parent() Node must be readable. More...
|
| |
| bool | is_ancestor (ConstImpl const &ancestor) const RYML_NOEXCEPT |
| | Forward to Tree::is_ancestor() Node must be readable. More...
|
| |
| bool | has_child (ConstImpl const &n) const RYML_NOEXCEPT |
| | Forward to Tree::has_child(). More...
|
| |
| bool | has_child (id_type node) const RYML_NOEXCEPT |
| | Forward to Tree::has_child(). More...
|
| |
| bool | has_child (csubstr name) const RYML_NOEXCEPT |
| | Forward to Tree::has_child(). More...
|
| |
| bool | has_children () const RYML_NOEXCEPT |
| | Forward to Tree::has_children(). More...
|
| |
| bool | has_sibling (ConstImpl const &n) const RYML_NOEXCEPT |
| | Forward to Tree::has_sibling(). More...
|
| |
| bool | has_sibling (id_type node) const RYML_NOEXCEPT |
| | Forward to Tree::has_sibling(). More...
|
| |
| bool | has_sibling (csubstr name) const RYML_NOEXCEPT |
| | Forward to Tree::has_sibling(). More...
|
| |
| bool | has_other_siblings () const RYML_NOEXCEPT |
| | Forward to Tree::has_other_siblings(). More...
|
| |
| bool | has_siblings () const RYML_NOEXCEPT |
| |
|
| template<class U = Impl> |
| auto | doc (id_type i) RYML_NOEXCEPT -> Impl |
| | Forward to Tree::doc(). More...
|
| |
| ConstImpl | doc (id_type i) const RYML_NOEXCEPT |
| | Forward to Tree::doc(). More...
|
| |
| template<class U = Impl> |
| auto | parent () RYML_NOEXCEPT -> Impl |
| | Forward to Tree::parent(). More...
|
| |
| ConstImpl | parent () const RYML_NOEXCEPT |
| | Forward to Tree::parent(). More...
|
| |
| template<class U = Impl> |
| auto | first_child () RYML_NOEXCEPT -> Impl |
| | Forward to Tree::first_child(). More...
|
| |
| ConstImpl | first_child () const RYML_NOEXCEPT |
| | Forward to Tree::first_child(). More...
|
| |
| template<class U = Impl> |
| auto | last_child () RYML_NOEXCEPT -> Impl |
| | Forward to Tree::last_child(). More...
|
| |
| ConstImpl | last_child () const RYML_NOEXCEPT |
| | Forward to Tree::last_child(). More...
|
| |
| template<class U = Impl> |
| auto | child (id_type pos) RYML_NOEXCEPT -> Impl |
| | Forward to Tree::child(). More...
|
| |
| ConstImpl | child (id_type pos) const RYML_NOEXCEPT |
| | Forward to Tree::child(). More...
|
| |
| template<class U = Impl> |
| auto | find_child (csubstr name) RYML_NOEXCEPT -> Impl |
| | Forward to Tree::find_child(). More...
|
| |
| ConstImpl | find_child (csubstr name) const RYML_NOEXCEPT |
| | Forward to Tree::find_child(). More...
|
| |
| template<class U = Impl> |
| auto | prev_sibling () RYML_NOEXCEPT -> Impl |
| | Forward to Tree::prev_sibling(). More...
|
| |
| ConstImpl | prev_sibling () const RYML_NOEXCEPT |
| | Forward to Tree::prev_sibling(). More...
|
| |
| template<class U = Impl> |
| auto | next_sibling () RYML_NOEXCEPT -> Impl |
| | Forward to Tree::next_sibling(). More...
|
| |
| ConstImpl | next_sibling () const RYML_NOEXCEPT |
| | Forward to Tree::next_sibling(). More...
|
| |
| template<class U = Impl> |
| auto | first_sibling () RYML_NOEXCEPT -> Impl |
| | Forward to Tree::first_sibling(). More...
|
| |
| ConstImpl | first_sibling () const RYML_NOEXCEPT |
| | Forward to Tree::first_sibling(). More...
|
| |
| template<class U = Impl> |
| auto | last_sibling () RYML_NOEXCEPT -> Impl |
| | Forward to Tree::last_sibling(). More...
|
| |
| ConstImpl | last_sibling () const RYML_NOEXCEPT |
| | Forward to Tree::last_sibling(). More...
|
| |
| template<class U = Impl> |
| auto | sibling (id_type pos) RYML_NOEXCEPT -> Impl |
| | Forward to Tree::sibling(). More...
|
| |
| ConstImpl | sibling (id_type pos) const RYML_NOEXCEPT |
| | Forward to Tree::sibling(). More...
|
| |
| template<class U = Impl> |
| auto | find_sibling (csubstr name) RYML_NOEXCEPT -> Impl |
| | Forward to Tree::find_sibling(). More...
|
| |
| ConstImpl | find_sibling (csubstr name) const RYML_NOEXCEPT |
| | Forward to Tree::find_sibling(). More...
|
| |
| template<class U = Impl> |
| auto | ancestor_doc () RYML_NOEXCEPT -> Impl |
| | Forward to Tree::ancestor_doc(). More...
|
| |
| ConstImpl | ancestor_doc () const RYML_NOEXCEPT |
| | Forward to Tree::ancestor_doc(). More...
|
| |
| id_type | num_children () const RYML_NOEXCEPT |
| | O(num_children). More...
|
| |
| id_type | num_siblings () const RYML_NOEXCEPT |
| | O(num_children). More...
|
| |
| id_type | num_other_siblings () const RYML_NOEXCEPT |
| | O(num_siblings). More...
|
| |
| id_type | child_pos (ConstImpl const &n) const RYML_NOEXCEPT |
| | O(num_children). More...
|
| |
| id_type | sibling_pos (ConstImpl const &n) const RYML_NOEXCEPT |
| | O(num_siblings). More...
|
| |
| id_type | depth_asc () const RYML_NOEXCEPT |
| |
| id_type | depth_desc () const RYML_NOEXCEPT |
| | O(log(num_nodes)). More...
|
| |
|
O(num_nodes).
Forward to Tree::depth_desc(). Node must be readable.
operator[]
|
| template<class U = Impl> |
| auto | operator[] (csubstr key) RYML_NOEXCEPT -> Impl |
| | Find child by key; complexity is O(num_children). More...
|
| |
| template<class U = Impl> |
| auto | operator[] (id_type pos) RYML_NOEXCEPT -> Impl |
| | Find child by position; complexity is O(pos). More...
|
| |
| ConstImpl | operator[] (csubstr key) const RYML_NOEXCEPT |
| | Find a child by key; complexity is O(num_children). More...
|
| |
| ConstImpl | operator[] (id_type pos) const RYML_NOEXCEPT |
| | Find a child by position; complexity is O(pos). More...
|
| |
|
These functions are the analogue to operator[], with the difference that they emit an error instead of an assertion.
That is, if any of the pre or post conditions is violated, an error is always emitted (resulting in a call to the error callback).
|
| template<class U = Impl> |
| auto | at (csubstr key) -> Impl |
| | Find child by key; complexity is O(num_children). More...
|
| |
| template<class U = Impl> |
| auto | at (id_type pos) -> Impl |
| | Find child by position; complexity is O(pos). More...
|
| |
| ConstImpl | at (csubstr key) const |
| | Get a child by name, with error checking; complexity is O(num_children). More...
|
| |
| ConstImpl | at (id_type pos) const |
| | Get a child by position, with error checking; complexity is O(pos). More...
|
| |
|
| Location | location (Parser const &parser) const |
| |
|
| template<class T > |
| ConstImpl const & | operator>> (T &v) const |
| | deserialize the node's val to the given variable, forwarding to the user-overrideable read() function. More...
|
| |
| template<class T > |
| ConstImpl const & | operator>> (Key< T > v) const |
| | deserialize the node's key to the given variable, forwarding to the user-overrideable read() function; use key() to disambiguate; for example: node >> ryml::key(var) More...
|
| |
| template<class T > |
| bool | get_if (csubstr name, T *var) const |
| | look for a child by name, if it exists assign to var. More...
|
| |
| template<class T > |
| bool | get_if (csubstr name, T *var, T const &fallback) const |
| | look for a child by name, if it exists assign to var, otherwise default to fallback. More...
|
| |
|
| ConstImpl const & | operator>> (Key< fmt::base64_wrapper > w) const |
| | deserialize the node's key as base64. More...
|
| |
| ConstImpl const & | operator>> (fmt::base64_wrapper w) const |
| | deserialize the node's val as base64. More...
|
| |
| size_t | deserialize_key (fmt::base64_wrapper v) const |
| | decode the base64-encoded key and assign the decoded blob to the given buffer/ More...
|
| |
| size_t | deserialize_val (fmt::base64_wrapper v) const |
| | decode the base64-encoded key and assign the decoded blob to the given buffer/ More...
|
| |
|
| using | iterator = detail::child_iterator< Impl > |
| |
| using | const_iterator = detail::child_iterator< ConstImpl > |
| |
| using | children_view = detail::children_view_< Impl > |
| |
| using | const_children_view = detail::children_view_< ConstImpl > |
| |
| template<class U = Impl> |
| auto | begin () RYML_NOEXCEPT -> iterator |
| | get a mutable iterator to the first child. More...
|
| |
| const_iterator | begin () const RYML_NOEXCEPT |
| | get an iterator to the first child More...
|
| |
| const_iterator | cbegin () const RYML_NOEXCEPT |
| | get an iterator to the first child More...
|
| |
| template<class U = Impl> |
| auto | end () RYML_NOEXCEPT -> iterator |
| | get an iterator to after the last child. More...
|
| |
| const_iterator | end () const RYML_NOEXCEPT |
| | get an iterator to after the last child More...
|
| |
| const_iterator | cend () const RYML_NOEXCEPT |
| | get an iterator to after the last child More...
|
| |
| template<class U = Impl> |
| auto | children () RYML_NOEXCEPT -> children_view |
| | get an iterable view over children. More...
|
| |
| const_children_view | children () const RYML_NOEXCEPT |
| | get an iterable view over children More...
|
| |
| const_children_view | cchildren () const RYML_NOEXCEPT |
| | get an iterable view over children More...
|
| |
| template<class U = Impl> |
| auto | siblings () RYML_NOEXCEPT -> children_view |
| | get an iterable view over all siblings (including the calling node) More...
|
| |
| const_children_view | siblings () const RYML_NOEXCEPT |
| | get an iterable view over all siblings (including the calling node) More...
|
| |
| const_children_view | csiblings () const RYML_NOEXCEPT |
| | get an iterable view over all siblings (including the calling node) More...
|
| |
| template<class Visitor > |
| bool | visit (Visitor fn, id_type indentation_level=0, bool skip_root=true) const RYML_NOEXCEPT |
| | visit every child node calling fn(node) More...
|
| |
| template<class Visitor , class U = Impl> |
| auto | visit (Visitor fn, id_type indentation_level=0, bool skip_root=true) RYML_NOEXCEPT -> bool |
| | visit every child node calling fn(node) More...
|
| |
| template<class Visitor > |
| bool | visit_stacked (Visitor fn, id_type indentation_level=0, bool skip_root=true) const RYML_NOEXCEPT |
| | visit every child node calling fn(node, level) More...
|
| |
| template<class Visitor , class U = Impl> |
| auto | visit_stacked (Visitor fn, id_type indentation_level=0, bool skip_root=true) RYML_NOEXCEPT -> bool |
| | visit every child node calling fn(node, level) More...
|
| |