diff options
Diffstat (limited to 'src/cptr.h')
-rw-r--r-- | src/cptr.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -23,6 +23,16 @@ namespace Bu | |||
23 | rCache.decRef( pData ); | 23 | rCache.decRef( pData ); |
24 | } | 24 | } |
25 | 25 | ||
26 | obtype &operator*() | ||
27 | { | ||
28 | return *pData; | ||
29 | } | ||
30 | |||
31 | obtype *operator->() | ||
32 | { | ||
33 | return pData; | ||
34 | } | ||
35 | |||
26 | private: | 36 | private: |
27 | Bu::Cache<obtype> &rCache; | 37 | Bu::Cache<obtype> &rCache; |
28 | obtype *pData; | 38 | obtype *pData; |