#include <SmartPointer.h>
Public Member Functions | |
T * | Get () const |
kt_bool | IsValid () const |
operator T* () const | |
T & | operator* () const |
T * | operator-> () const |
SmartPointer & | operator= (const SmartPointer &rOther) |
template<class Other > | |
SmartPointer & | operator= (const SmartPointer< Other > &rOther) |
SmartPointer & | operator= (T *pPointer) |
void | Release () |
SmartPointer () | |
SmartPointer (const SmartPointer &rOther) | |
template<class Other > | |
SmartPointer (const SmartPointer< Other > &rOther) | |
SmartPointer (T *pPointer) | |
virtual | ~SmartPointer () |
Private Attributes | |
T * | m_pPointer |
Friends | |
template<class Other > | |
class | SmartPointer |
Manages reference-counted shared objects
Definition at line 39 of file SmartPointer.h.
|
inline |
Default constructor
Definition at line 45 of file SmartPointer.h.
|
inline |
Copy constructor
Definition at line 53 of file SmartPointer.h.
|
inline |
Copy constructor
Definition at line 65 of file SmartPointer.h.
|
inline |
Assignment operator
Definition at line 77 of file SmartPointer.h.
|
inlinevirtual |
Destructor
Definition at line 89 of file SmartPointer.h.
|
inline |
|
inline |
Whether the contained pointer is valid
Definition at line 121 of file SmartPointer.h.
|
inline |
|
inline |
Gets a reference to the contained pointer
Definition at line 140 of file SmartPointer.h.
|
inline |
|
inline |
Assignment operator
Definition at line 157 of file SmartPointer.h.
|
inline |
Assignment operator
Definition at line 209 of file SmartPointer.h.
|
inline |
Assignment operator
Definition at line 183 of file SmartPointer.h.
|
inline |
Sets pointer to NULL
Definition at line 98 of file SmartPointer.h.
Definition at line 235 of file SmartPointer.h.
|
private |
Definition at line 233 of file SmartPointer.h.