Zen
A cross-platform functional programming language
|
Base class for continuations. More...
#include <ztl.hpp>
Public Types | |
typedef z::scopedptr < ContinuationT > | Ptr |
Scoped pointer type for continuations. | |
Public Member Functions | |
void | setParent (ClosureT< ReturnT > &parent) |
Set parent closure. | |
ContinuationT< ReturnT > * | cloneT () const |
Create clone of continuation. | |
void | setReturn (const ReturnT &val) |
Set return value of parent closure. | |
Protected Member Functions | |
ContinuationT () | |
Default constructor. | |
ContinuationT (const ContinuationT &src) | |
Copy constructor. | |
Private Member Functions | |
virtual void | setParent (zbl::Closure *parent) |
Set parent closure. | |
Private Attributes | |
ClosureT< ReturnT > * | _parent |
Parent closure. |
Base class for continuations.
ContinuationT | ( | const ContinuationT< ReturnT > & | src | ) | [inline, protected] |
Copy constructor.
src | Source instance |
ContinuationT<ReturnT>* cloneT | ( | ) | const [inline] |
Create clone of continuation.
virtual void setParent | ( | zbl::Closure * | parent | ) | [inline, private, virtual] |
void setParent | ( | ClosureT< ReturnT > & | parent | ) | [inline] |
Set parent closure.
parent | Parent closure |
void setReturn | ( | const ReturnT & | val | ) | [inline] |
Set return value of parent closure.
val | Return value to set |