#include <smart_ptr.h>
Public Types | |
enum | { destructiveCopy = false } |
Public Member Functions | |
RefCounted () | |
RefCounted (const RefCounted &rhs) | |
template<typename P1 > | |
RefCounted (const RefCounted< P1 > &rhs) | |
P | Clone (const P &val) |
bool | Release (const P &) |
void | Swap (RefCounted &rhs) |
Private Attributes | |
unsigned int * | pCount_ |
Definition at line 132 of file smart_ptr.h.
anonymous enum |
RefCounted< P >::RefCounted | ( | ) | [inline] |
RefCounted< P >::RefCounted | ( | const RefCounted< P > & | rhs | ) | [inline] |
RefCounted< P >::RefCounted | ( | const RefCounted< P1 > & | rhs | ) | [inline] |
P RefCounted< P >::Clone | ( | const P & | val | ) | [inline] |
bool RefCounted< P >::Release | ( | const P & | ) | [inline] |
Definition at line 158 of file smart_ptr.h.
00159 { 00160 if (!--*pCount_) 00161 { 00162 delete pCount_; 00163 return true; 00164 } 00165 return false; 00166 }
void RefCounted< P >::Swap | ( | RefCounted< P > & | rhs | ) | [inline] |
unsigned int* RefCounted< P >::pCount_ [private] |
Definition at line 175 of file smart_ptr.h.