|
MicroModelicaCCompiler
4.5.3
|
#include <equation.hpp>


Public Member Functions | |
| AST_Equation_When_ (AST_Expression cond, AST_EquationList eql, AST_Equation_ElseList elsewhen, AST_Comment c) | |
| string | print () const |
| AST_Expression | condition () const |
| AST_EquationList | equationList () const |
| EquationType | equationType () |
| AST_Equation_ElseList | equationElseWhen () const |
| void | setCondition (AST_Expression e) |
| AST_Comment | comment () const |
| bool | hasComment () |
Public Member Functions inherited from AST_Equation_ | |
| DEFINE_CLASS_PRINTER (AST_Equation) | |
| void | accept (AST_Visitor *visitor) |
| GET_AS (Equation, Call) | |
| GET_AS (Equation, Connect) | |
| GET_AS (Equation, Equality) | |
| GET_AS (Equation, For) | |
| GET_AS (Equation, If) | |
| GET_AS (Equation, When) | |
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_Expression | _cond |
| AST_EquationList | _eql |
| AST_Equation_ElseList | _else_when |
| AST_Comment | _comment |
Definition at line 141 of file equation.hpp.
| AST_Equation_When_::AST_Equation_When_ | ( | AST_Expression | cond, |
| AST_EquationList | eql, | ||
| AST_Equation_ElseList | elsewhen, | ||
| AST_Comment | c | ||
| ) |
Definition at line 211 of file equation.cpp.
| AST_Comment AST_Equation_When_::comment | ( | ) | const |
Definition at line 226 of file equation.cpp.
References _comment.
| AST_Expression AST_Equation_When_::condition | ( | ) | const |
| AST_Equation_ElseList AST_Equation_When_::equationElseWhen | ( | ) | const |
| AST_EquationList AST_Equation_When_::equationList | ( | ) | const |
|
virtual |
| bool AST_Equation_When_::hasComment | ( | ) |
Definition at line 228 of file equation.cpp.
References _comment.
|
virtual |
Implements AST_Equation_.
Definition at line 230 of file equation.cpp.
References BEGIN_BLOCK, condition(), current_element, END_BLOCK, equationElseWhen(), equationList(), and MAKE_SPACE.

| void AST_Equation_When_::setCondition | ( | AST_Expression | e | ) |
Definition at line 224 of file equation.cpp.
References _cond.
|
private |
Definition at line 157 of file equation.hpp.
Referenced by comment(), and hasComment().
|
private |
Definition at line 154 of file equation.hpp.
Referenced by condition(), and setCondition().
|
private |
Definition at line 156 of file equation.hpp.
Referenced by equationElseWhen().
|
private |
Definition at line 155 of file equation.hpp.
Referenced by equationList().