![]() |
GemaCoreLib
The GeMA Core library
|
A wrapper class around QtNanBoxedValue providing specific constructors to store user functions / user function evaluators together with double values. More...
#include <gmNanBoxedValue.h>
Public Types | |
enum | PointerTags { UserFunction = 0, FunctionEvaluator = 1 } |
Pointer tag values. More... | |
Public Member Functions | |
GmNanBoxedValue () | |
Default constructor: a zero double value. | |
GmNanBoxedValue (double value) | |
Constructor for storing a double value. | |
GmNanBoxedValue (GmUserFunction *ptr) | |
Constructor for storing a User function pointer. | |
GmNanBoxedValue (GmUserFunctionEvaluator *ptr) | |
Constructor for storing a User function evaluator pointer. | |
bool | isUserFunction () const |
Is this a User function pointer value? | |
bool | isUserFunctionEvaluator () const |
Is this a User function evaluator pointer value? | |
GmUserFunction * | toUserFunction () const |
Returns the stored value as a GmUserFunction*. | |
GmUserFunctionEvaluator * | toUserFunctionEvaluator () const |
Returns the stored value as a GmUserFunctionEvaluator*. | |
A wrapper class around QtNanBoxedValue providing specific constructors to store user functions / user function evaluators together with double values.
IMPORTANT: Please make sure to read the base class comments. Using a NAN box without understanding the implied structure is a fast track to disaster...