Zen
A cross-platform functional programming language

ContinuationT< ReturnT > Class Template Reference

Base class for continuations. More...

#include <ztl.hpp>

Inheritance diagram for ContinuationT< ReturnT >:
Continuation

List of all members.

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.

Detailed Description

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

Base class for continuations.


Constructor & Destructor Documentation

ContinuationT ( const ContinuationT< ReturnT > &  src) [inline, protected]

Copy constructor.

Parameters:
srcSource instance

Member Function Documentation

ContinuationT<ReturnT>* cloneT ( ) const [inline]

Create clone of continuation.

Returns:
Clone instance
virtual void setParent ( zbl::Closure parent) [inline, private, virtual]

Set parent closure.

Parameters:
parentParent closure

Implements Continuation.

void setParent ( ClosureT< ReturnT > &  parent) [inline]

Set parent closure.

Parameters:
parentParent closure
void setReturn ( const ReturnT &  val) [inline]

Set return value of parent closure.

Parameters:
valReturn value to set

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