class KStaticDeleter
|
little helper class to clean up static objects that are
held as pointer. More... |
|
|
Public Methods
little helper class to clean up static objects that are
held as pointer.
A typical use is
static KStaticDeleter<MyClass> sd;
MyClass::self() {
if (!_self) { _self = sd.setObject(new MyClass()); }
}
| type * setObject ( type *obj, bool isArray = false)
|
sets the object to delete and registers the object to be
deleted to KGlobal. if the given object is 0, the former
registration is unregistred
Parameters:
| isArray | tells the destructor to delete an array instead of an object
|
[virtual]
Reimplemented from KStaticDeleterBase.
[virtual]
| Generated by: masato@ss10 on Wed Apr 11 11:50:47 2001, using kdoc 2.0a48. |