Alien  1.3.0
User documentation
Loading...
Searching...
No Matches
Alien::VectorConverterRegisterer Class Reference

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 IVectorConvertergetConverter (BackEndId from, BackEndId to)
 Get the converter from one vector format to another one.

Detailed Description

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.

Member Typedef Documentation

◆ ConverterCreateFunc

typedef IVectorConverter *(* Alien::VectorConverterRegisterer::ConverterCreateFunc) ()

Type of the vector converter function.

Definition at line 46 of file VectorConverterRegisterer.h.

Constructor & Destructor Documentation

◆ VectorConverterRegisterer()

Alien::VectorConverterRegisterer::VectorConverterRegisterer ( ConverterCreateFunc func)
explicit

Creates a vector converter registerer.

Parameters
[in]funcvector converter function

Definition at line 45 of file VectorConverterRegisterer.cc.

Member Function Documentation

◆ getConverter()

IVectorConverter * Alien::VectorConverterRegisterer::getConverter ( BackEndId from,
BackEndId to )
static

Get the converter from one vector format to another one.

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

Definition at line 56 of file VectorConverterRegisterer.cc.

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

Referenced by ~VectorConverterRegisterer().


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