MicroModelicaCCompiler
4.5.3
|
#include <equation.hpp>
Public Member Functions | |
AST_Equation_If_ (AST_Expression cond, AST_EquationList eql, AST_Equation_ElseList elseif, AST_EquationList else_eq) | |
string | print () const |
AST_Expression | condition () const |
void | setCondition (AST_Expression c) |
AST_EquationList | equationList () const |
AST_EquationList | equationElseList () const |
AST_Equation_ElseList | equationElseIf () const |
EquationType | equationType () |
![]() | |
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) | |
![]() | |
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_EquationList | _else |
AST_Equation_ElseList | _else_if |
Definition at line 83 of file equation.hpp.
AST_Equation_If_::AST_Equation_If_ | ( | AST_Expression | cond, |
AST_EquationList | eql, | ||
AST_Equation_ElseList | elseif, | ||
AST_EquationList | else_eq | ||
) |
Definition at line 104 of file equation.cpp.
AST_Expression AST_Equation_If_::condition | ( | ) | const |
AST_Equation_ElseList AST_Equation_If_::equationElseIf | ( | ) | const |
AST_EquationList AST_Equation_If_::equationElseList | ( | ) | const |
AST_EquationList AST_Equation_If_::equationList | ( | ) | const |
|
virtual |
|
virtual |
Implements AST_Equation_.
Definition at line 121 of file equation.cpp.
References BEGIN_BLOCK, condition(), current_element, END_BLOCK, equationElseIf(), equationElseList(), equationList(), and MAKE_SPACE.
void AST_Equation_If_::setCondition | ( | AST_Expression | c | ) |
Definition at line 111 of file equation.cpp.
References _cond.
|
private |
Definition at line 95 of file equation.hpp.
Referenced by condition(), and setCondition().
|
private |
Definition at line 97 of file equation.hpp.
Referenced by equationElseList().
|
private |
Definition at line 98 of file equation.hpp.
Referenced by equationElseIf().
|
private |
Definition at line 96 of file equation.hpp.
Referenced by equationList().