Clone Method

WRAPPER_API virtual Serializable *Clone() const

 

Description

The Clone method produces a deep-copy of the current instance.  A deep-copy is one in which all member objects are cloned so that they are distinct from the members of the original object.  In contrast, a shallow-copy is one in which the references to member objects are copied so that the copy has the same members as the original.  

 

Example

void Serializable_Clone(GEOCALCPBW_NAMESPACE::Serializable * s)

{

GEOCALCPBW_NAMESPACE::Serializable * clone = s->Clone();

}