#include <rptr.h>
Public Member Functions | |
Construction | |
Rptr () | |
Rptr (const Rptr &src) | |
Rptr (T *data0, bool owner0=true) | |
Rptr & | Set (T *src, bool owner0=true) |
~Rptr () | |
const | |
T & | operator * () const |
T * | operator-> () const |
template<class TT> | operator const Rptr () const |
T * | Ptr () const |
bool | IsOwner () const |
T * | Drop () const |
bool | operator== (const Rptr &rhs) const |
bool | operator== (const T *rhs) const |
bool | operator!= (const Rptr &rhs) const |
bool | operator!= (const T *rhs) const |
nonconst | |
Rptr & | operator= (const Rptr &src) |
Rptr & | operator= (T *src) |
template<class TT> Rptr & | DynamicCast (const Rptr< TT > &src) |
template<class TT> Rptr & | StaticCast (const Rptr< TT > &src) |
This smart pointer provides the following features:
|
Default constructor |
|
Copy constructor |
|
Constructor from built-in pointer type
|
|
Destructor |
|
Disable reference counting mechanism for the object this pointer points to. |
|
Dynamic cast (assigns with 0 on failure) |
|
|
|
Dereferencing |
|
Pointer reference cast operator |
|
Inequality, built-in pointer right-hand side |
|
Inequality |
|
Member dereferencing |
|
Allow assignment from built-in pointer type |
|
Assignment operator |
|
Equality, built-in pointer right-hand side |
|
Equality |
|
Allow access to built-in pointer |
|
Reinitialize the pointer
|
|
Static cast |