summaryrefslogtreecommitdiff
path: root/src/cachecalc.h
blob: 289c4ac7634d81765f891e664e22eec71b8cfd9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef BU_CACHE_CALC_H
#define BU_CACHE_CALC_H

namespace Bu
{
	template<class obtype, class keytype>
	class CacheCalc
	{
	public:
		CacheCalc()
		{
		}

		virtual ~CacheCalc()
		{
		}

		virtual void onLoad( obtype *pSrc, const keytype &key )=0;
		virtual void onUnload( obtype *pSrc, const keytype &key )=0;
		virtual void onTick() { };

	private:
	};
};

#endif