Skip to main content

DefinitionRef

This class provides a reference to a definition, utilizing a weak reference to its underlying value to prevent reference cycles in recursive structures. It manages a shared name and a thread-safe, single-assignment lock to ensure the definition is initialized and accessed efficiently.

Attributes

AttributeTypeDescription
referenceArc< String >A shared pointer to the unique identifier string for the definition.
valueWeak< OnceLock< T > >A weak reference to the definition used to avoid reference cycles when recursive definitions are used.
nameArc< LazyName >A shared pointer to the lazily evaluated name associated with this definition reference.

Constructor

Signature

def DefinitionRef()