Node::SetObject
Defined in:
Sets a node's object.
C4Node.h
Prototype
void SetObject(Object *object);
Parameters
object |
A pointer to the object to which the node should refer. This can be nullptr .
|
Description
The SetObject
function sets the primary object referenced by a node. If the node previously referenced a different object, then that reference is released, causing the destruction of the old object if its reference count reaches zero. The reference count of the new object (if object
is not nullptr
) is incremented by one.
See Also