ITK  6.0.0
Insight Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
itk::FloatingPointExceptions Class Reference

#include <itkFloatingPointExceptions.h>

Detailed Description

Allows floating point exceptions to be caught during program execution.

Allows floating point exceptions to be caught during program execution.

Definition at line 55 of file itkFloatingPointExceptions.h.

Public Types

using ExceptionActionEnum = FloatingPointExceptionsEnums::ExceptionAction
 

Public Member Functions

 FloatingPointExceptions ()=default
 
virtual ~FloatingPointExceptions ()=default
 

Static Public Member Functions

static void Disable ()
 
static void Enable ()
 
static bool GetEnabled ()
 
static ExceptionActionEnum GetExceptionAction ()
 
static bool HasFloatingPointExceptionsSupport ()
 
static void SetEnabled (bool val)
 
static void SetExceptionAction (ExceptionActionEnum a)
 

Private Member Functions

 itkGetGlobalDeclarationMacro (ExceptionGlobals, PimplGlobals)
 

Static Private Attributes

static ExceptionGlobals * m_PimplGlobals
 

Member Typedef Documentation

◆ ExceptionActionEnum

Definition at line 63 of file itkFloatingPointExceptions.h.

Constructor & Destructor Documentation

◆ FloatingPointExceptions()

itk::FloatingPointExceptions::FloatingPointExceptions ( )
default

◆ ~FloatingPointExceptions()

virtual itk::FloatingPointExceptions::~FloatingPointExceptions ( )
virtualdefault

Member Function Documentation

◆ Disable()

static void itk::FloatingPointExceptions::Disable ( )
static

Disable floating point exceptions.

See also
Enable, SetEnabled, GetEnabled

◆ Enable()

static void itk::FloatingPointExceptions::Enable ( )
static

Enable floating point exceptions.

If floating point exceptions are not supported on the platform, the program will either abort or exit displaying the error message FloatingPointExceptions are not supported on this platform..

Choice between Exit or Abort is based on the value returned by based GetExceptionAction().

See also
Disable, SetEnabled, GetEnabled

◆ GetEnabled()

static bool itk::FloatingPointExceptions::GetEnabled ( )
static

Return the current state of FP Exceptions

◆ GetExceptionAction()

static ExceptionActionEnum itk::FloatingPointExceptions::GetExceptionAction ( )
static

Access current ExceptionAction

◆ HasFloatingPointExceptionsSupport()

static bool itk::FloatingPointExceptions::HasFloatingPointExceptionsSupport ( )
static

Return if floating point exceptions are supported on this platform

◆ itkGetGlobalDeclarationMacro()

itk::FloatingPointExceptions::itkGetGlobalDeclarationMacro ( ExceptionGlobals  ,
PimplGlobals   
)
private

◆ SetEnabled()

static void itk::FloatingPointExceptions::SetEnabled ( bool  val)
static

Set the state to specified value.

See also
Enable, Disable, GetEnabled

◆ SetExceptionAction()

static void itk::FloatingPointExceptions::SetExceptionAction ( ExceptionActionEnum  a)
static

Control whether exit(255) or abort() is called on an exception

Member Data Documentation

◆ m_PimplGlobals

ExceptionGlobals* itk::FloatingPointExceptions::m_PimplGlobals
staticprivate

static member that controls what happens during an exception

Definition at line 118 of file itkFloatingPointExceptions.h.


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