|
Qore Programming Language
0.9.16
|
32 #ifndef _QORE_FUNCTIONREFERENCENODE_H
34 #define _QORE_FUNCTIONREFERENCENODE_H
97 DLLLOCAL
static const char* getStaticTypeName() {
98 return "call reference";
149 DLLEXPORT
virtual void parseInit(
QoreValue& val, LocalVar *oflag,
int pflag,
int &lvids,
150 const QoreTypeInfo *&returnTypeInfo);
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 di...
DLLLOCAL ResolvedCallReferenceNode * refRefSelf() const
references itself and returns this
Definition: CallReferenceNode.h:134
virtual DLLLOCAL int getAsString(QoreString &str, int foff, ExceptionSink *xsink) const
concatenate the verbose string representation of the value to an existing QoreString
virtual DLLEXPORT bool is_equal_soft(const AbstractQoreNode *v, ExceptionSink *xsink) const
returns true if the other node is the same value
supports parsing and executing Qore-language code, reference counted, dynamically-allocated only
Definition: QoreProgram.h:126
The main value class in Qore, designed to be passed by value.
Definition: QoreValue.h:262
virtual const DLLLOCAL char * getTypeName() const
returns the type name as a c string
This is the list container type in Qore, dynamically allocated only, reference counted.
Definition: QoreListNode.h:52
const qore_type_t NT_FUNCREF
type value for AbstractCallReferenceNode
Definition: node_types.h:68
virtual DLLEXPORT void parseInit(QoreValue &val, LocalVar *oflag, int pflag, int &lvids, const QoreTypeInfo *&returnTypeInfo)
for use by parse types to initialize them for execution during stage 1 parsing; not exported in the l...
virtual DLLEXPORT bool getAsBoolImpl() const
returns false unless perl-boolean-evaluation is enabled, in which case it returns true
virtual DLLEXPORT AbstractQoreNode * realCopy() const
returns this with the ref count inmcremented; not a real copy
Qore's string type supported by the QoreEncoding class.
Definition: QoreString.h:81
virtual DLLEXPORT QoreValue evalImpl(bool &needs_deref, ExceptionSink *xsink) const
this function should never be called for function references; this function should never be called di...
DLLEXPORT ResolvedCallReferenceNode()
public exported constructor function
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:48
virtual DLLEXPORT ~ResolvedCallReferenceNode()
public destructor function
virtual DLLEXPORT QoreProgram * getProgram() const
returns a pointer to the QoreProgram object associated with this reference (can be nullptr)
virtual DLLLOCAL QoreValue execValue(const QoreListNode *args, ExceptionSink *xsink) const =0
pure virtual function for executing the function reference
virtual DLLLOCAL QoreFunction * getFunction()=0
Returns the internal function object, if any; can return nullptr.
DLLEXPORT void ref() const
increments the reference count
virtual DLLEXPORT bool is_equal_hard(const AbstractQoreNode *v, ExceptionSink *xsink) const
returns true if the other node is the same value
base class for resolved call references
Definition: CallReferenceNode.h:105
The base class for all value and parse types in Qore expression trees.
Definition: AbstractQoreNode.h:54
int16_t qore_type_t
used to identify unique Qore data and parse types (descendents of AbstractQoreNode)
Definition: common.h:70
base class for call references, reference-counted, dynamically allocated only
Definition: CallReferenceNode.h:39
DLLLOCAL AbstractCallReferenceNode(bool n_needs_eval, bool n_there_can_be_only_one, qore_type_t n_type=NT_FUNCREF)
protected constructor for subclasses that are not reference-counted