MicroModelicaCCompiler  4.5.3
MicroModelica::IR::ModelMatrixGenerator< NT, N, Config > Class Template Reference

#include <model_matrix_gen.hpp>

Collaboration diagram for MicroModelica::IR::ModelMatrixGenerator< NT, N, Config >:

Public Member Functions

 ModelMatrixGenerator ()
 
 ~ModelMatrixGenerator ()=default
 
void init (SB::Deps::SetVertex vertex)
 
void end ()
 
void postProcess (SB::Deps::SetVertex vertex)
 
void visitF (SB::Deps::SetVertex vertex, SB::Deps::VariableDep var_dep)
 
void visitF (SB::Deps::SetVertex vertex, SB::Deps::VariableDep var_dep, SB::Deps::SetVertex gen_vertex)
 
void visitG (SB::Deps::SetVertex v_vertex, SB::Deps::SetVertex g_vertex, SB::Deps::VariableDep var_dep, int index_shift)
 
void visitG (SB::Deps::SetVertex v_vertex, SB::Deps::SetVertex g_vertex, SB::PWLMap use_map, SB::Deps::LMapExp use_map_exp, Expression use_exp, SB::PWLMap def_map, SB::Deps::LMapExp def_map_exp, SB::Set intersection)
 
void initG (SB::Deps::SetVertex vertex, SB::Deps::SetEdge edge)
 
ModelMatrixDef def ()
 
void setup (Config config)
 
Config config ()
 

Protected Member Functions

void addCode (MatrixCode dep_code, std::stringstream &code)
 
std::string component (MATRIX::Method method, MATRIX::Mode mode) const
 
void printMatrix (MATRIX::Method method, MATRIX::Mode mode)
 

Protected Attributes

ModelMatrixDef _model_matrix_def
 
int _tabs
 
DepsMap _deps
 
bool _post_process_eval
 
Config _config
 

Detailed Description

template<typename NT, typename N, typename Config>
class MicroModelica::IR::ModelMatrixGenerator< NT, N, Config >

Definition at line 118 of file model_matrix_gen.hpp.

Constructor & Destructor Documentation

◆ ModelMatrixGenerator()

template<typename NT , typename N , typename Config >
MicroModelica::IR::ModelMatrixGenerator< NT, N, Config >::ModelMatrixGenerator

◆ ~ModelMatrixGenerator()

template<typename NT , typename N , typename Config >
MicroModelica::IR::ModelMatrixGenerator< NT, N, Config >::~ModelMatrixGenerator ( )
default

Member Function Documentation

◆ addCode()

template<typename NT , typename N , typename Config >
void MicroModelica::IR::ModelMatrixGenerator< NT, N, Config >::addCode ( MatrixCode  dep_code,
std::stringstream &  code 
)
protected

Definition at line 76 of file model_matrix_gen.cpp.

◆ component()

template<typename NT , typename N , typename Config >
string MicroModelica::IR::ModelMatrixGenerator< NT, N, Config >::component ( MATRIX::Method  method,
MATRIX::Mode  mode 
) const
protected

Definition at line 89 of file model_matrix_gen.cpp.

◆ config()

template<typename NT , typename N , typename Config >
Config MicroModelica::IR::ModelMatrixGenerator< NT, N, Config >::config

Definition at line 70 of file model_matrix_gen.cpp.

◆ def()

template<typename NT , typename N , typename Config >
ModelMatrixDef MicroModelica::IR::ModelMatrixGenerator< NT, N, Config >::def

Definition at line 260 of file model_matrix_gen.cpp.

◆ end()

template<typename NT , typename N , typename Config >
void MicroModelica::IR::ModelMatrixGenerator< NT, N, Config >::end

Definition at line 204 of file model_matrix_gen.cpp.

◆ init()

template<typename NT , typename N , typename Config >
void MicroModelica::IR::ModelMatrixGenerator< NT, N, Config >::init ( SB::Deps::SetVertex  vertex)

Definition at line 199 of file model_matrix_gen.cpp.

◆ initG()

