From 0861fdb652408dcdbd2e7b60513f3fa24696e610 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 25 Jan 2010 16:42:40 +0000 Subject: The order of key, object in all of the cache related systems has beed fixed, key just belongs first, that's all there is to it. --- src/cache.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/cache.h') diff --git a/src/cache.h b/src/cache.h index 87037f7..c738d28 100644 --- a/src/cache.h +++ b/src/cache.h @@ -18,10 +18,10 @@ namespace Bu { -// template +// template // keytype __cacheGetKey( obtype *&pObj ); - template + template class Cache { public: @@ -32,9 +32,9 @@ namespace Bu */ class Ptr { - friend class Bu::Cache; + friend class Bu::Cache; private: - Ptr( Cache *pCache, obtype *pData, + Ptr( Cache *pCache, obtype *pData, const keytype &kId ) : pCache( pCache ), pData( pData ), @@ -44,7 +44,7 @@ namespace Bu pCache->incRef( kId ); } - Ptr( Cache *pCache, const keytype &kId ) : + Ptr( Cache *pCache, const keytype &kId ) : pCache( pCache ), pData( NULL ), kId( kId ) @@ -168,15 +168,15 @@ namespace Bu } private: - Bu::Cache *pCache; + Bu::Cache *pCache; mutable obtype *pData; mutable keytype kId; }; private: - typedef Bu::CacheStore Store; + typedef Bu::CacheStore Store; typedef Bu::List StoreList; - typedef Bu::CacheCalc Calc; + typedef Bu::CacheCalc Calc; typedef struct CacheEntry { -- cgit v1.2.3