diff options
author | Mike Buland <eichlan@xagasoft.com> | 2008-10-08 19:46:43 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2008-10-08 19:46:43 +0000 |
commit | 10a078da8f7129c73bc5a40040e6f762f1f5936f (patch) | |
tree | d83fe4aa3df18355896e0e37c19831d220561eaa /src/cptr.h | |
parent | 3f1c8998166466245aee2860197fb4908e55f1a2 (diff) | |
download | libbu++-10a078da8f7129c73bc5a40040e6f762f1f5936f.tar.gz libbu++-10a078da8f7129c73bc5a40040e6f762f1f5936f.tar.bz2 libbu++-10a078da8f7129c73bc5a40040e6f762f1f5936f.tar.xz libbu++-10a078da8f7129c73bc5a40040e6f762f1f5936f.zip |
Hey, more cachey goo!
Diffstat (limited to '')
-rw-r--r-- | src/cptr.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/cptr.h b/src/cptr.h new file mode 100644 index 0000000..1f8c43d --- /dev/null +++ b/src/cptr.h | |||
@@ -0,0 +1,24 @@ | |||
1 | #ifndef BU_C_PTR_H | ||
2 | #define BU_C_PTR_H | ||
3 | |||
4 | #include "bu/cache.h" | ||
5 | |||
6 | namespace Bu | ||
7 | { | ||
8 | template<class obtype> | ||
9 | class CPtr | ||
10 | { | ||
11 | friend class Bu::Cache<obtype>; | ||
12 | private: | ||
13 | CPtr( Cache<obtype> &rCache, obtype &rData ) | ||
14 | { | ||
15 | } | ||
16 | |||
17 | public: | ||
18 | virtual ~CPtr() | ||
19 | { | ||
20 | } | ||
21 | }; | ||
22 | }; | ||
23 | |||
24 | #endif | ||