MicroModelicaCCompiler  4.5.3
AST_Expression_BinOp_ Class Reference

#include <expression.hpp>

Inheritance diagram for AST_Expression_BinOp_:
Collaboration diagram for AST_Expression_BinOp_:

Public Member Functions

 AST_Expression_BinOp_ (AST_Expression e1, AST_Expression e2, BinOpType t)
 
string print () const
 
ExpressionType expressionType ()
 
AST_Expression left () const
 
AST_Expression right () const
 
BinOpType binopType () const
 
- 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 _e1
 
AST_Expression _e2
 
BinOpType _t
 

Detailed Description

Definition at line 194 of file expression.hpp.

Constructor & Destructor Documentation

◆ AST_Expression_BinOp_()

AST_Expression_BinOp_::AST_Expression_BinOp_ ( AST_Expression  e1,
AST_Expression  e2,
BinOpType  t 
)

Definition at line 60 of file expression.cpp.

Member Function Documentation

◆ binopType()

BinOpType AST_Expression_BinOp_::binopType ( ) const

Definition at line 68 of file expression.cpp.

References _t.

Referenced by print().

◆ expressionType()

ExpressionType AST_Expression_BinOp_::expressionType ( )
virtual

Reimplemented from AST_Expression_.

Definition at line 62 of file expression.cpp.

References EXPBINOP.

Referenced by print().

◆ left()

AST_Expression AST_Expression_BinOp_::left ( ) const

Definition at line 64 of file expression.cpp.

References _e1.

Referenced by print().

◆ print()

string AST_Expression_BinOp_::print ( ) const
virtual

Implements AST_Expression_.

Definition at line 70 of file expression.cpp.

References binopType(), BinOpTypeName, EXPBINOP, expressionType(), left(), and right().

Here is the call graph for this function:

◆ right()

AST_Expression AST_Expression_BinOp_::right ( ) const

Definition at line 66 of file expression.cpp.

References _e2.

Referenced by print().

Member Data Documentation

◆ _e1

AST_Expression AST_Expression_BinOp_::_e1
private

Definition at line 204 of file expression.hpp.

Referenced by left().

◆ _e2

AST_Expression AST_Expression_BinOp_::_e2
private

Definition at line 204 of file expression.hpp.

Referenced by right().

◆ _t

BinOpType AST_Expression_BinOp_::_t
private

Definition at line 205 of file expression.hpp.

Referenced by binopType().


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