aboutsummaryrefslogtreecommitdiff
path: root/src/cachable.h
blob: 529da6f9a0876ca8d145787a457fd30aa2dbeeac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef BU_CACHABLE_H
#define BU_CACHABLE_H

namespace Bu
{
	class Cachable
	{
	public:
		Cachable();
		virtual ~Cachable();

		virtual long getCacheId() const =0;
	};

	template<class obtype> long getCacheId( const obtype *o );
	template<> long getCacheId<Cachable>( const Cachable *o );
};

#endif