Definition More...
#include <Utils_DESTRUCTEUR_GENERIQUE.hxx>

Public Member Functions | |
| virtual | ~DESTRUCTEUR_GENERIQUE_ () | 
| virtual destructor  More... | |
| virtual void | operator() (void)=0 | 
| performs the destruction  More... | |
Static Public Member Functions | |
| static const int | Ajout (DESTRUCTEUR_GENERIQUE_ &objet) | 
| adds a destruction object to the list of destructions  More... | |
Static Public Attributes | |
| static std::list < DESTRUCTEUR_GENERIQUE_ * > *  | Destructeurs =0 | 
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 :
 -# 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.
 -# an object method to execute the destruction : operator()(). 
      
  | 
  virtual | 
virtual destructor
      
  | 
  static | 
adds a destruction object to the list of destructions
Adds a destruction object to the list of actions to be performed at the end of the process.
References ATEXIT_Done, and Destructeurs.
Referenced by DESTRUCTEUR_DE_< TYPE >::DESTRUCTEUR_DE_().
      
  | 
  pure virtual | 
performs the destruction
Implemented in DESTRUCTEUR_DE_< TYPE >.
      
  | 
  static | 
Referenced by Ajout(), SINGLETON_< TYPE >::Destruction(), and Nettoyage().