VTK  9.2.20220926
vtkFloatingPointExceptions.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkFloatingPointExceptions.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
48 #ifndef vtkFloatingPointExceptions_h
49 #define vtkFloatingPointExceptions_h
50 
51 #include "vtkCommonCoreModule.h" // For export macro
52 #include "vtkSystemIncludes.h" // For VTKCOMMONCORE_EXPORT
53 
54 VTK_ABI_NAMESPACE_BEGIN
55 class VTKCOMMONCORE_EXPORT vtkFloatingPointExceptions
56 {
57 public:
61  static void Enable();
62 
66  static void Disable();
67 
68 private:
69  vtkFloatingPointExceptions() = delete;
71  void operator=(const vtkFloatingPointExceptions&) = delete;
72 };
73 
75 #endif
76 // VTK-HeaderTest-Exclude: vtkFloatingPointExceptions.h
Deal with floating-point exceptions.
static void Disable()
Disable floating point exceptions.
static void Enable()
Enable floating point exceptions.