Property::SharedProperty
Defined in:
Returns a boolean value indicating whether a property is supposed to be shared.
C4Properties.h
Prototype
virtual bool SharedProperty(void) const;
Description
The SharedProperty
function should be overridden by any Property
subclass that implements a shared property. Whereas ordinary properties are attached directly to a node, shared properties are stored in a PropertyObject
that is shared by multiple nodes. When a node is copied, properties attached directly to the node are copied to the new node, but the property object is simply shared by the new node without any copying.The
SharedProperty
function should return true
if the property should be stored in a property object, and it should return false
if the property should be attached directly to a node. The default implementation returns false
.
See Also