MicroModelicaCCompiler  4.5.3
AST_Equation_When_ Class Reference

#include <equation.hpp>

Inheritance diagram for AST_Equation_When_:
Collaboration diagram for AST_Equation_When_:

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
 

Detailed Description

Definition at line 141 of file equation.hpp.

Constructor & Destructor Documentation

◆ AST_Equation_When_()

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.

Member Function Documentation

◆ comment()

AST_Comment AST_Equation_When_::comment ( ) const

Definition at line 226 of file equation.cpp.

References _comment.

◆ condition()

AST_Expression AST_Equation_When_::condition ( ) const

Definition at line 216 of file equation.cpp.

References _cond.

Referenced by print().

◆ equationElseWhen()

AST_Equation_ElseList AST_Equation_When_::equationElseWhen ( ) const

Definition at line 222 of file equation.cpp.

References _else_when.

Referenced by print().

◆ equationList()

AST_EquationList AST_Equation_When_::equationList ( ) const

Definition at line 218 of file equation.cpp.

References _eql.

Referenced by print().

◆ equationType()

EquationType AST_Equation_When_::equationType ( )
virtual

Implements AST_Equation_.

Definition at line 220 of file equation.cpp.

References EQWHEN.

◆ hasComment()

bool AST_Equation_When_::hasComment ( )

Definition at line 228 of file equation.cpp.

References _comment.

◆ print()

string AST_Equation_When_::print ( ) const
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.

Here is the call graph for this function:

◆ setCondition()

void AST_Equation_When_::setCondition ( AST_Expression  e)

Definition at line 224 of file equation.cpp.

References _cond.

Member Data Documentation

◆ _comment

AST_Comment AST_Equation_When_::_comment
private

Definition at line 157 of file equation.hpp.

Referenced by comment(), and hasComment().

◆ _cond

AST_Expression AST_Equation_When_::_cond
private

Definition at line 154 of file equation.hpp.

Referenced by condition(), and setCondition().

◆ _else_when

AST_Equation_ElseList AST_Equation_When_::_else_when
private

Definition at line 156 of file equation.hpp.

Referenced by equationElseWhen().

◆ _eql

AST_EquationList AST_Equation_When_::_eql
private

Definition at line 155 of file equation.hpp.

Referenced by equationList().


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