#include <xi-AstNode.h>
Public Member Functions | |
AstChildren (int line_, Child *c, AstChildren *cs) | |
template<typename T> | |
AstChildren (std::list< T * > &l) | |
void | push_back (Child *c) |
void | preprocess () |
void | check () |
void | print (XStr &str) |
void | printChareNames () |
void | outputClosuresDecl (XStr &str) |
void | outputClosuresDef (XStr &str) |
void | genClosureEntryDecls (XStr &str) |
void | genClosureEntryDefs (XStr &str) |
void | genDecls (XStr &str) |
void | genDefs (XStr &str) |
void | genReg (XStr &str) |
void | genGlobalCode (XStr scope, XStr &decls, XStr &defs) |
bool | isTramTarget () |
void | genTramTypes () |
void | genTramRegs (XStr &str) |
void | genTramPups (XStr &scope, XStr &decls, XStr &defs) |
int | genAccels_spe_c_funcBodies (XStr &str) |
void | genAccels_spe_c_regFuncs (XStr &str) |
void | genAccels_spe_c_callInits (XStr &str) |
void | genAccels_spe_h_includes (XStr &str) |
void | genAccels_spe_h_fiCountDefs (XStr &str) |
void | genAccels_ppe_c_regFuncs (XStr &str) |
template<typename T> | |
void | recurse (T arg, void(Child::*fn)(T)) |
void | recursev (void(Child::*fn)()) |
Protected Attributes | |
std::list< Child * > | children |
Definition at line 53 of file xi-AstNode.h.
xi::AstChildren< Child >::AstChildren | ( | int | line_, | |
Child * | c, | |||
AstChildren< Child > * | cs | |||
) | [inline] |
Definition at line 58 of file xi-AstNode.h.
xi::AstChildren< Child >::AstChildren | ( | std::list< T * > & | l | ) | [inline, explicit] |
Definition at line 64 of file xi-AstNode.h.
void xi::AstChildren< Child >::push_back | ( | Child * | c | ) | [inline] |
void xi::AstChildren< Child >::preprocess | ( | ) | [inline, virtual] |
Reimplemented from xi::AstNode.
Definition at line 247 of file xi-AstNode.h.
References xi::AstChildren< Child >::children, and xi::details::perElem().
Referenced by xi::Module::preprocess(), and processAst().
void xi::AstChildren< Child >::check | ( | void | ) | [inline, virtual] |
Reimplemented from xi::AstNode.
Definition at line 252 of file xi-AstNode.h.
References check(), xi::AstChildren< Child >::children, and xi::details::perElem().
Referenced by xi::Module::check(), and processAst().
void xi::AstChildren< Child >::print | ( | XStr & | str | ) | [inline, virtual] |
Implements xi::Printable.
Reimplemented in xi::Scope.
Definition at line 242 of file xi-AstNode.h.
References xi::AstChildren< Child >::children, xi::details::perElemGen(), and print().
Referenced by xi::Module::print().
void xi::AstChildren< Child >::printChareNames | ( | ) | [inline, virtual] |
Reimplemented from xi::AstNode.
Definition at line 313 of file xi-AstNode.h.
References xi::AstChildren< Child >::children, and xi::details::perElem().
Referenced by xi::Module::printChareNames(), and processAst().
void xi::AstChildren< Child >::outputClosuresDecl | ( | XStr & | str | ) | [inline, virtual] |
Reimplemented from xi::AstNode.
Reimplemented in xi::Scope.
Definition at line 272 of file xi-AstNode.h.
References xi::AstChildren< Child >::children, xi::details::newLine(), and xi::details::perElemGen().
Referenced by xi::Module::generate().
void xi::AstChildren< Child >::outputClosuresDef | ( | XStr & | str | ) | [inline, virtual] |
Reimplemented from xi::AstNode.
Reimplemented in xi::Scope.
Definition at line 277 of file xi-AstNode.h.
References xi::AstChildren< Child >::children, xi::details::newLine(), and xi::details::perElemGen().
Referenced by xi::Module::generate().
void xi::AstChildren< Child >::genClosureEntryDecls | ( | XStr & | str | ) | [inline, virtual] |
Reimplemented from xi::AstNode.
Definition at line 262 of file xi-AstNode.h.
References xi::AstChildren< Child >::children, xi::details::newLine(), and xi::details::perElemGen().
void xi::AstChildren< Child >::genClosureEntryDefs | ( | XStr & | str | ) | [inline, virtual] |
Reimplemented from xi::AstNode.
Definition at line 267 of file xi-AstNode.h.
References xi::AstChildren< Child >::children, xi::details::newLine(), and xi::details::perElemGen().
void xi::AstChildren< Child >::genDecls | ( | XStr & | str | ) | [inline, virtual] |
Reimplemented from xi::AstNode.
Reimplemented in xi::Scope.
Definition at line 257 of file xi-AstNode.h.
References xi::AstChildren< Child >::children, xi::details::newLine(), and xi::details::perElemGen().
Referenced by xi::Module::genDecls(), and xi::Module::generate().
void xi::AstChildren< Child >::genDefs | ( | XStr & | str | ) | [inline, virtual] |
Reimplemented from xi::AstNode.
Reimplemented in xi::Scope.
Definition at line 282 of file xi-AstNode.h.
References xi::AstChildren< Child >::children, xi::details::newLine(), and xi::details::perElemGen().
Referenced by xi::Module::genDefs(), and xi::Module::genReg().
void xi::AstChildren< Child >::genReg | ( | XStr & | str | ) | [inline, virtual] |
Reimplemented from xi::AstNode.
Reimplemented in xi::Scope.
Definition at line 287 of file xi-AstNode.h.
References xi::AstChildren< Child >::children, xi::details::newLine(), and xi::details::perElemGen().
Referenced by xi::Module::generate().
void xi::AstChildren< Child >::genGlobalCode | ( | XStr | scope, | |
XStr & | decls, | |||
XStr & | defs | |||
) | [inline, virtual] |
Reimplemented from xi::AstNode.
Reimplemented in xi::Scope.
Definition at line 303 of file xi-AstNode.h.
References xi::AstChildren< Child >::children.
Referenced by xi::Module::generate().
bool xi::AstChildren< Child >::isTramTarget | ( | ) | [inline] |
Definition at line 318 of file xi-AstNode.h.
References xi::AstChildren< Child >::children.
Referenced by xi::Module::isTramTarget().
void xi::AstChildren< Child >::genTramTypes | ( | ) | [inline, virtual] |
Reimplemented from xi::AstNode.
Definition at line 327 of file xi-AstNode.h.
References xi::AstChildren< Child >::children, and xi::details::perElem().
void xi::AstChildren< Child >::genTramRegs | ( | XStr & | str | ) | [inline, virtual] |
Reimplemented from xi::AstNode.
Definition at line 332 of file xi-AstNode.h.
References xi::AstChildren< Child >::children, and xi::details::perElemGen().
void xi::AstChildren< Child >::genTramPups | ( | XStr & | scope, | |
XStr & | decls, | |||
XStr & | defs | |||
) | [inline, virtual] |
Reimplemented from xi::AstNode.
Definition at line 337 of file xi-AstNode.h.
References xi::AstChildren< Child >::children.
int xi::AstChildren< Child >::genAccels_spe_c_funcBodies | ( | XStr & | str | ) | [inline, virtual] |
Reimplemented from xi::AstNode.
Definition at line 347 of file xi-AstNode.h.
References xi::AstChildren< Child >::children.
Referenced by xi::Module::genAccels_spe_c_funcBodies().
void xi::AstChildren< Child >::genAccels_spe_c_regFuncs | ( | XStr & | str | ) | [inline, virtual] |
Reimplemented from xi::AstNode.
Definition at line 359 of file xi-AstNode.h.
References xi::AstChildren< Child >::children, and xi::details::perElemGen().
Referenced by xi::Module::genAccels_spe_c_regFuncs().
void xi::AstChildren< Child >::genAccels_spe_c_callInits | ( | XStr & | str | ) | [inline, virtual] |
Reimplemented from xi::AstNode.
Definition at line 364 of file xi-AstNode.h.
References xi::AstChildren< Child >::children, and xi::details::perElemGen().
Referenced by xi::Module::genAccels_spe_c_callInits().
void xi::AstChildren< Child >::genAccels_spe_h_includes | ( | XStr & | str | ) | [inline, virtual] |
Reimplemented from xi::AstNode.
Definition at line 369 of file xi-AstNode.h.
References xi::AstChildren< Child >::children, and xi::details::perElemGen().
Referenced by xi::Module::genAccels_spe_h_includes().
void xi::AstChildren< Child >::genAccels_spe_h_fiCountDefs | ( | XStr & | str | ) | [inline, virtual] |
Reimplemented from xi::AstNode.
Definition at line 374 of file xi-AstNode.h.
References xi::AstChildren< Child >::children, and xi::details::perElemGen().
Referenced by xi::Module::genAccels_spe_h_fiCountDefs().
void xi::AstChildren< Child >::genAccels_ppe_c_regFuncs | ( | XStr & | str | ) | [inline, virtual] |
Reimplemented from xi::AstNode.
Definition at line 379 of file xi-AstNode.h.
References xi::AstChildren< Child >::children, and xi::details::perElemGen().
Referenced by xi::Module::genAccels_ppe_c_regFuncs().
void xi::AstChildren< Child >::recurse | ( | T | arg, | |
void(Child::*)(T) | fn | |||
) | [inline] |
Definition at line 293 of file xi-AstNode.h.
References xi::AstChildren< Child >::children, and xi::details::perElemGen().
Referenced by xi::Module::Module(), and processAst().
void xi::AstChildren< Child >::recursev | ( | void(Child::*)() | fn | ) | [inline] |
Definition at line 298 of file xi-AstNode.h.
References xi::AstChildren< Child >::children, and xi::details::perElem().
Referenced by main(), and processAst().
std::list<Child*> xi::AstChildren< Child >::children [protected] |
Definition at line 55 of file xi-AstNode.h.
Referenced by xi::AstChildren< xi::Member >::AstChildren(), xi::AstChildren< Child >::check(), xi::AstChildren< Child >::genAccels_ppe_c_regFuncs(), xi::AstChildren< Child >::genAccels_spe_c_callInits(), xi::AstChildren< Child >::genAccels_spe_c_funcBodies(), xi::AstChildren< Child >::genAccels_spe_c_regFuncs(), xi::AstChildren< Child >::genAccels_spe_h_fiCountDefs(), xi::AstChildren< Child >::genAccels_spe_h_includes(), xi::AstChildren< Child >::genClosureEntryDecls(), xi::AstChildren< Child >::genClosureEntryDefs(), xi::AstChildren< Child >::genDecls(), xi::AstChildren< Child >::genDefs(), xi::AstChildren< Child >::genGlobalCode(), xi::AstChildren< Child >::genReg(), xi::AstChildren< Child >::genTramPups(), xi::AstChildren< Child >::genTramRegs(), xi::AstChildren< Child >::genTramTypes(), xi::AstChildren< Child >::isTramTarget(), xi::AstChildren< Child >::outputClosuresDecl(), xi::AstChildren< Child >::outputClosuresDef(), xi::AstChildren< Child >::preprocess(), xi::AstChildren< Child >::print(), xi::AstChildren< Child >::printChareNames(), xi::AstChildren< Child >::push_back(), xi::AstChildren< Child >::recurse(), and xi::AstChildren< Child >::recursev().