Public Member Functions | |
CHeldPtr (T *p_) | |
CHeldPtr & | operator= (T *p_) |
void | Free () |
void | Attach (T *p_) |
void | Detach () |
operator T * () const | |
T * | get () const |
T * | operator-> () const |
Public Attributes | |
T * | m_p |
A less smart pointer that does not count reference count
|
inline |
Attach an object
p_ | Pointer of the object to be attached. |
|
inline |
Detach an object. In other words, the object being held is set to null.
|
inline |
Remove an object.