TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
TClearable Class Referenceabstract

A small class representing any object with a "clear()" method. More...

#include <TClearable.h>

Inheritance diagram for TClearable:
[legend]

Public Member Functions

virtual ~TClearable ()
virtual void clear ()=0

Static Public Member Functions

static void Register_clearable (TClearable *c)
static void Clear_all ()

Detailed Description

A small class representing any object with a "clear()" method.

Used notably to invoke Domaine_dis_cache::clear() properly at the end of TRUST, but without having to refer to the Domaine_dis_cache class in the MAIN of TRUST, since Domaine_dis_cache is not part of TRUST numerical kernel.

Definition at line 28 of file TClearable.h.

Constructor & Destructor Documentation

◆ ~TClearable()

virtual TClearable::~TClearable ( )
inlinevirtual

Definition at line 31 of file TClearable.h.

Member Function Documentation

◆ clear()

virtual void TClearable::clear ( )
pure virtual

Implemented in Domaine_dis_cache.

◆ Clear_all()

void TClearable::Clear_all ( )
inlinestatic

Clean all registered objects. Typically invoked from TRUST main.

Definition at line 43 of file TClearable.h.

◆ Register_clearable()

void TClearable::Register_clearable ( TClearable * c)
inlinestatic

Register an object to be cleared

Definition at line 35 of file TClearable.h.


The documentation for this class was generated from the following files:
  • /home/docs/checkouts/readthedocs.org/user_builds/cea-trust-platform/checkouts/v1.9.8/src/Kernel/Utilitaires/TClearable.h
  • /home/docs/checkouts/readthedocs.org/user_builds/cea-trust-platform/checkouts/v1.9.8/src/Kernel/Utilitaires/TClearable.cpp