Qore Programming Language
0.8.12
|
For use on the stack only: manages result of the optional evaluation of a QoreValueList. More...
#include <QoreValueList.h>
Public Member Functions | |
DLLLOCAL | QoreValueListEvalOptionalRefHolder (ExceptionSink *n_xsink) |
initializes an empty object and saves the ExceptionSink object | |
DLLLOCAL | QoreValueListEvalOptionalRefHolder (const QoreValueList *exp, ExceptionSink *n_xsink) |
performs an optional evaluation of the list (sets the dereference flag) | |
DLLLOCAL | ~QoreValueListEvalOptionalRefHolder () |
clears the object (dereferences the old object if necessary) | |
DLLLOCAL void | assign (bool n_needs_deref, QoreValueList *n_val) |
assigns a new value and dereference flag to this object, dereferences the old object if necessary | |
DLLLOCAL void | assignEval (const QoreValueList *exp) |
assigns a new value by executing the given list and dereference flag to this object, dereferences the old object if necessary | |
DLLLOCAL void | discard () |
clears the object (dereferences the old object if necessary) | |
DLLLOCAL void | edit () |
will create a unique list so the list can be edited | |
DLLLOCAL QoreValueList * | getReferencedValue () |
returns a referenced value - the caller will own the reference More... | |
DLLLOCAL bool | needsDeref () const |
returns true if the object contains a temporary (evaluated) value that needs a dereference | |
DLLLOCAL | operator bool () const |
returns true if a QoreValueList object pointer is being managed, false if the pointer is 0 | |
DLLLOCAL const QoreValueList * | operator* () const |
returns a pointer to the QoreValueList object being managed | |
DLLLOCAL const QoreValueList * | operator-> () const |
returns a pointer to the QoreValueList object being managed More... | |
For use on the stack only: manages result of the optional evaluation of a QoreValueList.
|
inline |
returns a referenced value - the caller will own the reference
The list is referenced if necessary (if it was a temporary value)
References AbstractQoreNode::ref().
|
inline |
returns a pointer to the QoreValueList object being managed
if you need a referenced value, use getReferencedValue()