A safe pointer class that throws an RC::ErrorMsgNull if a null dereference is attempted. More...
#include <Ptr.h>
Public Member Functions | |
Ptr (T *t_ptr=NULL) | |
Default constructor assigning the value of the pointer. More... | |
template<class Tderived > | |
Ptr (const APtr< Tderived > &other) | |
A constructor which obtains a non-reference-counted copy of an APtr. More... | |
template<class Tderived > | |
Ptr (const RevPtr< Tderived > &other) | |
A constructor which obtains a non-revokable copy of a RevPtr. More... | |
template<class Tderived > | |
Ptr (const Ptr< Tderived > &other) | |
Copy constructor. More... | |
void | Delete () |
Deletes the object being pointed to and nulls the pointer. | |
T * | Raw () const |
Returns a direct reference to the enclosed pointer. More... | |
A safe pointer class that throws an RC::ErrorMsgNull if a null dereference is attempted.
Default constructor assigning the value of the pointer.
t_ptr | The new pointer value. |
|
inline |
Copy constructor.
other | The Ptr to copy. |
|
inline |
Returns a direct reference to the enclosed pointer.
The reference is read/write, so it can be used as a function parameter which updates the value of this pointer.