SALOME documentation central

DESTRUCTEUR_GENERIQUE_ Class Reference

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]

virtual destructor


Member Function Documentation

const 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

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

performs the destruction

Implemented in DESTRUCTEUR_DE_< TYPE >.


Copyright © 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS