From 4808617ef54d40efcf1a3ed30525898defb74e10 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 9 Oct 2008 20:20:34 +0000 Subject: More cache development. I'm going to have to switch from template functions to functors. I like template functions a little more, but functors can be at least as fast. It won't be much of a change. --- src/tests/cache.cpp | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/tests/cache.cpp (limited to 'src/tests/cache.cpp') diff --git a/src/tests/cache.cpp b/src/tests/cache.cpp new file mode 100644 index 0000000..e51c31b --- /dev/null +++ b/src/tests/cache.cpp @@ -0,0 +1,31 @@ +#include + +#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 bobCache; + +// Bu::CPtr pB = bobCache.insert( new Bob() ); +} + -- cgit v1.2.3