next up previous contents
Next: Display Methods on Mesh2d Up: Mesh2d Previous: Mesh2d

Memory Methods on Mesh2d

   

(MESH2D *)GRAPE(Mesh2d, "new-instance")(name)

CLASS *Mesh2d
char *name

This method creates a new instance of class Mesh2d with name name and allocates the necessary memory.

   

(MESH2D *)GRAPE(mesh, "free")()

MESH2D *mesh

Just calls identical method on superclass GenMesh.

   

(MESH2D *)GRAPE(mesh, "softcopy")(copy)

MESH2D *mesh,*copy

Copies the instance mesh into copy by calling the method on the superclass and additionally fills structure-pointers in copy, copy is returned.

   

(MESH2D *)GRAPE(mesh, "add-function")(f_data)

MESH2D *mesh
F_DATA2D *f_data

Adds the function given by f_data by copying and inserting it as first entry in the linked list given by meshtex2html_wrap_inline3530f_data. Finally the function-selector is updated.

   

(MESH2D *)GRAPE(mesh, "remove-function")(name)

MESH2D *mesh
char *name

This method frees the first entry of the linked list meshtex2html_wrap_inline3530f_data which corresponds to the given string name. The function-selector is updated afterwards.


next up previous contents
Next: Display Methods on Mesh2d Up: Mesh2d Previous: Mesh2d

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.