24 #ifndef _QORE_QORENULLNODE_H
26 #define _QORE_QORENULLNODE_H
28 #include <qore/AbstractQoreNode.h>
45 DLLLOCAL
virtual bool getAsBoolImpl()
const;
48 DLLLOCAL
virtual int getAsIntImpl()
const;
51 DLLLOCAL
virtual int64 getAsBigIntImpl()
const;
54 DLLLOCAL
virtual double getAsFloatImpl()
const;
66 DLLEXPORT
virtual ~QoreNullNode();
virtual DLLEXPORT bool is_equal_hard(const AbstractQoreNode *v, ExceptionSink *xsink) const
tests for equality without type conversions (hard compare)
virtual DLLEXPORT bool is_equal_soft(const AbstractQoreNode *v, ExceptionSink *xsink) const
tests for equality with possible type conversion (soft compare)
virtual DLLEXPORT const char * getTypeName() const
returns the type name as a c string
static DLLLOCAL qore_type_t getStaticTypeCode()
returns the type code (useful in templates)
Definition: QoreNullNode.h:113
DLLLOCAL AbstractQoreNode * evalImpl(class ExceptionSink *xsink) const
should never be called for value types
DLLEXPORT QoreNullNode Null
the global and unique NULL value in Qore
static bool is_null(const AbstractQoreNode *n)
use this function to test for NULL
Definition: QoreNullNode.h:119
static DLLLOCAL const char * getStaticTypeName()
returns the type name (useful in templates)
Definition: QoreNullNode.h:108
The base class for all value and parse types in Qore expression trees.
Definition: AbstractQoreNode.h:47
static QoreNullNode * null()
returns a pointer to Null
Definition: QoreNullNode.h:129
const qore_type_t NT_NULL
type value for QoreNullNode
Definition: node_types.h:40
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 AbstractQoreNode * evalImpl(ExceptionSink *xsink) const
should never be called for value types
virtual DLLLOCAL AbstractQoreNode * parseInit(LocalVar *oflag, int pflag, int &lvids, const QoreTypeInfo *&typeInfo)
returns the type information
this class is for value types that will exists only once in the Qore library, reference counting is d...
Definition: AbstractQoreNode.h:461
Qore's SQL "NULL" parse tree/value type, not-referenced counted, not dynamically allocated.
Definition: QoreNullNode.h:42
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:35
DLLLOCAL qore_type_t getType() const
returns the data type
Definition: AbstractQoreNode.h:286
virtual DLLEXPORT int getAsString(QoreString &str, int foff, class ExceptionSink *xsink) const
concatenate "<NULL>" to an existing QoreString