|
| NodeType | type () const RYML_NOEXCEPT |
| | Forward to Tree::type().
|
| csubstr | key () const RYML_NOEXCEPT |
| | Forward to Tree::key().
|
| csubstr | key_tag () const RYML_NOEXCEPT |
| | Forward to Tree::key_tag().
|
| csubstr | key_ref () const RYML_NOEXCEPT |
| | Forward to Tree::key_ref().
|
| csubstr | key_anchor () const RYML_NOEXCEPT |
| | Forward to Tree::key_anchor().
|
| csubstr | val () const RYML_NOEXCEPT |
| | Forward to Tree::val().
|
| csubstr | val_tag () const RYML_NOEXCEPT |
| | Forward to Tree::val_tag().
|
| csubstr | val_ref () const RYML_NOEXCEPT |
| | Forward to Tree::val_ref().
|
| csubstr | val_anchor () const RYML_NOEXCEPT |
| | Forward to Tree::val_anchor().
|
| NodeScalar const & | keysc () const RYML_NOEXCEPT |
| | Forward to Tree::keysc().
|
| NodeScalar const & | valsc () const RYML_NOEXCEPT |
| | Forward to Tree::valsc().
|
| bool | key_is_null () const RYML_NOEXCEPT |
| | Forward to Tree::key_is_null().
|
| bool | val_is_null () const RYML_NOEXCEPT |
| | Forward to Tree::val_is_null().
|
| bool | is_key_unfiltered () const noexcept |
| | Forward to Tree::is_key_unfiltered().
|
| bool | is_val_unfiltered () const noexcept |
| | Forward to Tree::is_val_unfiltered().
|
| bool | empty () const RYML_NOEXCEPT |
| | Forward to Tree::empty().
|
| bool | is_stream () const RYML_NOEXCEPT |
| | Forward to Tree::is_stream().
|
| bool | is_doc () const RYML_NOEXCEPT |
| | Forward to Tree::is_doc().
|
| bool | is_container () const RYML_NOEXCEPT |
| | Forward to Tree::is_container().
|
| bool | is_map () const RYML_NOEXCEPT |
| | Forward to Tree::is_map().
|
| bool | is_seq () const RYML_NOEXCEPT |
| | Forward to Tree::is_seq().
|
| bool | has_val () const RYML_NOEXCEPT |
| | Forward to Tree::has_val().
|
| bool | has_key () const RYML_NOEXCEPT |
| | Forward to Tree::has_key().
|
| bool | is_val () const RYML_NOEXCEPT |
| | Forward to Tree::is_val().
|
| bool | is_keyval () const RYML_NOEXCEPT |
| | Forward to Tree::is_keyval().
|
| bool | has_key_tag () const RYML_NOEXCEPT |
| | Forward to Tree::has_key_tag().
|
| bool | has_val_tag () const RYML_NOEXCEPT |
| | Forward to Tree::has_val_tag().
|
| bool | has_key_anchor () const RYML_NOEXCEPT |
| | Forward to Tree::has_key_anchor().
|
| bool | has_val_anchor () const RYML_NOEXCEPT |
| | Forward to Tree::has_val_anchor().
|
| bool | has_anchor () const RYML_NOEXCEPT |
| | Forward to Tree::has_anchor().
|
| bool | is_key_ref () const RYML_NOEXCEPT |
| | Forward to Tree::is_key_ref().
|
| bool | is_val_ref () const RYML_NOEXCEPT |
| | Forward to Tree::is_val_ref().
|
| bool | is_ref () const RYML_NOEXCEPT |
| | Forward to Tree::is_ref().
|
| bool | parent_is_seq () const RYML_NOEXCEPT |
| | Forward to Tree::parent_is_seq().
|
| bool | parent_is_map () const RYML_NOEXCEPT |
| | Forward to Tree::parent_is_map().
|
| bool | type_has_any (type_bits bits) const RYML_NOEXCEPT |
| | Forward to Tree::type_has_any().
|
| bool | type_has_all (type_bits bits) const RYML_NOEXCEPT |
| | Forward to Tree::type_has_all().
|
| bool | type_has_none (type_bits bits) const RYML_NOEXCEPT |
| | Forward to Tree::type_has_none().
|
| NodeType | key_style () const RYML_NOEXCEPT |
| | Forward to Tree::key_style().
|
| NodeType | val_style () const RYML_NOEXCEPT |
| | Forward to Tree::val_style().
|
| bool | is_container_styled () const RYML_NOEXCEPT |
| | Forward to Tree::is_container_styled().
|
| bool | is_block () const RYML_NOEXCEPT |
| | Forward to Tree::is_block().
|
| bool | is_flow () const RYML_NOEXCEPT |
| | Forward to Tree::is_flow().
|
| bool | is_flow_sl () const RYML_NOEXCEPT |
| | Forward to Tree::is_flow_sl().
|
| bool | is_flow_ml () const RYML_NOEXCEPT |
| | Forward to Tree::is_flow_ml1().
|
| bool | is_flow_ml1 () const RYML_NOEXCEPT |
| | Forward to Tree::is_flow_ml1().
|
| bool | is_flow_mln () const RYML_NOEXCEPT |
| | Forward to Tree::is_flow_mln().
|
| bool | is_flow_mlx () const RYML_NOEXCEPT |
| | Forward to Tree::is_flow_mlx().
|
| bool | has_flow_space () const RYML_NOEXCEPT |
| | Forward to Tree::has_flow_space().
|
| bool | is_key_styled () const RYML_NOEXCEPT |
| | Forward to Tree::is_key_styled().
|
| bool | is_val_styled () const RYML_NOEXCEPT |
| | Forward to Tree::is_val_styled().
|
| bool | is_key_literal () const RYML_NOEXCEPT |
| | Forward to Tree::is_key_literal().
|
| bool | is_val_literal () const RYML_NOEXCEPT |
| | Forward to Tree::is_val_literal().
|
| bool | is_key_folded () const RYML_NOEXCEPT |
| | Forward to Tree::is_key_folded().
|
| bool | is_val_folded () const RYML_NOEXCEPT |
| | Forward to Tree::is_val_folded().
|
| bool | is_key_squo () const RYML_NOEXCEPT |
| | Forward to Tree::is_key_squo().
|
| bool | is_val_squo () const RYML_NOEXCEPT |
| | Forward to Tree::is_val_squo().
|
| bool | is_key_dquo () const RYML_NOEXCEPT |
| | Forward to Tree::is_key_dquo().
|
| bool | is_val_dquo () const RYML_NOEXCEPT |
| | Forward to Tree::is_val_dquo().
|
| bool | is_key_plain () const RYML_NOEXCEPT |
| | Forward to Tree::is_key_plain().
|
| bool | is_val_plain () const RYML_NOEXCEPT |
| | Forward to Tree::is_val_plain().
|
| bool | is_key_quoted () const RYML_NOEXCEPT |
| | Forward to Tree::is_key_quoted().
|
| bool | is_val_quoted () const RYML_NOEXCEPT |
| | Forward to Tree::is_val_quoted().
|
| bool | is_quoted () const RYML_NOEXCEPT |
| | Forward to Tree::is_quoted().
|
| bool | is_root () const RYML_NOEXCEPT |
| | Forward to Tree::is_root().
|
| bool | has_parent () const RYML_NOEXCEPT |
| | Forward to Tree::has_parent() Node must be readable.
|
| bool | is_ancestor (ConstImpl const &ancestor) const RYML_NOEXCEPT |
| | Forward to Tree::is_ancestor() Node must be readable.
|
| bool | has_child (ConstImpl const &n) const RYML_NOEXCEPT |
| | Forward to Tree::has_child().
|
| bool | has_child (id_type node) const RYML_NOEXCEPT |
| | Forward to Tree::has_child().
|
| bool | has_child (csubstr name) const RYML_NOEXCEPT |
| | Forward to Tree::has_child().
|
| bool | has_children () const RYML_NOEXCEPT |
| | Forward to Tree::has_children().
|
| bool | has_sibling (ConstImpl const &n) const RYML_NOEXCEPT |
| | Forward to Tree::has_sibling().
|
| bool | has_sibling (id_type node) const RYML_NOEXCEPT |
| | Forward to Tree::has_sibling().
|
| bool | has_sibling (csubstr name) const RYML_NOEXCEPT |
| | Forward to Tree::has_sibling().
|
| bool | has_other_siblings () const RYML_NOEXCEPT |
| | Forward to Tree::has_other_siblings().
|
| id_type | num_children () const RYML_NOEXCEPT |
| | O(num_children).
|
| id_type | num_siblings () const RYML_NOEXCEPT |
| | O(num_children).
|
| id_type | num_other_siblings () const RYML_NOEXCEPT |
| | O(num_siblings).
|
| id_type | child_pos (ConstImpl const &n) const RYML_NOEXCEPT |
| | O(num_children).
|
| id_type | sibling_pos (ConstImpl const &n) const RYML_NOEXCEPT |
| | O(num_siblings).
|
| id_type | depth_asc () const RYML_NOEXCEPT |
| id_type | depth_desc () const RYML_NOEXCEPT |
| | O(log(num_nodes)).
|
O(num_nodes).
Forward to Tree::depth_desc(). Node must be readable.
|
| Location | location (Parser const &parser) const |
These methods raise an error if the deserialization failed or optionally if the node is not readable.
|
| template<class T> |
| void | load (T *v, bool check_readable=true) const |
| | (1) deserialize the node's contents (val or container) to the given variable, forwarding to the user-overrideable read() function, which can be for ConstNodeRef (see Read from ConstNodeRef) or for tree+id (see Read from Tree).
|
| template<class Wrapper> |
| void | load (Wrapper const &wrapper, bool check_readable=true) const |
| | (2) like (1), but for wrapper tag types such as c4::fmt::base64()
|
| template<class T> |
| void | load_key (T *k, bool check_readable=true) const |
| | (1) deserialize the node's key (necessarily a scalar) to the given variable, forwarding to the user-overrideable read_key() function, which can be for ConstNodeRef (see Read from ConstNodeRef) or for tree+id (see Read from Tree).
|
| template<class Wrapper> |
| void | load_key (Wrapper const &wrapper, bool check_readable=true) const |
| | (2) like (1), but for wrapper tag types such as c4::fmt::base64()
|
| template<class T> |
| ReadResult | deserialize (T *v) const |
| | (1) deserialize the node's contents (val or container) to the given variable, forwarding to the user-overrideable read() function (see Read from ConstNodeRef).
|
| template<class Wrapper> |
| ReadResult | deserialize (Wrapper const &wrapper) const |
| | (2) like (1), but for wrapper tag types such as c4::fmt::base64()
|
| template<class T> |
| ReadResult | deserialize_key (T *v) const |
| | (1) deserialize the node's key (necessarily a scalar) to the given variable, forwarding to the user-overrideable read_key() function (see Read from ConstNodeRef).
|
| template<class Wrapper> |
| ReadResult | deserialize_key (Wrapper const &wrapper) const |
| | (2) like (1), but for wrapper tag types such as c4::fmt::base64()
|
| template<class T> |
| ReadResult | deserialize_child (csubstr child_key, T *v) const |
| | (1) find a child by name and deserialize its contents to the given variable (ie call .deserialize() on the child if it exists).
|
| template<class T> |
| ReadResult | deserialize_child (csubstr child_key, T *v, T const &fallback) const |
| | (2) like (1), but assign from fallback if no such child exists.
|
| template<class Wrapper> |
| ReadResult | deserialize_child (csubstr child_key, Wrapper const &v) const |
| | (3) like (1), but for wrapper tag types such as c4::fmt::base64()
|
| template<class T> |
| ReadResult | deserialize_child (id_type child_pos, T *v) const |
| | (1) find a child by position and deserialize its contents to the given variable (ie call .deserialize() on the child if it exists).
|
| template<class T> |
| ReadResult | deserialize_child (id_type child_pos, T *v, T const &fallback) const |
| | (2) like (1), but assign from fallback if no such child exists
|
| template<class Wrapper> |
| ReadResult | deserialize_child (id_type child_pos, Wrapper const &wrapper) const |
| | (3) like (1), but for wrapper tag types such as c4::fmt::base64()
|
| template<class T> |
| Impl const & | operator>> (T &v) const |
| template<class T> |
| Impl const & | operator>> (T const &wrapper) const |
| template<class T> |
| Impl const & | operator>> (Key< T > const &v) const |
template<class Impl, class ConstImpl>
struct c4::yml::detail::RoNodeMethods< Impl, ConstImpl >
a CRTP base providing read-only methods for ConstNodeRef and NodeRef
Definition at line 152 of file node.hpp.