1 #ifndef _C4_YML_REFERENCE_RESOLVER_HPP_
2 #define _C4_YML_REFERENCE_RESOLVER_HPP_
5 #include "c4/yml/detail/stack.hpp"
67 void reset_(
Tree *t_);
69 void gather_anchors_and_refs_();
70 void gather_anchors_and_refs__(
id_type n);
73 id_type lookup_(RefData
const* C4_RESTRICT ra);
75 Tree *C4_RESTRICT m_tree;
77 detail::stack<RefData> m_refs;
RYML_ID_TYPE id_type
The type of a node id in the YAML tree; to override the default type, define the macro RYML_ID_TYPE t...
(Undefined by default) Use shorter error message from checks/asserts: do not show the check condition...
wraps a NodeType_e element with some syntactic sugar and predicates
Reusable object to resolve references/aliases in a Tree.
ReferenceResolver()=default
void resolve(Tree *tree, bool clear_anchors=true)
Resolve references: for each reference, look for a matching anchor, and copy its contents to the ref ...