MicroModelicaCCompiler
4.5.3
|
#include <expression.hpp>
Public Member Functions | |
Expression () | |
Expression (AST_Expression exp, int order=0) | |
~Expression ()=default | |
std::string | print () const |
AST_Expression | expression () const |
bool | isReference () const |
std::string | usage () const |
std::string | dimVariables (bool range_idxs=false) const |
bool | isEmpty () const |
bool | isValid () const |
Option< Util::Variable > | reference () const |
bool | isScalar () const |
list< Expression > | indexes () const |
bool | operator< (const Expression &other) const |
std::multimap< std::string, int > | usedVariables () const |
bool | autonomous () const |
Static Public Member Functions | |
static Expression | generate (std::string var_name, std::vector< std::string > indices) |
Protected Member Functions | |
std::vector< Expression > | usageExps () const |
Private Attributes | |
AST_Expression | _exp |
int | _order |
Friends | |
std::ostream & | operator<< (std::ostream &out, const Expression &s) |
Definition at line 64 of file expression.hpp.
MicroModelica::IR::Expression::Expression | ( | ) |
Definition at line 59 of file expression.cpp.
MicroModelica::IR::Expression::Expression | ( | AST_Expression | exp, |
int | order = 0 |
||
) |
Definition at line 57 of file expression.cpp.
|
default |
bool MicroModelica::IR::Expression::autonomous | ( | ) | const |
Definition at line 198 of file expression.cpp.
Referenced by MicroModelica::IR::Equation::initialize().
string MicroModelica::IR::Expression::dimVariables | ( | bool | range_idxs = false | ) | const |
Definition at line 114 of file expression.cpp.
References current_element.
|
inline |
Definition at line 87 of file expression.hpp.
Referenced by MicroModelica::IR::Equation::initialize(), MicroModelica::IR::operator<<(), and MicroModelica::IR::Index::variable().
|
static |
Definition at line 162 of file expression.cpp.
References print().
Referenced by MicroModelica::IR::JacGenerator::guard(), and MicroModelica::IR::JacGenerator::init().
list< Expression > MicroModelica::IR::Expression::indexes | ( | ) | const |
Definition at line 145 of file expression.cpp.
|
inline |
Definition at line 91 of file expression.hpp.
Referenced by MicroModelica::IR::operator<<().
bool MicroModelica::IR::Expression::isReference | ( | ) | const |
Definition at line 86 of file expression.cpp.
Referenced by MicroModelica::IR::Equation::isValid(), MicroModelica::IR::FunctionPrinter::mod(), and MicroModelica::IR::CompiledFunction::print().
bool MicroModelica::IR::Expression::isScalar | ( | ) | const |
Definition at line 73 of file expression.cpp.
Referenced by MicroModelica::Deps::EQSelector::getNode(), and MicroModelica::IR::QSSModelDepsGenerator::postProcess().
|
inline |
Definition at line 92 of file expression.hpp.
Referenced by MicroModelica::IR::Equation::LHSVariable().
bool MicroModelica::IR::Expression::operator< | ( | const Expression & | other | ) | const |
Definition at line 183 of file expression.cpp.
string MicroModelica::IR::Expression::print | ( | ) | const |
Definition at line 61 of file expression.cpp.
Referenced by generate().
Definition at line 94 of file expression.cpp.
Referenced by MicroModelica::IR::FunctionPrinter::mod(), MicroModelica::IR::CompiledFunction::print(), MicroModelica::IR::Index::setExp(), and MicroModelica::IR::Equation::setup().
string MicroModelica::IR::Expression::usage | ( | ) | const |
Definition at line 101 of file expression.cpp.
Referenced by MicroModelica::IR::FunctionPrinter::div().
|
protected |
Definition at line 129 of file expression.cpp.
References current_element.
std::multimap< std::string, int > MicroModelica::IR::Expression::usedVariables | ( | ) | const |
Definition at line 192 of file expression.cpp.
|
friend |
Definition at line 178 of file expression.cpp.
|
private |
Definition at line 108 of file expression.hpp.
|
private |
Definition at line 109 of file expression.hpp.