summaryrefslogtreecommitdiff
path: root/src/tests/cache.cpp
blob: e51c31bf0c3a04723493684935c01787fa7adceb (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
27
28
29
30
31
#include <stdio.h>

#include "bu/cache.h"
#include "bu/cachable.h"

class Bob : public Bu::Cachable
{
public:
	Bob()
	{
	}

	virtual ~Bob()
	{
	}

	long getCacheId() const
	{
		return 0;
	}

	int iInt;
};

int main()
{
	Bu::Cache<Bob> bobCache;

//	Bu::CPtr<Bob> pB = bobCache.insert( new Bob() );
}