#include </home/clem/local/src/opie/libopie2/opiecore/osmartpointer.h>
Inheritance diagram for Opie::Core::OSmartPointer< T >:


Public Member Functions | |
| OSmartPointer () | |
| standart constructor | |
| ~OSmartPointer () | |
| standart destructor | |
| OSmartPointer (T *t) | |
| construction | |
| OSmartPointer (const OSmartPointer< T > &p) | |
| Pointer copy. | |
| OSmartPointer< T > & | operator= (const OSmartPointer< T > &p) |
| pointer copy by assignment | |
| OSmartPointer< T > & | operator= (T *p) |
| operator T * () const | |
| cast to conventional pointer | |
| T & | operator * () |
| deref: fails for NULL pointer | |
| const T & | operator * () const |
| deref: fails for NULL pointer | |
| T * | operator-> () |
| deref with method call | |
| const T * | operator-> () const |
| deref with const method call | |
| operator bool () const | |
| supports "if (pointer)" | |
| operator bool () | |
| "if (pointer)" as non const | |
| bool | operator! () const |
| support if (!pointer)" | |
| bool | operator! () |
| support if (!pointer)" as non const | |
Private Attributes | |
| T * | ptr |
| pointer to object | |
Definition at line 65 of file osmartpointer.h.
|
|||||||||
|
standart constructor
Definition at line 75 of file osmartpointer.h. |
|
|||||||||
|
standart destructor release the reference, if it were the last reference, destroys ptr Definition at line 81 of file osmartpointer.h. |
|
||||||||||
|
construction
Definition at line 90 of file osmartpointer.h. |
|
||||||||||
|
Pointer copy.
Definition at line 92 of file osmartpointer.h. |
|
|||||||||
|
deref: fails for NULL pointer
Definition at line 122 of file osmartpointer.h. |
|
|||||||||
|
deref: fails for NULL pointer
Definition at line 120 of file osmartpointer.h. |
|
|||||||||
|
"if (pointer)" as non const
Definition at line 132 of file osmartpointer.h. |
|
|||||||||
|
supports "if (pointer)"
Definition at line 130 of file osmartpointer.h. |
|
|||||||||
|
cast to conventional pointer
Definition at line 117 of file osmartpointer.h. |
|
|||||||||
|
support if (!pointer)" as non const
Definition at line 137 of file osmartpointer.h. |
|
|||||||||
|
support if (!pointer)"
Definition at line 135 of file osmartpointer.h. |
|
|||||||||
|
deref with const method call
Definition at line 127 of file osmartpointer.h. |
|
|||||||||
|
deref with method call
Definition at line 125 of file osmartpointer.h. |
|
||||||||||
|
Definition at line 105 of file osmartpointer.h. |
|
||||||||||
|
pointer copy by assignment
Definition at line 95 of file osmartpointer.h. |
|
|||||
|
pointer to object this object must contain Incr(), Decr() and Shared() methode as public members. The best way is, that it will be a child class of RefCount Definition at line 72 of file osmartpointer.h. Referenced by Opie::Core::OSmartPointer< Folder >::operator *(), Opie::Core::OSmartPointer< Folder >::operator bool(), Opie::Core::OSmartPointer< Folder >::operator T *(), Opie::Core::OSmartPointer< Folder >::operator!(), Opie::Core::OSmartPointer< Folder >::operator->(), Opie::Core::OSmartPointer< Folder >::operator=(), Opie::Core::OSmartPointer< Folder >::OSmartPointer(), and Opie::Core::OSmartPointer< Folder >::~OSmartPointer(). |
1.4.2