Zen
A cross-platform functional programming language
|
Convenience class that wraps around the TypeSpecRefGenerator class. More...
Classes | |
struct | Format |
Defines the output format for types. More... | |
Public Member Functions | |
TypeSpecRefWriter (const Ast::TypeSpec &ptype, const z::string &psep, const Format::T &format=Format::None, const bool &inExpr=false) | |
Default constructor. | |
z::stream & | write (z::stream &os) const |
Writes the type reference to the output stream. | |
Private Attributes | |
const Ast::TypeSpec & | type |
The type to write. | |
const z::string | sep |
The separator. | |
const Format::T | _format |
The output format. | |
const bool | _inExpr |
True if called from within an expression. |
Convenience class that wraps around the TypeSpecRefGenerator class.
TypeSpecRefWriter | ( | const Ast::TypeSpec & | ptype, |
const z::string & | psep, | ||
const Format::T & | format = Format::None , |
||
const bool & | inExpr = false |
||
) | [inline] |
Default constructor.
ptype | The TypeSpec to generate code for. |
psep | The separator to use between type names |
format | The format of the output |
inExpr | True if type reference is generated from within an expression |
Remove TypeSpecRefWriter::sep member variable
Remove TypeSpecRefWriter::_inExpr
Writes the type reference to the output stream.
os | The output stream |