UCE Docs / DValue::set_reference

Signature

void DValue::set_reference(DValue* target)

Parameters

target : target node pointer
return value : none

Stores an internal reference to another DValue. Most unit code should not need to create references directly; normal reads and writes generally follow existing references automatically.

Example

DValue target;
target.set("original");
DValue ref;
ref.set_reference(&target);
print(ref.deref().to_string(), "\n");
Output
original