32 #ifndef _QORE_BIGINTNODE_H 34 #define _QORE_BIGINTNODE_H 36 #include <qore/AbstractQoreNode.h> 44 DLLLOCAL
virtual bool getAsBoolImpl()
const;
47 DLLLOCAL
virtual int getAsIntImpl()
const;
50 DLLLOCAL
virtual int64 getAsBigIntImpl()
const;
53 DLLLOCAL
virtual double getAsFloatImpl()
const;
static DLLLOCAL const char * getStaticTypeName()
returns the type code (useful in templates)
Definition: QoreBigIntNode.h:142
virtual DLLEXPORT QoreString * getStringRepresentation(bool &del) const
returns a string representing the integer and sets del to true
static DLLLOCAL int64 getValue(AbstractQoreNode *v)
returns the integer value (useful in templates)
Definition: QoreBigIntNode.h:154
Holds absolute and relative date/time values in Qore with precision to the microsecond.
Definition: DateTime.h:93
The base class for all value and parse types in Qore expression trees.
Definition: AbstractQoreNode.h:54
virtual DLLEXPORT int getAsString(QoreString &str, int foff, ExceptionSink *xsink) const
concatenates the value of the integer to an existing QoreString
virtual DLLEXPORT AbstractQoreNode * realCopy() const
returns a copy of the object; the caller owns the reference count
virtual DLLEXPORT const char * getTypeName() const
returns the type name as a c string
virtual DLLEXPORT 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 qore_type_t getStaticTypeCode()
returns the type code (useful in templates)
Definition: QoreBigIntNode.h:147
DLLEXPORT int64 getAsBigInt() const
returns the 64-bit integer value of the object
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:47
const qore_type_t NT_INT
type value for QoreBigIntNode
Definition: node_types.h:43
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:241
virtual DLLEXPORT bool is_equal_hard(const AbstractQoreNode *v, ExceptionSink *xsink) const
tests for equality without the possibility of type conversion (hard compare)
int16_t qore_type_t
used to identify unique Qore data and parse types (descendents of AbstractQoreNode) ...
Definition: common.h:71
int64 val
value of the integer
Definition: QoreBigIntNode.h:63
base class for simple value types
Definition: AbstractQoreNode.h:434
virtual DLLEXPORT bool is_equal_soft(const AbstractQoreNode *v, ExceptionSink *xsink) const
tests for equality with the possibility of type conversion (soft compare)
this class implements Qore's 64-bit integer data type, reference-counted, dynamically-allocated only ...
Definition: QoreBigIntNode.h:41
virtual DLLEXPORT DateTime * getDateTimeRepresentation(bool &del) const
returns the DateTime representation of this integer (interpreted as an offset in seconds from January...