From 19cad7be85d35ffff5b78aa43e45fe473ade60f3 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 5 Mar 2014 02:01:04 +0000 Subject: Added a method to null/clear a cache pointer, and one to see if it's set at all. --- src/unstable/cachebase.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/unstable/cachebase.h b/src/unstable/cachebase.h index 436a8ae..1584246 100644 --- a/src/unstable/cachebase.h +++ b/src/unstable/cachebase.h @@ -263,6 +263,21 @@ namespace Bu CachePtrInterface::releaseRef( pCache, pEnt, pData ); } + bool isSet() const + { + if( pCache ) + return true; + return false; + } + + void clear() + { + unbind(); + pCache = NULL; + pEnt = NULL; + pData = NULL; + } + void lock() { bind(); -- cgit v1.2.3