Qore Programming Language  0.9.0
LocalFunctionCallReferenceNode Class Reference

a call reference to a user function from within the same QoreProgram object More...

#include <CallReferenceNode.h>

Inheritance diagram for LocalFunctionCallReferenceNode:

Public Member Methods

virtual DLLLOCAL QoreValue execValue (const QoreListNode *args, ExceptionSink *xsink) const
 pure virtual function for executing the function reference More...
 
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 QoreValue evalImpl (bool &needs_deref, ExceptionSink *xsink) const
 this function should never be called for function references; this function should never be called directly More...
 

Detailed Description

a call reference to a user function from within the same QoreProgram object

Member Function Documentation

◆ evalImpl()

virtual DLLLOCAL QoreValue LocalFunctionCallReferenceNode::evalImpl ( bool &  needs_deref,
ExceptionSink xsink 
) const
privatevirtual

this function should never be called for function references; this function should never be called directly

in debug mode this function calls assert(false)

Reimplemented from ResolvedCallReferenceNode.

◆ execValue()

virtual DLLLOCAL QoreValue LocalFunctionCallReferenceNode::execValue ( const QoreListNode args,
ExceptionSink xsink 
) const
virtual

pure virtual function for executing the function reference

executes the function reference and returns the value returned

Parameters
argsthe arguments to the function
xsinkany Qore-language exception thrown (and not handled) will be added here
Returns
a pointer to an AbstractQoreNode, the caller owns the reference count returned (can also be nullptr)

Implements ResolvedCallReferenceNode.

Reimplemented in FunctionCallReferenceNode.


The documentation for this class was generated from the following file: