#include </home/clem/local/src/opie/noncore/apps/tinykate/libkate/microkde/ksharedptr.h>
Inheritance diagram for KShared:

Public Member Functions | |
| KShared () | |
| KShared (const KShared &) | |
| KShared & | operator= (const KShared &) |
| void | _KShared_ref () |
| void | _KShared_unref () |
| int | _KShared_count () |
Protected Member Functions | |
| virtual | ~KShared () |
Protected Attributes | |
| int | count |
Specifically, all classes that derive from KShared have an internal counter keeping track of how many other objects have a reference to their object. If used with KSharedPtr, then your object will not be deleted until all references to the object have been released.
You should probably not ever use any of the methods in this class directly -- let the KSharedPtr take care of that. Just derive your class from KShared and forget about it.
Definition at line 39 of file ksharedptr.h.
|
|
Standard constructor. This will initialize the reference count on this object to 0 Definition at line 45 of file ksharedptr.h. |
|
|
Copy constructor. This will not actually copy the objects but it will initialize the reference count on this object to 0 Definition at line 51 of file ksharedptr.h. |
|
|
Definition at line 77 of file ksharedptr.h. |
|
|
Return the current number of references held
Definition at line 74 of file ksharedptr.h. References count. |
|
|
Increases the reference count by one Definition at line 61 of file ksharedptr.h. References count. |
|
|
Releases a reference (decreases the reference count by one). If the count goes to 0, this object will delete itself Definition at line 67 of file ksharedptr.h. References count. |
|
|
Overloaded assignment operator Definition at line 56 of file ksharedptr.h. |
|
|
Definition at line 78 of file ksharedptr.h. Referenced by _KShared_count(), _KShared_ref(), and _KShared_unref(). |
1.4.2