Template Struct ReferenceNodeScope

Struct Documentation

template<NodeGenerator G = RandomIdGenerator>
struct ReferenceNodeScope

Public Functions

template<typename ...GenArgs>
inline ReferenceNodeScope(GenArgs&&... gen_args) noexcept(std::is_nothrow_constructible_v<G, decltype(std::forward<GenArgs>(gen_args))...>)
inline G const &generator() const noexcept
inline Node try_get_node(std::string_view label) const noexcept
inline std::optional<std::string_view> try_get_label(Node handle) const noexcept
inline Node generate_node(storage::DynNodeStoragePtr node_storage = storage::default_node_storage)
inline Node get_or_generate_node(std::string_view label, storage::DynNodeStoragePtr node_storage = storage::default_node_storage)
inline void clear() noexcept

Clear the mappings from this scope

Note

does not delete nodes from node storage