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

ExprListWriter Class Reference

Clas that writes out an expression list. More...

List of all members.

Public Member Functions

 ExprListWriter (const Ast::ExprList &plist, const z::string &pisep, const z::string &psep)
 Default constructor.
ExprListWriterisRoutine (const bool &val=true)
 Sets true if this is invoked from a routine.
z::streamwrite (z::stream &os) const
 Writes the type reference to the output stream.

Private Attributes

const Ast::ExprListlist
 Expression list to write out.
const z::string isep
 Initial separator.
const z::string sep
 Subsequent separator.
bool _isRoutine
 True is called from within routine.

Detailed Description

Clas that writes out an expression list.


Constructor & Destructor Documentation

ExprListWriter ( const Ast::ExprList plist,
const z::string pisep,
const z::string psep 
) [inline]

Default constructor.

Parameters:
plistThe expression list to generate
pisepThe initial separator between expressions
psepThe subsequent separator between expressions

Member Function Documentation

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

Sets true if this is invoked from a routine.

Parameters:
valTrue if invoked from a routine
Returns:
A reference to the current instance
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