next up previous contents index
Next: "new-instance""delete" and "free" Up: Writing Methods Previous: Exception Handling

Memory Management

Creating, copying and deleting instances of a class are the basic memory management operations, they should be implemented for every class. Of course they are defined for the base class Root of the GRAPE class hierarchy. First we take a look at allocating and freeing memory, then copying instances will be discussed.





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.