MicroModelicaCCompiler  4.5.3
EqualExp Class Reference

#include <ast_util.hpp>

Public Member Functions

 EqualExp ()
 
bool equalTraverse (AST_Expression a, AST_Expression b)
 

Private Member Functions

bool _compareList (AST_ExpressionList ael, AST_ExpressionList bel)
 
bool equalTraverseElement (AST_Expression a, AST_Expression b)
 
Option< MicroModelica::Util::VariablegetVarInfo (AST_Expression_ComponentReference compRef)
 
bool compareArrays (AST_Expression_ComponentReference arrayA, AST_Expression_ComponentReference arrayB)
 

Detailed Description

Definition at line 253 of file ast_util.hpp.

Constructor & Destructor Documentation

◆ EqualExp()

EqualExp::EqualExp ( )

Definition at line 91 of file ast_util.cpp.

Member Function Documentation

◆ _compareList()

bool EqualExp::_compareList ( AST_ExpressionList  ael,
AST_ExpressionList  bel 
)
private

Definition at line 109 of file ast_util.cpp.

References AST_Length(), AST_ListAt(), and current_element.

Here is the call graph for this function:

◆ compareArrays()

bool EqualExp::compareArrays ( AST_Expression_ComponentReference  arrayA,
AST_Expression_ComponentReference  arrayB 
)
private

Definition at line 217 of file ast_util.cpp.

References MicroModelica::Util::ERROR_UNLESS().

Here is the call graph for this function:

◆ equalTraverse()

bool EqualExp::equalTraverse ( AST_Expression  a,
AST_Expression  b 
)

Definition at line 93 of file ast_util.cpp.

References EXPBINOP.

Referenced by ReplaceExp::mapTraverseElement().

◆ equalTraverseElement()

bool EqualExp::equalTraverseElement ( AST_Expression  a,
AST_Expression  b 
)
private

◆ getVarInfo()

Option< Variable > EqualExp::getVarInfo ( AST_Expression_ComponentReference  compRef)
private

Definition at line 201 of file ast_util.cpp.

References MicroModelica::Util::ERROR_UNLESS(), MicroModelica::Util::ModelConfig::instance(), and MicroModelica::Util::ModelConfig::lookup().

Here is the call graph for this function:

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