Zen
A cross-platform functional programming language
|
Holds a function or functor call. More...
#include <Ast.hpp>
Classes | |
class | Visitor |
InvokerType Visitor interface class. More... | |
Public Member Functions | |
const FunctionDef & | getFunctionDef () const |
Returns the FunctionDef of the function being called. | |
virtual void | visit (Visitor &visitor) const =0 |
Abstract visitor function. | |
Protected Member Functions | |
InvokerType (const FunctionDef &functionDef) | |
Default constructor. | |
Private Attributes | |
const FunctionDef & | _functionDef |
Reference to the FunctionDef being invoked. |
Holds a function or functor call.
InvokerType is the base class for the different types of invocations For example:
InvokerType | ( | const FunctionDef & | functionDef | ) | [inline, protected] |
Default constructor.
functionDef | AST node of function definition to be invoked. |
const FunctionDef& getFunctionDef | ( | ) | const [inline] |
Returns the FunctionDef of the function being called.
virtual void visit | ( | Visitor & | visitor | ) | const [pure virtual] |
Abstract visitor function.
visitor | The visitor object. |
Implemented in FunctionCall, FunctorCall, FunctionDefCall, and FunctionImplCall.