Zen
A cross-platform functional programming language
Public Member Functions | Private Attributes

ExprWriter Class Reference

Convenience class that wraps an ExprGenerator. More...

List of all members.

Public Member Functions

 ExprWriter (const Ast::Expr &pexpr)
 Default constructor.
ExprWriterisRoutine (const bool &val=true)
 Sets true if this is called from a routine.
z::streamwrite (z::stream &os) const
 Writes the type reference to the output stream.

Private Attributes

const Ast::Exprexpr
 The expression to write.
bool _isRoutine
 True if this is called from a routine.

Detailed Description

Convenience class that wraps an ExprGenerator.


Constructor & Destructor Documentation

ExprWriter ( const Ast::Expr pexpr) [inline]

Default constructor.

Parameters:
pexprThe expression to generate

Member Function Documentation

ExprWriter& isRoutine ( const bool &  val = true) [inline]

Sets true if this is called from a routine.

Parameters:
valTrue if called from a routine
Returns:
A self reference
z::stream & write ( z::stream os) const

Writes the type reference to the output stream.

Parameters:
osThe output stream
Returns:
The output stream

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