24 #ifndef _QORE_QOREBOOLNODE_H
26 #define _QORE_QOREBOOLNODE_H
28 #include <qore/AbstractQoreNode.h>
40 DLLLOCAL
virtual bool getAsBoolImpl()
const;
43 DLLLOCAL
virtual int getAsIntImpl()
const;
46 DLLLOCAL
virtual int64 getAsBigIntImpl()
const;
49 DLLLOCAL
virtual double getAsFloatImpl()
const;
virtual DLLEXPORT bool is_equal_hard(const AbstractQoreNode *v, ExceptionSink *xsink) const
tests for equality ("deep compare" including all contained values for container types) without type c...
DLLEXPORT QoreBoolFalseNode False
Qore's boolean false value.
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
static DLLLOCAL const char * getStaticTypeName()
returns the type name (useful in templates)
Definition: QoreBoolNode.h:100
Qore's boolean "true" node, unique, not dynamically-allocated, not reference-counted.
Definition: QoreBoolNode.h:119
bool b
boolean value for the object
Definition: QoreBoolNode.h:53
virtual DLLEXPORT int getAsString(QoreString &str, int foff, class ExceptionSink *xsink) const
concatenate the verbose string representation of the value (including all contained values for contai...
DLLLOCAL QoreBoolNode(bool n_b)
the constructor can only be called by a subclass
signed short qore_type_t
used to identify unique Qore data and parse types (descendents of AbstractQoreNode) ...
Definition: common.h:59
static QoreBoolNode * get_bool_node(bool v)
a little inline helper function for getting a boolean node
Definition: QoreBoolNode.h:140
base class for Qore's 2 boolean classes: QoreBoolTrueNode and QoreBoolFalseNode
Definition: QoreBoolNode.h:37
Qore's string type supported by the QoreEncoding class.
Definition: QoreString.h:42
DLLEXPORT QoreBoolTrueNode True
Qore's boolean true value.
this class is for value types that will exists only once in the Qore library, reference counting is d...
Definition: AbstractQoreNode.h:461
virtual DLLEXPORT const char * getTypeName() const
returns the type name as a c string
DLLLOCAL bool getValue() const
returns the boolean value of the object
Definition: QoreBoolNode.h:95
virtual DLLEXPORT DateTime * getDateTimeRepresentation(bool &del) const
returns the DateTime representation of this type (default implementation: returns ZeroDate...
Qore's boolean "false" node, unique, not dynamically-allocated, not reference-counted.
Definition: QoreBoolNode.h:128
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:35
virtual DLLLOCAL AbstractQoreNode * parseInit(LocalVar *oflag, int pflag, int &lvids, const QoreTypeInfo *&typeInfo)
returns the type information
virtual DLLEXPORT bool is_equal_soft(const AbstractQoreNode *v, ExceptionSink *xsink) const
tests for equality ("deep compare" including all contained values for container types) with possible ...
const qore_type_t NT_BOOLEAN
type value for QoreBoolNode
Definition: node_types.h:39
static DLLLOCAL bool getValue(QoreBoolNode *v)
returns the value of the argument (useful in templates)
Definition: QoreBoolNode.h:110
static DLLLOCAL qore_type_t getStaticTypeCode()
returns the type code (useful in templates)
Definition: QoreBoolNode.h:105
virtual DLLEXPORT QoreString * getStringRepresentation(bool &del) const
returns the value of the type converted to a string, default implementation: returns the empty string...