![]() |
Zen
A cross-platform functional programming language
|
RunContext class. More...
#include <zrt.hpp>
Public Member Functions | |
| RunContext (Engine &engine) | |
| Default constructor. | |
| zbl::Engine & | getEngine () |
| Get reference to engine instance. | |
| void | append (Continuation *continuation) |
| Append continuation to current stack. | |
| bool | hasContinuation () |
| Check if run context has any continuations. | |
| void | getContinuation (zbl::Continuation::Ptr &continuation) |
| Get top-most continuation from stack. | |
Private Member Functions | |
| RunContext (const RunContext &src) | |
| Copy constructor. | |
Private Attributes | |
| Engine & | _engine |
| Reference to engine object. | |
| ContinuationList | _list |
| Continuation stack. | |
RunContext class.
| RunContext | ( | const RunContext & | src | ) | [inline, private] |
Copy constructor.
| src | Source instance |
| void append | ( | Continuation * | continuation | ) | [inline] |
Append continuation to current stack.
| continuation | The continuation to append |
| void getContinuation | ( | zbl::Continuation::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.