Version: 9.12.0
GENERIC_DESTRUCTOR Class Referenceabstract

The GENERIC_DESTRUCTOR abstract class describes the comportement of any destruction object. More...

#include <BasicsGenericDestructor.hxx>

Inheritance diagram for GENERIC_DESTRUCTOR:

Public Member Functions

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

Static Public Member Functions

static int Add (GENERIC_DESTRUCTOR &anObject)
 Adds a destruction object to the list of actions to be performed at the end of the process. More...
 

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

◆ ~GENERIC_DESTRUCTOR()

virtual GENERIC_DESTRUCTOR::~GENERIC_DESTRUCTOR ( )
virtual

Member Function Documentation

◆ Add()

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.

References atExitSingletonDone, Destructors, DEVTRACE, HouseKeeper, and pythfilter::name.

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

◆ operator()()

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

Implemented in DESTRUCTOR_OF< TYPE >.

Field Documentation

◆ Destructors

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