struct KSharedPtr
|
Can be used to control the lifetime of an object that has derived
KShared. More... |
|
|
Public Methods
Can be used to control the lifetime of an object that has derived
KShared. As long a someone holds a KSharedPtr on some KShared
object it won't become deleted but is deleted once its reference
count is 0. This struct emulates C++ pointers perfectly. So just
use it like a simple C++ pointer.
KShared and KSharedPtr are preferred over QShared / QSharedPtr
since they are more safe.
KSharedPtr ( T* t )
| KSharedPtr |
~KSharedPtr ()
| ~KSharedPtr |
bool operator== ( const KSharedPtr<T>& p )
| operator== |
[const]
bool operator!= ( const KSharedPtr<T>& p )
| operator!= |
[const]
bool operator== ( const T* p )
| operator== |
[const]
bool operator!= ( const T* p )
| operator!= |
[const]
bool operator! ()
| operator! |
[const]
operator T* ()
| operator T* |
[const]
const T& operator* ()
| operator* |
[const]
T& operator* ()
| operator* |
const T* operator-> ()
| operator-> |
[const]
T* operator-> ()
| operator-> |
[const]
- Version: $Id: KSharedPtr.html 184062 2002-10-15 18:22:22Z apidocs $
- Author: Waldo Bastian <bastian@kde.org>
- Generated: dfaure on Tue Feb 27 12:46:10 2001, using kdoc 2.0a50.