Yate
|
Templated smart pointer class. More...
#include <yateclass.h>
Public Member Functions | |
RefPointer () | |
RefPointer (const RefPointer< Obj > &value) | |
RefPointer (Obj *object) | |
~RefPointer () | |
RefPointer< Obj > & | operator= (const RefPointer< Obj > &value) |
RefPointer< Obj > & | operator= (Obj *object) |
operator Obj * () const | |
Obj * | operator-> () const |
Obj & | operator* () const |
Protected Member Functions | |
Obj * | pointer () const |
void | assign (Obj *object=0) |
Protected Member Functions inherited from RefPointerBase | |
RefPointerBase () | |
void | assign (RefObject *oldptr, RefObject *newptr, void *pointer) |
Additional Inherited Members | |
Protected Attributes inherited from RefPointerBase | |
void * | m_pointer |
Templated smart pointer class.
|
inline |
Default constructor - creates a null smart pointer
|
inline |
Copy constructor, references the object
value | Original RefPointer |
References RefPointer< Obj >::assign().
|
inline |
Constructs an initialized smart pointer, references the object
object | Pointer to object |
References RefPointer< Obj >::assign().
|
inline |
Destructs the pointer and dereferences the object
References RefPointer< Obj >::assign().
|
inlineprotected |
Set a new stored pointer
object | Pointer to the new stored object |
References RefPointerBase::assign(), and RefPointer< Obj >::pointer().
Referenced by RefPointer< Obj >::operator=(), RefPointer< Obj >::RefPointer(), and RefPointer< Obj >::~RefPointer().
|
inline |
Conversion to regular pointer operator
References RefPointer< Obj >::pointer().
|
inline |
Dereferencing operator
References RefPointer< Obj >::pointer().
|
inline |
Member access operator
References RefPointer< Obj >::pointer().
|
inline |
Assignment from smart pointer
References RefPointer< Obj >::assign(), and RefPointer< Obj >::pointer().
|
inline |
Assignment from regular pointer
References RefPointer< Obj >::assign().
|
inlineprotected |
Retrieve the stored pointer
References RefPointerBase::m_pointer.
Referenced by RefPointer< Obj >::assign(), RefPointer< Obj >::operator Obj *(), RefPointer< Obj >::operator*(), RefPointer< Obj >::operator->(), and RefPointer< Obj >::operator=().