Zen
A cross-platform functional programming language
|
Base class for run contexts. More...
#include <ztl.hpp>
Public Member Functions | |
RunContextT (zbl::Engine &engine) | |
Default constructor. | |
ContinuationT< ReturnT > & | append (ContinuationT< ReturnT > *continuation) |
Append continuation to current stack. | |
zbl::Engine & | getEngine () |
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. |
Base class for run contexts.
ContinuationT<ReturnT>& append | ( | ContinuationT< ReturnT > * | continuation | ) | [inline] |
Append continuation to current stack.
continuation | The continuation to append |
void getContinuation | ( | typename ztl::ContinuationT< ReturnT >::Ptr & | continuation | ) | [inline] |
Get top-most continuation from stack.
continuation | The autoptr to receive continuation |
zbl::Engine& getEngine | ( | ) | [inline] |
Get reference to engine instance.
bool hasContinuation | ( | ) | [inline] |
Check if run context has any continuations.