#include <wefts_cleanup.h>
Collaboration diagram for Wefts::CleanupItem:
Public Member Functions | |
CleanupItem () | |
Empty constructor that leaves the fields uninitialized. | |
CleanupItem (CleanupHandler *h) | |
Basic Constructor. | |
CleanupItem (CleanupHandler *h, int p) | |
Position constructor To be used when the handler does not use the object pointer referring the cleared object; usually, this happens when the object to be cleared is "this", so the handler's handleCleanup() routine can access "this" to get the object to clear. | |
CleanupItem (CleanupHandler *h, int p, void *c) | |
Complete constructor. | |
Public Attributes | |
CleanupHandler * | handler |
The pointer to the handler object of which handler->handleCleanup() must be called. | |
int | position |
Position passed as first parameter to handler->handleCleanup(). | |
void * | caller |
Object of which cleanup is requested. |
|
Empty constructor that leaves the fields uninitialized.
|
|
Basic Constructor. Initializes only the handler. Faster and to be used if the handler handleCleanup routine does not needs its parameters.
|
|
Position constructor To be used when the handler does not use the object pointer referring the cleared object; usually, this happens when the object to be cleared is "this", so the handler's handleCleanup() routine can access "this" to get the object to clear. This leaves caller member uninitialized, sparing time.
|
|
Complete constructor. Fills all the three elements of the class.
|
|
Object of which cleanup is requested.
|
|
The pointer to the handler object of which handler->handleCleanup() must be called.
|
|
Position passed as first parameter to handler->handleCleanup().
|