Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Wefts::CleanupItem Class Reference

Item representing a cleanup handler and its parameters. More...

#include <wefts_cleanup.h>

Collaboration diagram for Wefts::CleanupItem:

Collaboration graph
[legend]
List of all members.

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

CleanupHandlerhandler
 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.


Detailed Description

Item representing a cleanup handler and its parameters.


Constructor & Destructor Documentation

Wefts::CleanupItem::CleanupItem  )  [inline]
 

Empty constructor that leaves the fields uninitialized.

Wefts::CleanupItem::CleanupItem CleanupHandler h  )  [inline]
 

Basic Constructor.

Initializes only the handler. Faster and to be used if the handler handleCleanup routine does not needs its parameters.

Parameters:
h the cleanup handler object pointer

Wefts::CleanupItem::CleanupItem CleanupHandler h,
int  p
[inline]
 

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.

Parameters:
h the cleanup handler object pointer
p the position in cleanup sequence (action to be taken)

Wefts::CleanupItem::CleanupItem CleanupHandler h,
int  p,
void *  c
[inline]
 

Complete constructor.

Fills all the three elements of the class.

Parameters:
h the cleanup handler object pointer
p the position in cleanup sequence (action to be taken)
c the object that has to be cleaned


Member Data Documentation

void* Wefts::CleanupItem::caller
 

Object of which cleanup is requested.

CleanupHandler* Wefts::CleanupItem::handler
 

The pointer to the handler object of which handler->handleCleanup() must be called.

int Wefts::CleanupItem::position
 

Position passed as first parameter to handler->handleCleanup().


The documentation for this class was generated from the following file:
Generated on Sat Mar 13 21:05:44 2004 for Wefts by doxygen 1.3.5