Alien  1.3.0
Developer documentation
Loading...
Searching...
No Matches
Alien::MatrixConverterRegisterer Class Reference

Matrix converter registerer. More...

#include <core/alien/core/backend/MatrixConverterRegisterer.h>

Collaboration diagram for Alien::MatrixConverterRegisterer:

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.

Detailed Description

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.

Member Typedef Documentation

◆ BackEndId

Type of the backend if.

Definition at line 48 of file MatrixConverterRegisterer.h.

◆ ConverterCreateFunc

typedef IMatrixConverter *(* Alien::MatrixConverterRegisterer::ConverterCreateFunc) ()

Type of the matrix converter function.

Definition at line 46 of file MatrixConverterRegisterer.h.

Constructor & Destructor Documentation

◆ MatrixConverterRegisterer()

MatrixConverterRegisterer::MatrixConverterRegisterer ( ConverterCreateFunc func)
explicit

Creates a matrix converter registerer.

Parameters
[in]funcMatrix converter function

Definition at line 40 of file MatrixConverterRegisterer.cc.

Member Function Documentation

◆ getConverter()

IMatrixConverter * MatrixConverterRegisterer::getConverter ( BackEndId from,
BackEndId to )
static

Get the converter from one matrix format to another one.

Parameters
[in]fromBackend id of the source format
[in]toBackend id of the target format
Returns
Matrix format converter

Definition at line 51 of file MatrixConverterRegisterer.cc.

References Alien::IMatrixConverter::sourceBackend(), and Alien::IMatrixConverter::targetBackend().

Referenced by Alien::MultiMatrixImpl::updateImpl(), and ~MatrixConverterRegisterer().

Here is the call graph for this function:
Here is the caller graph for this function:

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