Zen API
|
Constructs a new object by copying an existing object, including any aggregated child elements.
If the source object is an object collection (e.g. kArrayList<kString>), any aggregated child objects are also cloned. In this case, the kObject_Dispose method can be used to free the cloned collection and its associated elements.
This method will fail if the source object (or an aggregated child element) does not support cloning.
To support cloning, derived classes should override the kObject_VClone method.
object | Receives the constructed object. |
source | Source object. |
objectAllocator | Object memory allocator (or kNULL for default). |