MicroModelicaCCompiler  4.5.3
AST_ForIndex_ Class Reference

#include <equation.hpp>

Inheritance diagram for AST_ForIndex_:
Collaboration diagram for AST_ForIndex_:

Public Member Functions

 AST_ForIndex_ (AST_String var, AST_Expression exp)
 
 DEFINE_CLASS_PRINTER (AST_ForIndex)
 
string print () const
 
AST_String variable () const
 
AST_Expression in_exp () const
 
void accept (AST_Visitor *visitor)
 
- Public Member Functions inherited from AST_Node_
 AST_Node_ ()
 
virtual ~AST_Node_ ()
 
 DEFINE_CLASS_PRINTER (AST_Node)
 
 DEFINE_ORDER_REL (AST_Node)
 
void setLineNum (int linenum)
 
int lineNum () const
 

Private Attributes

AST_String _var
 
AST_Expression _in
 

Detailed Description

Definition at line 114 of file equation.hpp.

Constructor & Destructor Documentation

◆ AST_ForIndex_()

AST_ForIndex_::AST_ForIndex_ ( AST_String  var,
AST_Expression  exp 
)

Definition at line 184 of file equation.cpp.

Member Function Documentation

◆ accept()

void AST_ForIndex_::accept ( AST_Visitor visitor)
virtual

Implements AST_Node_.

Definition at line 203 of file equation.cpp.

References _in, and AST_Visitor::visit().

Here is the call graph for this function:

◆ DEFINE_CLASS_PRINTER()

AST_ForIndex_::DEFINE_CLASS_PRINTER ( AST_ForIndex  )

◆ in_exp()

AST_Expression AST_ForIndex_::in_exp ( ) const

Definition at line 188 of file equation.cpp.

References _in.

Referenced by operator<<().

◆ print()

string AST_ForIndex_::print ( ) const

◆ variable()

AST_String AST_ForIndex_::variable ( ) const

Definition at line 186 of file equation.cpp.

References _var.

Referenced by operator<<().

Member Data Documentation

◆ _in

AST_Expression AST_ForIndex_::_in
private

Definition at line 125 of file equation.hpp.

Referenced by accept(), and in_exp().

◆ _var

AST_String AST_ForIndex_::_var
private

Definition at line 124 of file equation.hpp.

Referenced by variable().


The documentation for this class was generated from the following files: