next up previous contents index
Next: List_Of_Inst Up: Linked Lists Previous: Basic List Methods and

Methods for Instance Lists

The following methods assume that the objects in the list are instances.

           

GRAPE(glist, "hardcopy")()
GRAPE(glist, "softcopy")(copy)
GRAPE(glist, "copy")()
G_LIST *glist, *copy
All three methods create a copy of the list and its nodes and return it. The difference is how the instance objects are copied: "hardcopy" and "softcopy" use the corresponding methods to copy them, "copy" only assigns the object of the original list to the copy (the reference counter is incremented). As always "softcopy" uses the memory of a given copy list to store the copy.



SFB 256 Universität Bonn and IAM Universität Freiburg

Copyright © by the Sonderforschungsbereich 256 at the Institut für Angewandte Mathematik, Universität Bonn.