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;
88 #endif // C4_YML_REFERENCE_RESOLVER_HPP_
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...
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 ...
Reusable object to resolve references/aliases in a Tree.
Wraps a type_bits mask of NodeTypeBits flags with some syntactic sugar and predicates.
ReferenceResolver()=default