Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kObject_VClone ( kObject  object,
kObject  source,
kAlloc  valueAllocator,
kObject  context 
)
protected

Protected virtual method that clones (makes a deep copy of) the specified source object.

This method can be overridden in derived classes to support kObject_Clone.

There is no requirement to call kObject_VClone from derived VClone methods.

Types that override this virtual method should also provide a framework constructor via the kAddFrameworkConstructor or kAddPrivateFrameworkConstructor macros.

Parameters
objectObject instance (initialized via framework constructor).
sourceObject to be cloned (required).
valueAllocatorValue memory allocator; can optionally be used by types that support a separate allocator for value content (e.g., kArray1).
contextContext for copy operation (allocator specific; not usually provided).
Returns
Operation status.
See also
kObject_Clone