ZeusBase-Library
2.0.4
|
#include <AutoPtr.hpp>
Public Member Functions | |
TAutoPtrBase () | |
TAutoPtrBase (const T *pIface, bool bAllocPointer=false) | |
TAutoPtrBase (const T &rIface, bool bAllocPointer=false) | |
virtual | ~TAutoPtrBase () |
void | assign (const T *pInterface) |
void | assign (const T &rInterface) |
void | attach (const T *pInterface) |
void | attach (const T &rInterface) |
bool | equals (const T *pInterface) const |
bool | equals (const T &rInterface) const |
T *& | getPointerReference () |
const T *& | getConstPointerReference () const |
IZUnknown *& | getInterfaceReference () |
const IZUnknown *& | getInterfaceReferenceConst () const |
T * | getPointer () |
const T * | getConstPointer () const |
T * | detach () |
void | release () |
Protected Attributes | |
T * | m_pInterface |
This is the base class of all smart interface pointers
|
inline |
Creates an Interface Smart pointer
|
inline |
Creates an Interface Smart pointer
pIface | : Interface |
bAllocPointer | : If this flag is true the pointer will be allocated with addRef() |
|
inline |
Creates an Interface Smart pointer
rIface | : Interface |
bAllocPointer | : If this flag is true the pointer will be allocated with addRef() |
|
inlinevirtual |
Destroys the smart pointer
|
inline |
assigns a new interface pointer to the auto pointer. This method will allocate a new pointer reference (using addRef())
pInterface | : Interface pointer to assign |
|
inline |
assigns a new interface reference to the auto pointer. This method will allocate a new pointer reference (using addRef())
rInterface | : Interface reference to assign |
|
inline |
adopts a new interface pointer to the auto pointer. This method will not allocate a new pointer reference (no addRef())
pInterface | : pointer to attach |
|
inline |
adopts a new interface reference to the auto pointer. This method will not allocate a new pointer reference (no addRef())
rInterface | : reference to attach |
|
inline |
Removes the pointer from the wrapper without releasing it. After this call the internal member is set to NULL.
|
inline |
Checks if two pointers are equal
pInterface | : pointer to check |
|
inline |
Checks if two pointers are equal
rInterface | : reference to check |
|
inline |
returns the the const_pointer
|
inline |
returns the Reference of the pointer
|
inline |
returns the Reference of the interface pointer
|
inline |
returns the Reference of the interface pointer
|
inline |
returns the the pointer
|
inline |
returns the Reference of the pointer
|
inline |
Removes the pointer from the wrapper
|
protected |