MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
HardDestructor< T > Class Template Reference

#include <destr.h>

Inheritance diagram for HardDestructor< T >:
Collaboration diagram for HardDestructor< T >:

Public Member Functions

 HardDestructor (void)
 
 ~HardDestructor (void)
 
void Destroy (T *&pnt) const
 
- Public Member Functions inherited from Destructor< T >
 Destructor (void)
 
virtual ~Destructor (void)
 

Detailed Description

template<class T>
class HardDestructor< T >

Definition at line 70 of file destr.h.

Constructor & Destructor Documentation

template<class T >
HardDestructor< T >::HardDestructor ( void  )
inline

Definition at line 72 of file destr.h.

References NO_OP.

72  : Destructor<T>() {
73  NO_OP;
74  };
#define NO_OP
Definition: myassert.h:74
template<class T >
HardDestructor< T >::~HardDestructor ( void  )
inline

Definition at line 76 of file destr.h.

References NO_OP.

76  {
77  NO_OP;
78  };
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

template<class T >
void HardDestructor< T >::Destroy ( T *&  pnt) const
inlinevirtual

Implements Destructor< T >.

Definition at line 80 of file destr.h.

References SAFEDELETE.

80  {
81  if (pnt != NULL) {
82  SAFEDELETE(pnt);
83  pnt = NULL;
84  }
85  };
#define SAFEDELETE(pnt)
Definition: mynewmem.h:710

The documentation for this class was generated from the following file: