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

#include <user_def_matrix.hpp>

Collaboration diagram for MicroModelica::IR::UserDefMatrix< Config, N >:

Public Member Functions

 UserDefMatrix (Config matrix_config)
 
 ~UserDefMatrix ()=default
 
void compute ()
 
ModelMatrixDef def ()
 
std::vector< std::string > accessVector ()
 

Protected Member Functions

string component (MATRIX::Method method, MATRIX::Mode mode) const
 
void printMatrix (MATRIX::Method method, MATRIX::Mode mode)
 
AST_Expression transformExp (AST_Expression exp)
 

Protected Attributes

ModelMatrixDef _model_matrix_def
 
std::vector< std::string > _access_vector
 
Config _matrix_config
 

Detailed Description

template<typename Config, typename N>
class MicroModelica::IR::UserDefMatrix< Config, N >

Definition at line 64 of file user_def_matrix.hpp.

Constructor & Destructor Documentation

◆ UserDefMatrix()

template<typename Config , typename N >
MicroModelica::IR::UserDefMatrix< Config, N >::UserDefMatrix ( Config  matrix_config)

Definition at line 50 of file user_def_matrix.cpp.

◆ ~UserDefMatrix()

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

Member Function Documentation

◆ accessVector()

template<typename Config , typename N >
std::vector< std::string > MicroModelica::IR::UserDefMatrix< Config, N >::accessVector

Definition at line 204 of file user_def_matrix.cpp.

◆ component()

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

Definition at line 64 of file user_def_matrix.cpp.

◆ compute()

template<typename Config , typename N >
void MicroModelica::IR::UserDefMatrix< Config, N >::compute

Definition at line 55 of file user_def_matrix.cpp.

◆ def()

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

Definition at line 198 of file user_def_matrix.cpp.

◆ printMatrix()

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

Definition at line 116 of file user_def_matrix.cpp.

References MicroModelica::Util::Error::add(), EM_IR, EM_WRONG_EXP, MicroModelica::Util::ER_Fatal, and MicroModelica::Util::Error::instance().

Here is the call graph for this function:

◆ transformExp()

template<typename Config , typename N >
AST_Expression MicroModelica::IR::UserDefMatrix< Config, N >::transformExp ( AST_Expression  exp)
protected

Definition at line 79 of file user_def_matrix.cpp.

Member Data Documentation

◆ _access_vector

template<typename Config , typename N >
std::vector<std::string> MicroModelica::IR::UserDefMatrix< Config, N >::_access_vector
protected

Definition at line 97 of file user_def_matrix.hpp.

◆ _matrix_config

template<typename Config , typename N >
Config MicroModelica::IR::UserDefMatrix< Config, N >::_matrix_config
protected

Definition at line 98 of file user_def_matrix.hpp.

◆ _model_matrix_def

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

Definition at line 96 of file user_def_matrix.hpp.


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