A cross-platform functional programming language

ContinuationT< ReturnT > Class Template Reference

Base class for continuations. More...

#include <ztl.hpp>

Inheritance diagram for ContinuationT< ReturnT >:

List of all members.

Public Types

typedef z::scopedptr
< ContinuationT
 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.

srcSource instance

Member Function Documentation

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

Create clone of continuation.

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

Set parent closure.

parentParent closure

Implements Continuation.

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

Set parent closure.

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

Set return value of parent closure.

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