[Avida-cvs] [avida-svn] r712 - development/source/tools

kaben@myxo.css.msu.edu kaben at myxo.css.msu.edu
Sat May 27 03:23:02 PDT 2006


Author: kaben
Date: 2006-05-27 06:23:01 -0400 (Sat, 27 May 2006)
New Revision: 712

Modified:
   development/source/tools/cChangeList.h
   development/source/tools/cFixedCoords.h
   development/source/tools/cInitFile.h
   development/source/tools/tDataEntry.h
   development/source/tools/tDataEntryBase.h
Log:

Added memory tracking via tMemTrack.



Modified: development/source/tools/cChangeList.h
===================================================================
--- development/source/tools/cChangeList.h	2006-05-27 07:45:19 UTC (rev 711)
+++ development/source/tools/cChangeList.h	2006-05-27 10:23:01 UTC (rev 712)
@@ -14,7 +14,13 @@
 #ifndef tArray_h
 #include "tArray.h"
 #endif
+#if USE_tMemTrack
+# ifndef tMemTrack_h
+#  include "tMemTrack.h"
+# endif
+#endif
 
+
 /**
  * This class provides an array of indices of changes to some list of
  * objects. Entries in the array of indices have the same order as
@@ -23,6 +29,9 @@
 
 class cChangeList
 {
+#if USE_tMemTrack
+  tMemTrack<cChangeList> mt;
+#endif
 protected:
   /*
   Note that size of m_change_list is size of m_change_tracking, and that

Modified: development/source/tools/cFixedCoords.h
===================================================================
--- development/source/tools/cFixedCoords.h	2006-05-27 07:45:19 UTC (rev 711)
+++ development/source/tools/cFixedCoords.h	2006-05-27 10:23:01 UTC (rev 712)
@@ -14,6 +14,11 @@
 #ifndef cUInt_h
 #include "cUInt.h"
 #endif
+#if USE_tMemTrack
+# ifndef tMemTrack_h
+#  include "tMemTrack.h"
+# endif
+#endif
 
 /**
  * Class used by @ref cBlockStruct.
@@ -23,6 +28,9 @@
  **/
 
 class cFixedCoords {
+#if USE_tMemTrack
+  tMemTrack<cFixedCoords> mt;
+#endif
 private:
   int block_num;
   int offset;

Modified: development/source/tools/cInitFile.h
===================================================================
--- development/source/tools/cInitFile.h	2006-05-27 07:45:19 UTC (rev 711)
+++ development/source/tools/cInitFile.h	2006-05-27 10:23:01 UTC (rev 712)
@@ -11,12 +11,6 @@
 #ifndef cInitFile_h
 #define cInitFile_h
 
-#if USE_tMemTrack
-# ifndef tMemTrack_h
-#  include "tMemTrack.h"
-# endif
-#endif
-
 #ifndef cFile_h
 #include "cFile.h"
 #endif
@@ -29,7 +23,13 @@
 #ifndef tArray_h
 #include "tArray.h"
 #endif
+#if USE_tMemTrack
+# ifndef tMemTrack_h
+#  include "tMemTrack.h"
+# endif
+#endif
 
+
 #include <iostream>
 
 /**

Modified: development/source/tools/tDataEntry.h
===================================================================
--- development/source/tools/tDataEntry.h	2006-05-27 07:45:19 UTC (rev 711)
+++ development/source/tools/tDataEntry.h	2006-05-27 10:23:01 UTC (rev 712)
@@ -22,8 +22,16 @@
 #ifndef tDataEntryBase_h
 #include "tDataEntryBase.h"
 #endif
+#if USE_tMemTrack
+# ifndef tMemTrack_h
+#  include "tMemTrack.h"
+# endif
+#endif
 
 template <class T, class OUT> class tDataEntry : public tDataEntryBase<T> {
+#if USE_tMemTrack
+  tMemTrack<tDataEntry<T, OUT> > mt;
+#endif
 protected:
   OUT  (T::*DataRetrieval)() const;
   void (T::*DataSet)(OUT);

Modified: development/source/tools/tDataEntryBase.h
===================================================================
--- development/source/tools/tDataEntryBase.h	2006-05-27 07:45:19 UTC (rev 711)
+++ development/source/tools/tDataEntryBase.h	2006-05-27 10:23:01 UTC (rev 712)
@@ -17,10 +17,18 @@
 #ifndef cDataEntry_h
 #include "cDataEntry.h"
 #endif
+#if USE_tMemTrack
+# ifndef tMemTrack_h
+#  include "tMemTrack.h"
+# endif
+#endif
 
 class cString;
 
 template <class T> class tDataEntryBase : public cDataEntry {
+#if USE_tMemTrack
+  tMemTrack<tDataEntryBase<T> > mt;
+#endif
 protected:
   T * target;
 public:




More information about the Avida-cvs mailing list