Zen
A cross-platform functional programming language

RunContext Class Reference

RunContext class. More...

#include <zrt.hpp>

List of all members.

Public Member Functions

 RunContext (Engine &engine)
 Default constructor.
zbl::EnginegetEngine ()
 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.

Detailed Description

RunContext class.


Constructor & Destructor Documentation

RunContext ( const RunContext src) [inline, private]

Copy constructor.

Parameters:
srcSource instance

Member Function Documentation

void append ( Continuation continuation) [inline]

Append continuation to current stack.

Parameters:
continuationThe continuation to append
void getContinuation ( zbl::Continuation::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