MicroModelicaCCompiler  4.5.3
AST_Statement_Assign_ Class Reference

#include <statement.hpp>

Inheritance diagram for AST_Statement_Assign_:
Collaboration diagram for AST_Statement_Assign_:

Public Member Functions

 AST_Statement_Assign_ (AST_Expression_ComponentReference cr, AST_Expression exp)
 
string print () const
 
AST_Expression exp () const
 
void setExp (AST_Expression exp)
 
void setLHS (AST_Expression_ComponentReference comp_ref)
 
AST_Expression_ComponentReference lhs () const
 
virtual StatementType statementType ()
 
- Public Member Functions inherited from AST_Statement_
 DEFINE_CLASS_PRINTER (AST_Statement)
 
void accept (AST_Visitor *visitor)
 
 GET_AS (Statement, While)
 
 GET_AS (Statement, If)
 
 GET_AS (Statement, For)
 
 GET_AS (Statement, When)
 
 GET_AS (Statement, Assign)
 
 GET_AS (Statement, OutputAssigment)
 
- 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_ComponentReference _lhs
 
AST_Expression _exp
 

Detailed Description

Definition at line 76 of file statement.hpp.

Constructor & Destructor Documentation

◆ AST_Statement_Assign_()

AST_Statement_Assign_::AST_Statement_Assign_ ( AST_Expression_ComponentReference  cr,
AST_Expression  exp 
)

Definition at line 72 of file statement.cpp.

Member Function Documentation

◆ exp()

AST_Expression AST_Statement_Assign_::exp ( ) const

Definition at line 74 of file statement.cpp.

References _exp.

Referenced by print(), and setExp().

◆ lhs()

AST_Expression_ComponentReference AST_Statement_Assign_::lhs ( ) const

Definition at line 76 of file statement.cpp.

References _lhs.

Referenced by print(), and setLHS().

◆ print()

string AST_Statement_Assign_::print ( ) const
virtual

Implements AST_Statement_.

Definition at line 80 of file statement.cpp.

References current_element, exp(), EXPCALLARG, lhs(), and MAKE_SPACE.

Here is the call graph for this function:

◆ setExp()

void AST_Statement_Assign_::setExp ( AST_Expression  exp)

Definition at line 99 of file statement.cpp.

References _exp, and exp().

Here is the call graph for this function:

◆ setLHS()

void AST_Statement_Assign_::setLHS ( AST_Expression_ComponentReference  comp_ref)

Definition at line 108 of file statement.cpp.

References _lhs, and lhs().

Here is the call graph for this function:

◆ statementType()

StatementType AST_Statement_Assign_::statementType ( )
virtual

Implements AST_Statement_.

Definition at line 78 of file statement.cpp.

References STASSIGN.

Member Data Documentation

◆ _exp

AST_Expression AST_Statement_Assign_::_exp
private

Definition at line 88 of file statement.hpp.

Referenced by exp(), and setExp().

◆ _lhs

AST_Expression_ComponentReference AST_Statement_Assign_::_lhs
private

Definition at line 87 of file statement.hpp.

Referenced by lhs(), and setLHS().


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