aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/interface.ccl
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@aei.mpg.de>2005-03-05 17:46:00 +0000
committerErik Schnetter <schnetter@aei.mpg.de>2005-03-05 17:46:00 +0000
commit251b33dc90966225a9e5e799615a5152d9d14456 (patch)
tree18de4a4fcda7ee816ad2cf169a9adb37b7ee2714 /Carpet/CarpetLib/interface.ccl
parent5cbb9a9180e724206411d38827c6ea02f9bc9fa8 (diff)
CarpetLib: Introduce new class mem<T> for memory management
Introduce a new class mem<T> for memory management. Memory management has become sufficiently complicated to move into its own class. The class mem<T> features: 1. Allocating nelem items of type T 2. Managing contiguous regions of memory for several data<T> objects for vector groups 3. Allowing a pointer to a memory region to be passed in, which is used instead of allocating memory through new 4. Reference counting, so that the mem<T> object only goes away once the last using data<T> object does not need it any more. This makes it unnecessary to delete the first data<T> objects for a grid function group last. darcs-hash:20050305174647-891bb-e1f53adca34e5a668af96c662845cca0f259f8e6.gz
Diffstat (limited to 'Carpet/CarpetLib/interface.ccl')
-rw-r--r--Carpet/CarpetLib/interface.ccl4
1 files changed, 4 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/interface.ccl b/Carpet/CarpetLib/interface.ccl
index dcd518f16..26178a95f 100644
--- a/Carpet/CarpetLib/interface.ccl
+++ b/Carpet/CarpetLib/interface.ccl
@@ -9,6 +9,10 @@ includes header: bbox.hh in bbox.hh
includes header: bboxset.hh in bboxset.hh
includes header: vect.hh in vect.hh
+includes header: commstate.hh in commstate.hh
+includes header: mem.hh in mem.hh
+includes header: timestat.hh in timestat.hh
+
includes header: data.hh in data.hh
includes header: gdata.hh in gdata.hh