Zen
A cross-platform functional programming language

RunContextT< ReturnT > Class Template Reference

Base class for run contexts. More...

#include <ztl.hpp>

List of all members.

Public Member Functions

 RunContextT (zbl::Engine &engine)
 Default constructor.
ContinuationT< ReturnT > & append (ContinuationT< ReturnT > *continuation)
 Append continuation to current stack.
zbl::EnginegetEngine ()
 Get reference to engine instance.
bool hasContinuation ()
 Check if run context has any continuations.
void getContinuation (typename ztl::ContinuationT< ReturnT >::Ptr &continuation)
 Get top-most continuation from stack.

Private Attributes

zbl::Engine_engine
 Reference to engine object.
ztl::ContinuationListT< ReturnT > _continuationList
 Continuation stack.

Detailed Description

template<typename ReturnT>
class ztl::RunContextT< ReturnT >

Base class for run contexts.


Member Function Documentation

ContinuationT<ReturnT>& append ( ContinuationT< ReturnT > *  continuation) [inline]

Append continuation to current stack.

Parameters:
continuationThe continuation to append
Returns:
Reference to appended continuation
void getContinuation ( typename ztl::ContinuationT< ReturnT >::Ptr &  continuation) [inline]

Get top-most continuation from stack.

Parameters:
continuationThe autoptr to receive continuation
zbl::Engine& getEngine ( ) [inline]

Get reference to engine instance.

Returns:
Reference to engine list
bool hasContinuation ( ) [inline]

Check if run context has any continuations.

Returns:
True if continuations present, else false

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