Zen
A cross-platform functional programming language

InvokerType Class Reference

Holds a function or functor call. More...

#include <Ast.hpp>

Inheritance diagram for InvokerType:
Node FunctionCall FunctionDefCall FunctionImplCall FunctorCall

List of all members.

Classes

class  Visitor
 InvokerType Visitor interface class. More...

Public Member Functions

const FunctionDefgetFunctionDef () 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.

Detailed Description

Holds a function or functor call.

InvokerType is the base class for the different types of invocations For example:

  • Invoking a function call
  • Invoking the functor object

Constructor & Destructor Documentation

InvokerType ( const FunctionDef functionDef) [inline, protected]

Default constructor.

Parameters:
functionDefAST node of function definition to be invoked.

Member Function Documentation

const FunctionDef& getFunctionDef ( ) const [inline]

Returns the FunctionDef of the function being called.

Returns:
The function definition node.
virtual void visit ( Visitor visitor) const [pure virtual]

Abstract visitor function.

Parameters:
visitorThe visitor object.

Implemented in FunctionCall, FunctorCall, FunctionDefCall, and FunctionImplCall.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines