Zen
A cross-platform functional programming language

ExitClosure Class Reference

AST Nodes representing closures that enque continuations to be executed on program exit. More...

#include <Ast.hpp>

Inheritance diagram for ExitClosure:
InitClosure Closure Node

List of all members.

Public Member Functions

 ExitClosure (const VariableRefList &xRefList, const Ast::QualifiedType &qtype)
 Default constructor.

Private Member Functions

virtual void visit (Visitor &visitor) const
 Abstract visitor function.
virtual const Ast::QualifiedTypegetOutType () const
 Returns the out-param type for init closures.

Private Attributes

const Ast::QualifiedType_qtype
 The closure out-param type.

Detailed Description

AST Nodes representing closures that enque continuations to be executed on program exit.


Constructor & Destructor Documentation

ExitClosure ( const VariableRefList xRefList,
const Ast::QualifiedType qtype 
) [inline]

Default constructor.

Parameters:
xRefListThe list of external variables referenced by this closure.
qtypeThe type of this closure, for now "void".

Member Function Documentation

virtual const Ast::QualifiedType& getOutType ( ) const [inline, private, virtual]

Returns the out-param type for init closures.

Returns:
The closure out-param

Implements InitClosure.

void visit ( Visitor visitor) const [private, virtual]

Abstract visitor function.

Parameters:
visitorThe visitor object.

Implements Closure.


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