summaryrefslogtreecommitdiff
path: root/src/cachecalc.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2008-12-13 09:26:03 +0000
committerMike Buland <eichlan@xagasoft.com>2008-12-13 09:26:03 +0000
commit5db154c3fb36a677c551e39c3c6661207eb51778 (patch)
tree3240993cb3bd2ef07dfc7f3b82956bf9b6173145 /src/cachecalc.h
parent7c8e31fc057859d08610f17f669fdfcaf2fc2956 (diff)
downloadlibbu++-5db154c3fb36a677c551e39c3c6661207eb51778.tar.gz
libbu++-5db154c3fb36a677c551e39c3c6661207eb51778.tar.bz2
libbu++-5db154c3fb36a677c551e39c3c6661207eb51778.tar.xz
libbu++-5db154c3fb36a677c551e39c3c6661207eb51778.zip
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.
Diffstat (limited to '')
-rw-r--r--src/cachecalc.h6
1 files changed, 5 insertions, 1 deletions
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 @@
3 3
4namespace Bu 4namespace Bu
5{ 5{
6 template<class type> 6 template<class obtype, class keytype>
7 class CacheCalc 7 class CacheCalc
8 { 8 {
9 public: 9 public:
@@ -15,6 +15,10 @@ namespace Bu
15 { 15 {
16 } 16 }
17 17
18 virtual void onLoad( obtype *pSrc, const keytype &key )=0;
19 virtual void onUnload( obtype *pSrc, const keytype &key )=0;
20 virtual void onTick() { };
21
18 private: 22 private:
19 }; 23 };
20}; 24};