General KERNEL Documentation     End User KERNEL Services  


DESTRUCTEUR_GENERIQUE_ Class Reference

#include <Utils_DESTRUCTEUR_GENERIQUE.hxx>

Inherited by DESTRUCTEUR_DE_< TYPE >.

Inheritance diagram for DESTRUCTEUR_GENERIQUE_:

Inheritance graph

Public Member Functions

virtual ~DESTRUCTEUR_GENERIQUE_ ()
 virtual destructor
virtual void operator() (void)=0
 performs the destruction

Static Public Member Functions

static const int Ajout (DESTRUCTEUR_GENERIQUE_ &objet)
 adds a destruction object to the list of destructions

Static Public Attributes

static std::list< DESTRUCTEUR_GENERIQUE_ * > * Destructeurs = 0

Detailed Description

Definition

The DESTRUCTEUR_GENERIQUE_ abstract class describes the comportement of any destruction object. Tis type is used to create a list of miscellaneous destruction object.

Usage

The only way to use the DESTRUCTEUR_GENERIQUE_ class is inheritance : class DESTRUCTEUR_SPECIFIQUE_ : public DESTRUCTEUR_GENERIQUE_

Design description

A generic destructor supply two functionalities :

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


Constructor & Destructor Documentation

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


Member Function Documentation

const int DESTRUCTEUR_GENERIQUE_::Ajout DESTRUCTEUR_GENERIQUE_ objet  )  [static]
 

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

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

Implemented in DESTRUCTEUR_DE_< TYPE >.


Field Documentation

std::list< DESTRUCTEUR_GENERIQUE_ * > * DESTRUCTEUR_GENERIQUE_::Destructeurs = 0 [static]