#include <kstaticdeleter.h>
Inheritance diagram for KStaticDeleter< type >:

Public Methods | |
| type * | setObject (type *obj, bool isArray=false) |
| type * | setObject (type *&globalRef, type *obj, bool isArray=false) |
| virtual void | destructObject () |
A typical use is
static KStaticDeleter<MyClass> sd;
MyClass::self() {
if (!_self) { sd.setObject(_self, new MyClass()); }
}
Definition at line 65 of file kstaticdeleter.h.
|
|||||||||
|
Destructs the object. This has the same effect as deleting the KStaticDeleter. Reimplemented from KStaticDeleterBase. Definition at line 109 of file kstaticdeleter.h. |
|
||||||||||||||||||||
|
Sets the object to delete and registers the object to be deleted to KGlobal. If the given object is 0, the former registration is unregistered.
Definition at line 93 of file kstaticdeleter.h. References KGlobal::registerStaticDeleter(), and KGlobal::unregisterStaticDeleter(). |
|
||||||||||||||||
|
Sets the object to delete and registers the object to be deleted to KGlobal. If the given object is 0, the former registration is unregistered.
Definition at line 75 of file kstaticdeleter.h. References KGlobal::registerStaticDeleter(), and KGlobal::unregisterStaticDeleter(). |
1.2.18