![]() |
Qore Programming Language 2.0.0
|
a call reference to a user function More...
#include <CallReferenceNode.h>
Public Member Methods | |
virtual DLLLOCAL QoreValue | execValue (const QoreListNode *args, ExceptionSink *xsink) const |
pure virtual function for executing the function reference | |
![]() | |
virtual DLLLOCAL QoreFunction * | getFunction () |
Returns the internal function object, if any; can return nullptr. | |
virtual DLLLOCAL bool | is_equal_hard (const AbstractQoreNode *v, ExceptionSink *xsink) const |
returns true if the other node is the same value | |
virtual DLLLOCAL bool | is_equal_soft (const AbstractQoreNode *v, ExceptionSink *xsink) const |
returns true if the other node is the same value | |
Private Member Methods | |
virtual DLLLOCAL bool | derefImpl (ExceptionSink *xsink) |
Called when the strong reference count reaches zero. | |
![]() | |
virtual DLLLOCAL QoreValue | evalImpl (bool &needs_deref, ExceptionSink *xsink) const |
this function should never be called for function references; this function should never be called directly | |
a call reference to a user function
|
privatevirtual |
Called when the strong reference count reaches zero.
This function must free all memory owned by the object; the weak reference count is decremented, and if it reaches zero, the object is deleted
xsink | if an error occurs, the Qore-language exception information will be added here |
Reimplemented from ResolvedCallReferenceNode.
|
virtual |
pure virtual function for executing the function reference
executes the function reference and returns the value returned
args | the arguments to the function |
xsink | any Qore-language exception thrown (and not handled) will be added here |
Reimplemented from LocalFunctionCallReferenceNode.