32 #ifndef _QORE_INTERN_WEAKREFERENCENODE_H
34 #define _QORE_INTERN_WEAKREFERENCENODE_H
42 DLLLOCAL WeakReferenceNode(
const WeakReferenceNode& old) :
AbstractQoreNode(old), obj(old.obj) {
68 DLLLOCAL
virtual ~WeakReferenceNode() =
default;
76 DLLLOCAL
virtual bool getAsBoolImpl()
const {
89 return new WeakReferenceNode(*
this);
100 DLLLOCAL
virtual const char* getTypeName()
const {
101 return "weak reference";
The base class for all value and parse types in Qore expression trees.
Definition: AbstractQoreNode.h:57
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:48
the implementation of Qore's object data type, reference counted, dynamically-allocated only
Definition: QoreObject.h:60
DLLEXPORT void tRef() const
increments the existence reference count
DLLEXPORT void tDeref()
decrements the existence reference count, when it reaches 0 the C++ object ("this") will be deleted
virtual DLLEXPORT int getAsString(QoreString &str, int foff, ExceptionSink *xsink) const
concatenate the verbose string representation of the list (including all contained values) to an exis...
virtual DLLEXPORT bool is_equal_hard(const AbstractQoreNode *v, ExceptionSink *xsink) const
tests for equality ("deep compare" including all contained values) without type conversions (hard com...
virtual DLLEXPORT bool is_equal_soft(const AbstractQoreNode *v, ExceptionSink *xsink) const
tests for equality ("deep compare" including all contained values) with possible type conversion (sof...
virtual DLLEXPORT bool getAsBoolImpl() const
returns false unless perl-boolean-evaluation is enabled, in which case it returns false only when emp...
Qore's string type supported by the QoreEncoding class.
Definition: QoreString.h:93
const qore_type_t NT_WEAKREF
type value for WeakReferenceNode
Definition: node_types.h:87
The main value class in Qore, designed to be passed by value.
Definition: QoreValue.h:275