24 #ifndef _QORE_BIGINTNODE_H
26 #define _QORE_BIGINTNODE_H
28 #include <qore/AbstractQoreNode.h>
36 DLLLOCAL
virtual bool getAsBoolImpl()
const;
39 DLLLOCAL
virtual int getAsIntImpl()
const;
42 DLLLOCAL
virtual int64 getAsBigIntImpl()
const;
45 DLLLOCAL
virtual double getAsFloatImpl()
const;
virtual DLLEXPORT bool is_equal_soft(const AbstractQoreNode *v, ExceptionSink *xsink) const
tests for equality with the possibility of type conversion (soft compare)
virtual DLLEXPORT int getAsString(QoreString &str, int foff, ExceptionSink *xsink) const
concatenates the value of the integer to an existing QoreString
virtual DLLEXPORT DateTime * getDateTimeRepresentation(bool &del) const
returns the DateTime representation of this integer (interpreted as an offset in seconds from January...
static DLLLOCAL const char * getStaticTypeName()
returns the type code (useful in templates)
Definition: QoreBigIntNode.h:134
static DLLLOCAL int64 getValue(AbstractQoreNode *v)
returns the integer value (useful in templates)
Definition: QoreBigIntNode.h:144
virtual DLLEXPORT bool is_equal_hard(const AbstractQoreNode *v, ExceptionSink *xsink) const
tests for equality without the possibility of type conversion (hard compare)
Holds absolute and relative date/time values in Qore with precision to the microsecond.
Definition: DateTime.h:85
The base class for all value and parse types in Qore expression trees.
Definition: AbstractQoreNode.h:47
virtual DLLEXPORT AbstractQoreNode * parseInit(LocalVar *oflag, int pflag, int &lvids, const QoreTypeInfo *&typeInfo)
returns the type information
DLLEXPORT int64 getAsBigInt() const
returns the 64-bit integer value of the object
signed short qore_type_t
used to identify unique Qore data and parse types (descendents of AbstractQoreNode) ...
Definition: common.h:59
Qore's string type supported by the QoreEncoding class.
Definition: QoreString.h:42
virtual DLLEXPORT const char * getTypeName() const
returns the type name as a c string
virtual DLLEXPORT QoreString * getStringRepresentation(bool &del) const
returns a string representing the integer and sets del to true
static DLLLOCAL qore_type_t getStaticTypeCode()
returns the type code (useful in templates)
Definition: QoreBigIntNode.h:139
DLLEXPORT QoreBigIntNode()
creates a new integer with the value 0
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:35
const qore_type_t NT_INT
type value for QoreBigIntNode
Definition: node_types.h:35
virtual DLLEXPORT AbstractQoreNode * realCopy() const
returns a copy of the object; the caller owns the reference count
int64 val
value of the integer
Definition: QoreBigIntNode.h:55
base class for simple value types
Definition: AbstractQoreNode.h:417
this class implements Qore's 64-bit integer data type, reference-counted, dynamically-allocated only ...
Definition: QoreBigIntNode.h:33