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