#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
| zeus::TAutoPtrBase< T >::TAutoPtrBase | ( | ) | [inline] |
Creates an Interface Smart pointer
| zeus::TAutoPtrBase< T >::TAutoPtrBase | ( | const T * | pIface, |
| bool | bAllocPointer = false |
||
| ) | [inline] |
Creates an Interface Smart pointer
| pIface | : Interface |
| bAllocPointer | : If this flag is true the pointer will be allocated with addRef() |
| zeus::TAutoPtrBase< T >::TAutoPtrBase | ( | const T & | rIface, |
| bool | bAllocPointer = false |
||
| ) | [inline] |
Creates an Interface Smart pointer
| rIface | : Interface |
| bAllocPointer | : If this flag is true the pointer will be allocated with addRef() |
| virtual zeus::TAutoPtrBase< T >::~TAutoPtrBase | ( | ) | [inline, virtual] |
Destroys the smart pointer
| void zeus::TAutoPtrBase< T >::assign | ( | const T * | pInterface ) | [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 |
| void zeus::TAutoPtrBase< T >::assign | ( | const T & | rInterface ) | [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 |
| void zeus::TAutoPtrBase< T >::attach | ( | const T & | rInterface ) | [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 |
| void zeus::TAutoPtrBase< T >::attach | ( | const T * | pInterface ) | [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 |
| T* zeus::TAutoPtrBase< T >::detach | ( | ) | [inline] |
Removes the pointer from the wrapper without releasing it. After this call the internal member is set to NULL.
| bool zeus::TAutoPtrBase< T >::equals | ( | const T & | rInterface ) | const [inline] |
Checks if two pointers are equal
| rInterface | : reference to check |
| bool zeus::TAutoPtrBase< T >::equals | ( | const T * | pInterface ) | const [inline] |
Checks if two pointers are equal
| pInterface | : pointer to check |
| const T* zeus::TAutoPtrBase< T >::getConstPointer | ( | ) | const [inline] |
returns the the const_pointer
| const T*& zeus::TAutoPtrBase< T >::getConstPointerReference | ( | ) | const [inline] |
returns the Reference of the pointer
| IZUnknown*& zeus::TAutoPtrBase< T >::getInterfaceReference | ( | ) | [inline] |
returns the Reference of the interface pointer
| const IZUnknown*& zeus::TAutoPtrBase< T >::getInterfaceReferenceConst | ( | ) | const [inline] |
returns the Reference of the interface pointer
| T* zeus::TAutoPtrBase< T >::getPointer | ( | ) | [inline] |
returns the the pointer
| T*& zeus::TAutoPtrBase< T >::getPointerReference | ( | ) | [inline] |
returns the Reference of the pointer
| void zeus::TAutoPtrBase< T >::release | ( | ) | [inline] |
Removes the pointer from the wrapper
T* zeus::TAutoPtrBase< T >::m_pInterface [protected] |