diff options
author | Mike Buland <eichlan@xagasoft.com> | 2008-12-13 09:26:03 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2008-12-13 09:26:03 +0000 |
commit | 5db154c3fb36a677c551e39c3c6661207eb51778 (patch) | |
tree | 3240993cb3bd2ef07dfc7f3b82956bf9b6173145 /src/cachecalc.h | |
parent | 7c8e31fc057859d08610f17f669fdfcaf2fc2956 (diff) | |
download | libbu++-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 'src/cachecalc.h')
-rw-r--r-- | src/cachecalc.h | 6 |
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 | ||
4 | namespace Bu | 4 | namespace 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 | }; |