MicroModelicaCCompiler  4.5.3
AST_Expression_If_ Class Reference

#include <expression.hpp>

Inheritance diagram for AST_Expression_If_:
Collaboration diagram for AST_Expression_If_:

Public Member Functions

 AST_Expression_If_ (AST_Expression cond, AST_Expression then, AST_Expression else_exp, AST_ExpressionList elseif_list)
 
string print () const
 
AST_Expression condition () const
 
AST_Expression then () const
 
AST_Expression else_exp () const
 
AST_ExpressionList elseif_list () const
 
ExpressionType expressionType ()
 
- Public Member Functions inherited from AST_Expression_
virtual ~AST_Expression_ ()
 
 DEFINE_CLASS_PRINTER (AST_Expression)
 
void accept (AST_Visitor *visitor)
 
 GET_AS (Expression, BinOp)
 
 GET_AS (Expression, Boolean)
 
 GET_AS (Expression, BooleanNot)
 
 GET_AS (Expression, Brace)
 
 GET_AS (Expression, Call)
 
 GET_AS (Expression, CallArgs)
 
 GET_AS (Expression, ComponentReference)
 
 GET_AS (Expression, Derivative)
 
 GET_AS (Expression, If)
 
 GET_AS (Expression, Integer)
 
 GET_AS (Expression, Output)
 
 GET_AS (Expression, Range)
 
 GET_AS (Expression, Real)
 
 GET_AS (Expression, UMinus)
 
 GET_AS (Expression, String)
 
 GET_AS (Expression, NamedArgument)
 
 GET_AS (Expression, ArrayIndex)
 
 GET_AS (Expression, Bracket)
 
AST_Expression_If_ElseIf getAsElseIf ()
 
- 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_Expression _then
 
AST_Expression _else_exp
 
AST_ExpressionList _elseif_list
 

Detailed Description

Definition at line 208 of file expression.hpp.

Constructor & Destructor Documentation

◆ AST_Expression_If_()

AST_Expression_If_::AST_Expression_If_ ( AST_Expression  cond,
AST_Expression  then,
AST_Expression  else_exp,
AST_ExpressionList  elseif_list 
)

Definition at line 344 of file expression.cpp.

Member Function Documentation

◆ condition()

AST_Expression AST_Expression_If_::condition ( ) const

Definition at line 355 of file expression.cpp.

References _cond.

Referenced by print().

◆ else_exp()

AST_Expression AST_Expression_If_::else_exp ( ) const

Definition at line 351 of file expression.cpp.

References _else_exp.

Referenced by print().

◆ elseif_list()

AST_ExpressionList AST_Expression_If_::elseif_list ( ) const

Definition at line 353 of file expression.cpp.

References _elseif_list.

Referenced by print().

◆ expressionType()

ExpressionType AST_Expression_If_::expressionType ( )
virtual

Reimplemented from AST_Expression_.

Definition at line 349 of file expression.cpp.

References EXPIF.

◆ print()

string AST_Expression_If_::print ( ) const
virtual

Implements AST_Expression_.

Definition at line 378 of file expression.cpp.

References condition(), current_element, else_exp(), elseif_list(), and then().

Here is the call graph for this function:

◆ then()

AST_Expression AST_Expression_If_::then ( ) const

Definition at line 357 of file expression.cpp.

References _then.

Referenced by print().

Member Data Documentation

◆ _cond

AST_Expression AST_Expression_If_::_cond
private

Definition at line 219 of file expression.hpp.

Referenced by condition().

◆ _else_exp

AST_Expression AST_Expression_If_::_else_exp
private

Definition at line 219 of file expression.hpp.

Referenced by else_exp().

◆ _elseif_list

AST_ExpressionList AST_Expression_If_::_elseif_list
private

Definition at line 220 of file expression.hpp.

Referenced by elseif_list().

◆ _then

AST_Expression AST_Expression_If_::_then
private

Definition at line 219 of file expression.hpp.

Referenced by then().


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