24 #ifndef _QORE_QORETYPESAFEREFERENCEHELPER_H
26 #define _QORE_QORETYPESAFEREFERENCEHELPER_H
55 DLLLOCAL QoreTypeSafeReferenceHelper& operator=(
const QoreTypeSafeReferenceHelper&);
58 DLLLOCAL
void *
operator new(size_t);
61 struct qore_type_safe_ref_helper_priv_t *priv;
85 DLLEXPORT
operator bool()
const;
167 DLLEXPORT
void swap(QoreTypeSafeReferenceHelper &other);
170 #ifndef _QORE_LIB_INTERN
AutoVLock is a container for safely managing global variable and object lock handovers, required for functions accessing global variables and object data where locking is necessary.
Definition: AutoVLock.h:72
DLLEXPORT void swap(QoreTypeSafeReferenceHelper &other)
swaps the values of two references
The base class for all value and parse types in Qore expression trees.
Definition: AbstractQoreNode.h:47
DLLEXPORT qore_type_t getType() const
returns the type of the reference's value
DLLEXPORT int assign(AbstractQoreNode *val)
assigns a value to the reference, assumes the reference is valid
signed short qore_type_t
used to identify unique Qore data and parse types (descendents of AbstractQoreNode) ...
Definition: common.h:59
DLLEXPORT AbstractQoreNode * getUnique(ExceptionSink *xsink)
returns a pointer to the value with a unique reference count (so it can be updated in place)...
DLLEXPORT ~QoreTypeSafeReferenceHelper()
destroys the object
parse type: reference to a lvalue expression
Definition: ReferenceNode.h:37
DLLEXPORT int assignBigInt(int64 v)
assigns an integer value to the reference
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:35
helper class to manage variable references passed to functions and class methods, stack only...
Definition: QoreTypeSafeReferenceHelper.h:49
DLLEXPORT int assignFloat(double v)
assigns an integer value to the reference
DLLEXPORT const char * getTypeName() const
returns the type name of the reference's value
DLLEXPORT const AbstractQoreNode * getValue() const
returns a constant pointer to the reference's value