From 2b303560fa7d50923c326f09fb625806c14a4653 Mon Sep 17 00:00:00 2001 From: maartenkeijzer Date: Wed, 5 Sep 2007 13:52:17 +0000 Subject: [PATCH] added eoFuncPtrStat, and appended various addTo member functions for more elegant definition of monitors, stats, checkpoints, etc --- eo/src/utils/eoUpdater.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/eo/src/utils/eoUpdater.h b/eo/src/utils/eoUpdater.h index f8597c14..23374475 100644 --- a/eo/src/utils/eoUpdater.h +++ b/eo/src/utils/eoUpdater.h @@ -32,6 +32,8 @@ #include #include +template class eoCheckPoint; + /** eoUpdater is a generic procudere for updating whatever you want. Yet again an empty name @@ -41,6 +43,9 @@ class eoUpdater : public eoF public: virtual void lastCall() {} virtual std::string className(void) const { return "eoUpdater"; } + + template + eoUpdater& addTo(eoCheckPoint& cp) { cp.add(*this); return *this; } }; /**