Zen
A cross-platform functional programming language

Closure Class Reference

Base class for closures. More...

#include <zrt.hpp>

Inheritance diagram for Closure:
ClosureT< int > ClosureT< T::Return > ClosureT< ReturnT > LoopClosureT SharedClosureT ReturnClosureT< int > FunctionCallClosureT< T::Return > FunctionCallClosureT< ReturnT > ReturnClosureT< ReturnT > TestFactoryT< T, ImplT >::TcontinuationT::_C_rtn TestFactoryT< T, ImplT >::TcontinuationT::_C_test

List of all members.

Classes

struct  Action
 Enumeration of actions to be taken after running the closure. More...

Public Member Functions

virtual RunnergetRunner ()=0
 Get reference to closure's runner.
virtual Action::T runClosureWithCtx (zbl::RunContext &_ctx)=0
 Run the closure.

Protected Member Functions

 Closure ()
 Default constructor.

Detailed Description

Base class for closures.


Member Function Documentation

virtual Runner& getRunner ( ) [pure virtual]

Get reference to closure's runner.

Returns:
Reference to closure's runner

Implemented in TestFactoryT< T, ImplT >::TcontinuationT::_C_test, and TestFactoryT< T, ImplT >::TcontinuationT::_C_rtn.

virtual Action::T runClosureWithCtx ( zbl::RunContext _ctx) [pure virtual]

Run the closure.

Parameters:
_ctxThe RunContext for this invocation
Returns:
Value specifying what to do next with the continuation

Implemented in TestFactoryT< T, ImplT >::TcontinuationT::_C_test, and TestFactoryT< T, ImplT >::TcontinuationT::_C_rtn.


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