Zen
A cross-platform functional programming language
|
Class that generates the definitions for implementation items. More...
Public Member Functions | |
GDefWriter (Indenter &ind, z::stream &pos, const Build::Project &project, z::fileinfo &fi) | |
Default constructor. | |
Private Member Functions | |
virtual void | visit (const Ast::ContinuationImplItem &item) |
Abstract visitor function. | |
virtual void | visit (const Ast::RoutineImplItem &item) |
Abstract visitor function. | |
template<typename ImplItemT > | |
const Ast::FunctionDef & | writeDefaultCtor (const ImplItemT &item) |
Code to write the default constructor for an implementation item. | |
virtual void | visit (const Ast::FunctionImplItem &item) |
Abstract visitor function. | |
virtual void | visit (const Ast::GrammarImplItem &item) |
Abstract visitor function. | |
virtual void | visit (const Ast::WindowImplItem &item) |
Abstract visitor function. | |
Private Attributes | |
Indenter & | _ind |
Current indentation level. | |
z::stream & | _os |
Output stream. | |
const Build::Project & | _project |
The project definition. | |
z::fileinfo & | _fi |
The file info for input source file. |
Class that generates the definitions for implementation items.
GDefWriter | ( | Indenter & | ind, |
z::stream & | pos, | ||
const Build::Project & | project, | ||
z::fileinfo & | fi | ||
) | [inline] |
Default constructor.
ind | The indentation level |
pos | The output stream |
project | The project definition |
fi | FileInfo object for input source file. Used to derive grammar output file names. |
virtual void visit | ( | const Ast::ContinuationImplItem & | item | ) | [inline, private, virtual] |
Abstract visitor function.
item | The implementation item reference to handle |
Implements ImplItem::Visitor.
virtual void visit | ( | const Ast::RoutineImplItem & | item | ) | [inline, private, virtual] |
Abstract visitor function.
item | The implementation item reference to handle |
Implements ImplItem::Visitor.
virtual void visit | ( | const Ast::GrammarImplItem & | item | ) | [inline, private, virtual] |
Abstract visitor function.
item | The implementation item reference to handle |
Implements ImplItem::Visitor.
virtual void visit | ( | const Ast::FunctionImplItem & | item | ) | [inline, private, virtual] |
Abstract visitor function.
item | The implementation item reference to handle |
Implements ImplItem::Visitor.
virtual void visit | ( | const Ast::WindowImplItem & | item | ) | [inline, private, virtual] |
Abstract visitor function.
item | The implementation item reference to handle |
Implements ImplItem::Visitor.
const Ast::FunctionDef& writeDefaultCtor | ( | const ImplItemT & | item | ) | [inline, private] |
Code to write the default constructor for an implementation item.
item | The implementation item |