OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Classes | Macros | Functions
myexcept.h File Reference

Go to the source code of this file.

Classes

class  Tracer
 
class  BaseException
 
class  Janitor
 
class  Logic_error
 
class  Runtime_error
 
class  Domain_error
 
class  Invalid_argument
 
class  Length_error
 
class  Out_of_range
 
class  Range_error
 
class  Overflow_error
 
class  Bad_alloc
 

Macros

#define FREE_CHECK(Class)   public:
 
#define MONITOR_REAL_NEW(Operation, Size, Pointer)   {}
 
#define MONITOR_INT_NEW(Operation, Size, Pointer)   {}
 
#define MONITOR_REAL_DELETE(Operation, Size, Pointer)   {}
 
#define MONITOR_INT_DELETE(Operation, Size, Pointer)   {}
 
#define NEW_DELETE(Class)   FREE_CHECK(Class)
 

Functions

void Terminate ()
 

Macro Definition Documentation

◆ FREE_CHECK

#define FREE_CHECK (   Class)    public:

Definition at line 316 of file myexcept.h.

◆ MONITOR_INT_DELETE

#define MONITOR_INT_DELETE (   Operation,
  Size,
  Pointer 
)    {}

Definition at line 320 of file myexcept.h.

Referenced by BandLUMatrix::~BandLUMatrix(), and CroutMatrix::~CroutMatrix().

◆ MONITOR_INT_NEW

#define MONITOR_INT_NEW (   Operation,
  Size,
  Pointer 
)    {}

Definition at line 318 of file myexcept.h.

Referenced by BandLUMatrix::BandLUMatrix(), and CroutMatrix::CroutMatrix().

◆ MONITOR_REAL_DELETE

#define MONITOR_REAL_DELETE (   Operation,
  Size,
  Pointer 
)    {}

◆ MONITOR_REAL_NEW

#define MONITOR_REAL_NEW (   Operation,
  Size,
  Pointer 
)    {}

◆ NEW_DELETE

#define NEW_DELETE (   Class)    FREE_CHECK(Class)

Definition at line 338 of file myexcept.h.

Function Documentation

◆ Terminate()

void Terminate ( )

Definition at line 220 of file myexcept.cpp.

References BaseException::what().

221 {
222  std::cout << "\n\nThere has been an exception with no handler - exiting";
223  const char* what = BaseException::what();
224  if (what) std::cout << what << "\n";
225  exit(1);
226 }
static const char * what()
Definition: myexcept.h:81