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

#include <itkFloatingPointExceptions.h>

Detailed Description

Definition at line 35 of file itkFloatingPointExceptions.h.

Public Types

using ExceptionAction = enum{ABORT, EXIT}
 

Static Public Member Functions

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

Private Member Functions

 FloatingPointExceptions ()=default
 
 FloatingPointExceptions (const FloatingPointExceptions &)=delete
 
 itkGetGlobalDeclarationMacro (ExceptionGlobals, PimplGlobals)
 
void operator= (const FloatingPointExceptions &)=delete
 

Static Private Attributes

static ExceptionGlobals * m_PimplGlobals
 

Member Typedef Documentation

using itk::FloatingPointExceptions::ExceptionAction = enum { ABORT, EXIT }

defines what should happen when exceptions occur

Definition at line 39 of file itkFloatingPointExceptions.h.

Constructor & Destructor Documentation

itk::FloatingPointExceptions::FloatingPointExceptions ( )
privatedefault
itk::FloatingPointExceptions::FloatingPointExceptions ( const FloatingPointExceptions )
privatedelete

Member Function Documentation

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

Disable floating point exceptions.

See Also
Enable, SetEnabled, GetEnabled
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
static bool itk::FloatingPointExceptions::GetEnabled ( )
static

Return the current state of FP Exceptions

static ExceptionAction itk::FloatingPointExceptions::GetExceptionAction ( )
static

Access current ExceptionAction

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

Return if floating point exceptions are supported on this platform

itk::FloatingPointExceptions::itkGetGlobalDeclarationMacro ( ExceptionGlobals  ,
PimplGlobals   
)
private
void itk::FloatingPointExceptions::operator= ( const FloatingPointExceptions )
privatedelete
static void itk::FloatingPointExceptions::SetEnabled ( bool  val)
static

Set the state to specified value.

See Also
Enable, Disable, GetEnabled
static void itk::FloatingPointExceptions::SetExceptionAction ( ExceptionAction  a)
static

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

Member Data Documentation

ExceptionGlobals* itk::FloatingPointExceptions::m_PimplGlobals
staticprivate

static member that controls what happens during an exception

Definition at line 85 of file itkFloatingPointExceptions.h.


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