30using namespace Arccore;
34static std::vector<IMatrixConverter*>* matrix_converter_db =
nullptr;
42 if (matrix_converter_db == 0)
43 matrix_converter_db =
new std::vector<IMatrixConverter*>();
44 matrix_converter_db->push_back(func());
53 if (!matrix_converter_db) {
54 throw FatalErrorException(A_FUNCINFO,
"There is no converter registered");
57 for (std::vector<IMatrixConverter*>::const_iterator i = matrix_converter_db->begin();
58 i != matrix_converter_db->end(); ++i) {
MatrixConverterRegisterer.h.
virtual BackEndId sourceBackend() const =0
Get the source backend id.
virtual BackEndId targetBackend() const =0
Get the target backend id.
IMatrixConverter *(* ConverterCreateFunc)()
Type of the matrix converter function.
Alien::BackEndId BackEndId
Type of the backend if.
static IMatrixConverter * getConverter(BackEndId from, BackEndId to)
Get the converter from one matrix format to another one.
MatrixConverterRegisterer(ConverterCreateFunc func)
Creates a matrix converter registerer.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --