Previous Next

Cloning

Sometimes it is useful to (deep) copy an object, for example to be able to compare different emission models. Since an object is not copied upon reassignment and internally there is a heavy reliance on pointers, the `Clone'-function is provided for each of the object classes.

pahdb = AmesPAHdbIDLSuite()

transitions = pahdb->getTransitionsByUID([18])

; WRONG!!!
copy = transitions

; CORRECT
clone = transitions->Clone()

OBJ_DESTROY,[clone, transitions, pahdb]