= Operator

WRAPPER_API [Type] &operator=(const [Type] &value)

 

Above, [Type] is a placeholder for the class name of the object to be copied.

 

Description

Many classes in GeoCalc overload the = (assignment) operator.  The use of this operator will always produce the opposite result that the use of the DeepCopy method will produce.  

The following example shows how to use the = operator with the LinearValue object, but the usage is the same for all objects.

 

Example

void AssignmentOperator(GEOCALCPBW_NAMESPACE::LinearValue * lv1, GEOCALCPBW_NAMESPACE::LinearValue * lv2)

{

*lv1 = *lv2;

}