General KERNEL Documentation     End User KERNEL Services  


GENERIC_DESTRUCTOR Class Reference

#include <BasicsGenericDestructor.hxx>

Inheritance diagram for GENERIC_DESTRUCTOR:

Inheritance graph
Collaboration diagram for GENERIC_DESTRUCTOR:

Collaboration graph

Public Member Functions

virtual ~GENERIC_DESTRUCTOR ()
virtual void operator() (void)=0

Static Public Member Functions

static const int Add (GENERIC_DESTRUCTOR &anObject)

Static Public Attributes

static std::list< GENERIC_DESTRUCTOR * > * Destructors = 0

Detailed Description

The GENERIC_DESTRUCTOR abstract class describes the comportement of any destruction object. This type is used to create a list of miscellaneous destruction objects.

The only way to use the GENERIC_DESTRUCTOR class is inheritance: class SPECIFIC_DESTRUCTOR : public GENERIC_DESTRUCTOR

A generic destructor provides two methods:

  1. a static method to add a destruction (object) to be performed: GENERIC_DESTRUCTOR::Add(GENERIC_DESTRUCTOR &anObject); The Destruction object is stored in a list of pointer to GENERIC_DESTRUCTOR objects.
  2. an object method to execute the destruction : operator()().


Constructor & Destructor Documentation

virtual GENERIC_DESTRUCTOR::~GENERIC_DESTRUCTOR  )  [inline, virtual]
 


Member Function Documentation

const int GENERIC_DESTRUCTOR::Add GENERIC_DESTRUCTOR anObject  )  [static]
 

Adds a destruction object to the list of actions to be performed at the end of the process

virtual void GENERIC_DESTRUCTOR::operator() void   )  [pure virtual]
 

Implemented in DESTRUCTOR_OF< TYPE >.


Field Documentation

std::list< GENERIC_DESTRUCTOR * > * GENERIC_DESTRUCTOR::Destructors = 0 [static]