Zen
A cross-platform functional programming language

ClosureT< ReturnT > Class Template Reference

Wrapper around Closure base class. More...

#include <ztl.hpp>

Inheritance diagram for ClosureT< ReturnT >:
Closure FunctionCallClosureT< ReturnT > ReturnClosureT< ReturnT >

List of all members.

Public Member Functions

ReturnT & getValue ()
 Get return value for this closure.
void setValue (const ReturnT &val)
 Set closure return value.

Protected Member Functions

 ClosureT ()
 Default constructor.

Private Member Functions

 ClosureT (const ClosureT &src)
 Copy constructor.

Private Attributes

z::scopedptr< ReturnT > _val
 Closure return value.

Detailed Description

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

Wrapper around Closure base class.


Constructor & Destructor Documentation

ClosureT ( const ClosureT< ReturnT > &  src) [inline, private]

Copy constructor.

Parameters:
srcSource instance

Member Function Documentation

ReturnT& getValue ( ) [inline]

Get return value for this closure.

Returns:
Closure return value
void setValue ( const ReturnT &  val) [inline]

Set closure return value.

Parameters:
valClosure return value

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