template<typename NT , typename N , typename Config >
void MicroModelica::IR::ModelMatrixGenerator< NT, N, Config >::initG ( SB::Deps::SetVertex  vertex,
SB::Deps::SetEdge  edge 
)

Definition at line 255 of file model_matrix_gen.cpp.

◆ postProcess()

template<typename NT , typename N , typename Config >
void MicroModelica::IR::ModelMatrixGenerator< NT, N, Config >::postProcess ( SB::Deps::SetVertex  vertex)

Definition at line 186 of file model_matrix_gen.cpp.

◆ printMatrix()

template<typename NT , typename N , typename Config >
void MicroModelica::IR::ModelMatrixGenerator< NT, N, Config >::printMatrix ( MATRIX::Method  method,
MATRIX::Mode  mode 
)
protected

Definition at line 104 of file model_matrix_gen.cpp.

◆ setup()

template<typename NT , typename N , typename Config >
void MicroModelica::IR::ModelMatrixGenerator< NT, N, Config >::setup ( Config  config)

Definition at line 64 of file model_matrix_gen.cpp.

References MicroModelica::IR::MatrixCode::end.

◆ visitF() [1/2]

template<typename NT , typename N , typename Config >
void MicroModelica::IR::ModelMatrixGenerator< NT, N, Config >::visitF ( SB::Deps::SetVertex  vertex,
SB::Deps::VariableDep  var_dep 
)

Definition at line 209 of file model_matrix_gen.cpp.

References MicroModelica::IR::findDep().

Here is the call graph for this function:

◆ visitF() [2/2]

template<typename NT , typename N , typename Config >
void MicroModelica::IR::ModelMatrixGenerator< NT, N, Config >::visitF ( SB::Deps::SetVertex  vertex,
SB::Deps::VariableDep  var_dep,
SB::Deps::SetVertex  gen_vertex 
)

Definition at line 223 of file model_matrix_gen.cpp.

◆ visitG() [1/2]

template<typename NT , typename N , typename Config >
void MicroModelica::IR::ModelMatrixGenerator< NT, N, Config >::visitG ( SB::Deps::SetVertex  v_vertex,
SB::Deps::SetVertex  g_vertex,
SB::Deps::VariableDep  var_dep,
int  index_shift 
)

Definition at line 228 of file model_matrix_gen.cpp.

◆ visitG() [2/2]

template<typename NT , typename N , typename Config >
void MicroModelica::IR::ModelMatrixGenerator< NT, N, Config >::visitG ( SB::Deps::SetVertex  v_vertex,
SB::Deps::SetVertex  g_vertex,
SB::PWLMap  use_map,
SB::Deps::LMapExp  use_map_exp,
Expression  use_exp,
SB::PWLMap  def_map,
SB::Deps::LMapExp  def_map_exp,
SB::Set  intersection 
)

Definition at line 248 of file model_matrix_gen.cpp.

Member Data Documentation

◆ _config

template<typename NT , typename N , typename Config >
Config MicroModelica::IR::ModelMatrixGenerator< NT, N, Config >::_config
protected

Definition at line 146 of file model_matrix_gen.hpp.

◆ _deps

template<typename NT , typename N , typename Config >
DepsMap MicroModelica::IR::ModelMatrixGenerator< NT, N, Config >::_deps
protected

Definition at line 144 of file model_matrix_gen.hpp.

◆ _model_matrix_def

template<typename NT , typename N , typename Config >
ModelMatrixDef MicroModelica::IR::ModelMatrixGenerator< NT, N, Config >::_model_matrix_def
protected

Definition at line 142 of file model_matrix_gen.hpp.

◆ _post_process_eval

template<typename NT , typename N , typename Config >
bool MicroModelica::IR::ModelMatrixGenerator< NT, N, Config >::_post_process_eval
protected

Definition at line 145 of file model_matrix_gen.hpp.

◆ _tabs

template<typename NT , typename N , typename Config >
int MicroModelica::IR::ModelMatrixGenerator< NT, N, Config >::_tabs
protected

Definition at line 143 of file model_matrix_gen.hpp.


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