24 #ifndef _QORE_QOREFLOATNODE_H
26 #define _QORE_QOREFLOATNODE_H
35 DLLLOCAL
virtual bool getAsBoolImpl()
const;
38 DLLLOCAL
virtual int getAsIntImpl()
const;
41 DLLLOCAL
virtual int64 getAsBigIntImpl()
const;
44 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:159
Qore's floating-point value type, dynamically-allocated only, reference counted.
Definition: QoreFloatNode.h:32
virtual DLLEXPORT const char * getTypeName() const
returns the type name as a c string
double f
the value of the type
Definition: QoreFloatNode.h:55
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:85
static DLLLOCAL qore_type_t getStaticTypeCode()
returns the type code (useful in templates)
Definition: QoreFloatNode.h:154
The base class for all value and parse types in Qore expression trees.
Definition: AbstractQoreNode.h:47
virtual DLLEXPORT bool is_equal_hard(const AbstractQoreNode *v, ExceptionSink *xsink) const
tests for equality without type conversions (hard compare)
signed short qore_type_t
used to identify unique Qore data and parse types (descendents of AbstractQoreNode) ...
Definition: common.h:59
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:42
static DLLLOCAL const char * getStaticTypeName()
returns the type name (useful in templates)
Definition: QoreFloatNode.h:149
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:35
const qore_type_t NT_FLOAT
type value for QoreFloatNode
Definition: node_types.h:36
base class for simple value types
Definition: AbstractQoreNode.h:417
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