23#ifndef _GEMA_NANBOXED_VALUE_H_
24#define _GEMA_NANBOXED_VALUE_H_
31#include <qtNanBoxedValue.h>
97 GmNanBoxedIndex(
double value,
bool normalizeNans) : QtNanBoxedValue(value, normalizeNans) {}
110 unsigned toIndex()
const { assert(
isIndex());
return (
unsigned)((quint64)toPointer()); }
A helper class to store an usigned index as the boxed nan value.
Definition gmNanBoxedValue.h:78
GmNanBoxedIndex()
Default constructor: a zero double value.
Definition gmNanBoxedValue.h:88
PointerTags
Pointer tag values.
Definition gmNanBoxedValue.h:83
@ IndexValue
Make the quiet nan + prefix equal to 0xFFFF000000000000. Nicer for external file generators.
Definition gmNanBoxedValue.h:84
bool isIndex() const
Is this a User function pointer value?
Definition gmNanBoxedValue.h:107
GmNanBoxedIndex(unsigned index)
Constructor for storing an index. Marked as explicit since we don't want an integer (or even a double...
Definition gmNanBoxedValue.h:104
unsigned toIndex() const
Returns the stored value as an index.
Definition gmNanBoxedValue.h:110
GmNanBoxedIndex(double value, bool normalizeNans)
Constructor for storing a double value. If normalizeNans is true, if the given value is a quiet NAN v...
Definition gmNanBoxedValue.h:97
A wrapper class around QtNanBoxedValue providing specific constructors to store user functions / user...
Definition gmNanBoxedValue.h:41
PointerTags
Pointer tag values.
Definition gmNanBoxedValue.h:46
@ UserFunction
Stored pointer is a GmUserFunction*.
Definition gmNanBoxedValue.h:47
@ FunctionEvaluator
Stored pointer is a GmUserFunctionEvaluator*.
Definition gmNanBoxedValue.h:48
bool isUserFunctionEvaluator() const
Is this a User function evaluator pointer value?
Definition gmNanBoxedValue.h:67
GmNanBoxedValue(double value)
Constructor for storing a double value. Value is always normalized.
Definition gmNanBoxedValue.h:55
GmNanBoxedValue(GmUserFunctionEvaluator *ptr)
Constructor for storing a User function evaluator pointer.
Definition gmNanBoxedValue.h:61
GmUserFunctionEvaluator * toUserFunctionEvaluator() const
Returns the stored value as a GmUserFunctionEvaluator*.
Definition gmNanBoxedValue.h:73
bool isUserFunction() const
Is this a User function pointer value?
Definition gmNanBoxedValue.h:64
GmNanBoxedValue(GmUserFunction *ptr)
Constructor for storing a User function pointer.
Definition gmNanBoxedValue.h:58
GmNanBoxedValue()
Default constructor: a zero double value.
Definition gmNanBoxedValue.h:52
GmUserFunction * toUserFunction() const
Returns the stored value as a GmUserFunction*.
Definition gmNanBoxedValue.h:70
Class responsible for evaluating a UserFunction over a node / cell.
Definition gmUserFunction.h:160
Class used to store the definition of a user function and its parameters.
Definition gmUserFunction.h:82
Declaration of useful configuration definitions for the Core library.