Version: 9.12.0
DESTRUCTEUR_GENERIQUE_ Class Referenceabstract

Definition More...

#include <Utils_DESTRUCTEUR_GENERIQUE.hxx>

Inheritance diagram for DESTRUCTEUR_GENERIQUE_:

Public Member Functions

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

Static Public Member Functions

static 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
 

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 :
 -# 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()().

Constructor & Destructor Documentation

◆ ~DESTRUCTEUR_GENERIQUE_()

virtual DESTRUCTEUR_GENERIQUE_::~DESTRUCTEUR_GENERIQUE_ ( )
virtual

virtual destructor

Member Function Documentation

◆ Ajout()

int DESTRUCTEUR_GENERIQUE_::Ajout ( DESTRUCTEUR_GENERIQUE_ objet)
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, Destructeurs, and nettoyage.

Referenced by DESTRUCTEUR_DE_< TYPE >::DESTRUCTEUR_DE_().

◆ operator()()

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

performs the destruction

Implemented in DESTRUCTEUR_DE_< TYPE >.

Field Documentation

◆ Destructeurs

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