next up previous contents index
Next: Display Methods on Surface Up: Surface Previous: Reflection_Control

Memory Methods on Surface

 

   (SURFACE * ) GRAPE(Surface, "new-instance")(name)
CLASS * Surface
char * name
Create an instance of class Surface with name name. Additional to the superclass method the asso variable is initialized by calling "get-asso", to allocate memory for the geometries use "list-alloc".

   GRAPE(surface, "free")()
SURFACE * surface
Free the memory of a Surface instance by sending "list-free" to it and "free" to the superclass. See 5.4.4.1 for details on "delete"/"free".

   tex2html_wrap44772    tex2html_wrap44774
SURFACE * surface
int points, bnds
"list-alloc" initializes all Surface instance variables by calling the superclass "list-alloc" method -- therefore num_of_frames has to be set before "list-alloc" is called -- and creating reflect and the Chains for the geometries and conj_inter.

For the objects of the geometries geometry, domain, gauss and conjugate sequences of num_of_frames frames with Geom2d instances as objects are created using TimeStep "alloc" and "create-objects". For each Geom2d instance memory for points points, 2* points elements and bnds boundary curves is allocated.

"list-free" frees all memory of the surface instance by deleting all geometry instance variables and calling "list-free" on the superclass Time_Object.

   tex2html_wrap44776    tex2html_wrap44778
SURFACE * surface, * copy
Create a copy of surface and return it. From the geometrical point of view there is only one real difference between these two methods: "softcopy" uses a given copy to store the copy, if copy is NULL it allocates a new instance (as "hardcopy" does). From the physical point of view the copies created by "hardcopy" and "softcopy" differ since they use "hardcopy" resp.\ "softcopy" to copy the superclass data and the geometries.



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.