32 #ifndef _QORE_QOREFLOATNODE_H
34 #define _QORE_QOREFLOATNODE_H
43 DLLLOCAL
virtual bool getAsBoolImpl()
const;
46 DLLLOCAL
virtual int getAsIntImpl()
const;
49 DLLLOCAL
virtual int64 getAsBigIntImpl()
const;
52 DLLLOCAL
virtual double getAsFloatImpl()
const;
virtual DLLEXPORT class DateTime * getDateTimeRepresentation(bool &del) const
returns the DateTime representation of this value and sets del to true
virtual DLLEXPORT ~QoreFloatNode()
the destructor is protected because it should not be called directly
virtual DLLEXPORT int getAsString(QoreString &str, int foff, class ExceptionSink *xsink) const
concatenate the string representation of the floating-point value to an existing QoreString ...
DLLEXPORT QoreFloatNode()
creates a new floating-point value and assigns 0.0 to it
static DLLLOCAL double getValue(AbstractQoreNode *v)
returns the value of the argument (useful in templates)
Definition: QoreFloatNode.h:169
Qore's floating-point value type, dynamically-allocated only, reference counted.
Definition: QoreFloatNode.h:40
virtual DLLEXPORT const char * getTypeName() const
returns the type name as a c string
double f
the value of the type
Definition: QoreFloatNode.h:63
DLLEXPORT double getAsFloat() const
returns the float value of the object
Holds absolute and relative date/time values in Qore with precision to the microsecond.
Definition: DateTime.h:93
static DLLLOCAL qore_type_t getStaticTypeCode()
returns the type code (useful in templates)
Definition: QoreFloatNode.h:162
The base class for all value and parse types in Qore expression trees.
Definition: AbstractQoreNode.h:55
virtual DLLEXPORT bool is_equal_hard(const AbstractQoreNode *v, ExceptionSink *xsink) const
tests for equality without type conversions (hard compare)
virtual DLLLOCAL AbstractQoreNode * parseInit(LocalVar *oflag, int pflag, int &lvids, const QoreTypeInfo *&typeInfo)
returns the type information
Qore's string type supported by the QoreEncoding class.
Definition: QoreString.h:82
static DLLLOCAL const char * getStaticTypeName()
returns the type name (useful in templates)
Definition: QoreFloatNode.h:157
virtual DLLEXPORT class AbstractQoreNode * realCopy() const
returns a copy of the object; the caller owns the reference count
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:43
const qore_type_t NT_FLOAT
type value for QoreFloatNode
Definition: node_types.h:44
long long int64
64bit integer type, cannot use int64_t here since it breaks the API on some 64-bit systems due to equ...
Definition: common.h:228
int16_t qore_type_t
used to identify unique Qore data and parse types (descendents of AbstractQoreNode) ...
Definition: common.h:68
base class for simple value types
Definition: AbstractQoreNode.h:435
virtual DLLEXPORT bool is_equal_soft(const AbstractQoreNode *v, ExceptionSink *xsink) const
tests for equality with possible type conversion (soft compare)
virtual DLLEXPORT QoreString * getStringRepresentation(bool &del) const
returns the floating-point value converted to a string and sets del to true