Matrix converter registerer. More...
#include <core/alien/core/backend/MatrixConverterRegisterer.h>
Public Types | |
| typedef IMatrixConverter *(* | ConverterCreateFunc) () |
| Type of the matrix converter function. | |
| typedef Alien::BackEndId | BackEndId |
| Type of the backend if. | |
Public Member Functions | |
| MatrixConverterRegisterer (ConverterCreateFunc func) | |
| Creates a matrix converter registerer. | |
| ~MatrixConverterRegisterer ()=default | |
| Free resources. | |
Static Public Member Functions | |
| static IMatrixConverter * | getConverter (BackEndId from, BackEndId to) |
| Get the converter from one matrix format to another one. | |
Matrix converter registerer.
Allows to register a matrix converter to convert a matrix from a format to another
Definition at line 42 of file MatrixConverterRegisterer.h.
| typedef Alien::BackEndId Alien::MatrixConverterRegisterer::BackEndId |
Type of the backend if.
Definition at line 48 of file MatrixConverterRegisterer.h.
| typedef IMatrixConverter *(* Alien::MatrixConverterRegisterer::ConverterCreateFunc) () |
Type of the matrix converter function.
Definition at line 46 of file MatrixConverterRegisterer.h.
|
explicit |
Creates a matrix converter registerer.
| [in] | func | Matrix converter function |
Definition at line 40 of file MatrixConverterRegisterer.cc.
|
static |
Get the converter from one matrix format to another one.
| [in] | from | Backend id of the source format |
| [in] | to | Backend id of the target format |
Definition at line 51 of file MatrixConverterRegisterer.cc.
References Alien::IMatrixConverter::sourceBackend(), and Alien::IMatrixConverter::targetBackend().
Referenced by ~MatrixConverterRegisterer().