Go to the documentation of this file.
68 template<
class T>
class UList;
80 static bool switchFpe_;
84 static bool switchNan_;
87 static bool sigActive_;
90 static bool nanActive_;
96 static void sigHandler(
int);
121 static inline bool active()
134 static void set(
bool verbose=
false);
137 static void unset(
bool verbose=
false);
141 static void* mallocNan(
size_t size);
161 void operator=(
const ignore&) =
delete;
167 void operator=(
ignore&&) =
delete;
static void set(bool verbose=false)
Activate SIGFPE signal handler when FOAM_SIGFPE is set.
static bool nanActive()
True if NaN memory initialisation is currently active.
static bool active()
True if SIGFPE handling is currently active.
ignore()
Constructor deactivates any previously active SIGFPE handler.
static void unset(bool verbose=false)
Deactivate SIGFPE signal handler and NaN memory initialisation.
static void fillNan(UList< scalar > &list)
Fill data block with NaN values.
~ignore()
Destructor restores the original state of SIGFPE handler.
static bool requested()
Check if SIGFPE signals handler is to be enabled.
void restore()
Restore the original state of SIGFPE handler.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...