Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
OOModel::CodeGenerationVisitor Class Reference
Inheritance diagram for OOModel::CodeGenerationVisitor:
Model::Visitor< CodeGenerationVisitor >

Public Member Functions

 CodeGenerationVisitor (QMap< QString, Model::Node * > args)
 
- Public Member Functions inherited from Model::Visitor< CodeGenerationVisitor >
virtual ~Visitor ()
 
void visit (Node *n)
 
virtual void visitChildren (Node *n)
 

Static Public Member Functions

static void init ()
 
static void visitMetaCallExpression (CodeGenerationVisitor *v, MetaCallExpression *n)
 
static void visitNameText (CodeGenerationVisitor *v, Model::NameText *n)
 
static void visitReferenceExpression (CodeGenerationVisitor *v, ReferenceExpression *n)
 
- Static Public Member Functions inherited from Model::Visitor< CodeGenerationVisitor >
static void addType (std::function< void(CodeGenerationVisitor *, NodeType *)> f)
 

Private Member Functions

void handlePredefinedFunction (QString function, MetaCallExpression *n)
 handles predefined meta functions More...
 

Private Attributes

QMap< QString, Model::Node * > args_
 

Additional Inherited Members

- Public Types inherited from Model::Visitor< CodeGenerationVisitor >
using BaseVisitorType = CodeGenerationVisitor
 
using VisitFunctionInstance = std::function< void(CodeGenerationVisitor *, Node *)>
 
using VisitorResultType = void
 
- Protected Member Functions inherited from Model::Visitor< CodeGenerationVisitor >
virtual VisitFunctionInstance findFunctionForId (int id)
 

Constructor & Destructor Documentation

◆ CodeGenerationVisitor()

OOModel::CodeGenerationVisitor::CodeGenerationVisitor ( QMap< QString, Model::Node * >  args)

Member Function Documentation

◆ handlePredefinedFunction()

void OOModel::CodeGenerationVisitor::handlePredefinedFunction ( QString  function,
MetaCallExpression n 
)
private

handles predefined meta functions

◆ init()

void OOModel::CodeGenerationVisitor::init ( )
static

◆ visitMetaCallExpression()

void OOModel::CodeGenerationVisitor::visitMetaCallExpression ( CodeGenerationVisitor v,
MetaCallExpression n 
)
static

◆ visitNameText()

void OOModel::CodeGenerationVisitor::visitNameText ( CodeGenerationVisitor v,
Model::NameText n 
)
static

◆ visitReferenceExpression()

void OOModel::CodeGenerationVisitor::visitReferenceExpression ( CodeGenerationVisitor v,
OOModel::ReferenceExpression n 
)
static

Member Data Documentation

◆ args_

QMap<QString, Model::Node*> OOModel::CodeGenerationVisitor::args_
private