#include <ksharedptr.h>
Public Methods | |
| KSharedPtr () | |
| KSharedPtr (T *t) | |
| KSharedPtr (const KSharedPtr &p) | |
| ~KSharedPtr () | |
| T * | data () |
| const T * | data () const |
| int | count () const |
KShared and KSharedPtr are preferred over QShared / QSharedPtr since they are more safe.
Definition at line 96 of file ksharedptr.h.
|
|||||||||
|
Creates a null pointer. Definition at line 102 of file ksharedptr.h. |
|
||||||||||
|
Creates a new pointer.
Definition at line 108 of file ksharedptr.h. |
|
||||||||||
|
Copies a pointer.
Definition at line 115 of file ksharedptr.h. |
|
|||||||||
|
Unreferences the object that this pointer points to. If it was the last reference, the object will be deleted. Definition at line 122 of file ksharedptr.h. |
|
|||||||||
|
Returns the number of references.
Definition at line 166 of file ksharedptr.h. |
|
|||||||||
|
Returns the pointer.
Definition at line 155 of file ksharedptr.h. |
|
|||||||||
|
Returns the pointer.
Definition at line 149 of file ksharedptr.h. |
1.2.18