next up previous contents index
Next: Other Methods on Chain Up: Chain Previous: Chain

Memory Methods on Chain

 

   

GRAPE(chain, "hardcopy")()
CHAIN *chain

Make an identical copy of chain: a new chain (with a hardcopied object) is created by sending "hardcopy" to the superclass Scene and copying the flag. The new Chain instance is returned.

   

GRAPE(chain, "softcopy")(new_chain)
CHAIN *chain, *new_chain

Make a softcopy of chain: like "hardcopy" but the object is softcopied (only the used data is copied). If new_chain is not NULL then this instance is used to store the copy otherwise a new Chain instance is created.

   

GRAPE(chain, "merge-send")()
CHAIN *chain

Merge chain with all its next-scene links, i.e. merge chain->object with chain->next-scene->object into chain->object , then change the pointer next-scene of chain to chain->next-scene->next-scene and send "delete" to the old chain->next-scene and so on.

   

GRAPE(chain, "merge")(chain2)
CHAIN *chain
CHAIN *chain2

Merge chain and chain2, i.e. merge chain->object with chain2->object to chain->object and continue with chain->next-scene and chain2->next-scene and so on.



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.