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

Memory Methods on Time_Curve

 

   (TIME_CURVE * ) GRAPE(Time_Curve, "new-instance")(name)
CLASS * Time_Curve
char * name
Create an instance of class Time_Curve with name name by calling "new-instance" on the superclass and allocating the Curve_Parm instance curve_parm.

   GRAPE(tcurve, "free")()
TIME_CURVE * tcurve
Delete a Time_Curve instance. All memory is freed by calling "list-free", deleting curve_parm and calling "free" on the superclass. For details on "delete"/"free" refer to 5.4.4.1.

   tex2html_wrap44748    tex2html_wrap44750
TIME_CURVE * tcurve
"list-alloc" allocates the superclass data by calling "list-alloc" on Time_Object and it creates the geometry for tcurve (num_of_frames and time_curve-> num_of_points have to be initialized before "list-alloc" is called). num_of_frames frames with Triang1d objects are allocated for geometry using TimeStep "alloc" (see 7.3.2) and "create-objects" (see 7.3.2), additionally curve_parm-> num_of_points points are allocated for each Triang1d instance. "list-free" frees all the memory by sending "list-free" to curve_parm and the superclass.



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.