#include <Object.h>
An simple smart-pointer template class with the condition that the data type must be a sub-class of Pooka SDK® Object class.
ObjT | A sub-class of Pooka SDK® Object. |
Public Member Functions | |
ObjPtr () | |
ObjPtr (ObjT *ptr) | |
ObjPtr (const ObjPtr< ObjT > &another) | |
~ObjPtr () | |
void | operator= (const ObjPtr< ObjT > &val) |
void | operator= (ObjT *val) |
ObjT * | operator-> () |
const ObjT * | operator-> () const |
operator ObjT * () | |
operator const ObjT * () const | |
|
inline |
Default constructor.
|
inline |
Constructor.
ptr | A pointer to instance of sub-class of Pooka SDK® Object. |
Copy constructor.
another | Another ObjPtr instance. |
|
inline |
Destructor.
|
inline |
Assignment operator.
val | A reference of an ObjPtr instance. |
|
inline |
Assignment operator.
val | A pointer to an ObjPtr instance. |
|
inline |
Member dereference operator.
|
inline |
Member dereference operator.
|
inline |
Casting operator.
|
inline |
Casting operator.