From 5db154c3fb36a677c551e39c3c6661207eb51778 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sat, 13 Dec 2008 09:26:03 +0000 Subject: The Calc should be functional, and is being called by the Cache itself. The Bu::CacheCalc still needs to reference the Bu::Cache so that it can make the changes it needs to. --- src/cachecalc.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/cachecalc.h') diff --git a/src/cachecalc.h b/src/cachecalc.h index 9e83b06..289c4ac 100644 --- a/src/cachecalc.h +++ b/src/cachecalc.h @@ -3,7 +3,7 @@ namespace Bu { - template + template class CacheCalc { public: @@ -15,6 +15,10 @@ namespace Bu { } + virtual void onLoad( obtype *pSrc, const keytype &key )=0; + virtual void onUnload( obtype *pSrc, const keytype &key )=0; + virtual void onTick() { }; + private: }; }; -- cgit v1.2.3