is_interpolator Concept Reference#

DiFfRG: DiFfRG::is_interpolator Concept Reference
DiFfRG
DiFfRG::is_interpolator Concept Reference

A concept for what is an interpolator class. More...

#include <interpolation.hh>

Concept definition

template<typename T>
Checks that an interpolator class provides the required methods (get_coordinates, get_on<CPU_memory>,...
Definition interpolation.hh:22
Checks that an interpolator class provides the required type aliases (value_type, ctype).
Definition interpolation.hh:12
A concept for what is an interpolator class.
Definition interpolation.hh:42

Detailed Description

A concept for what is an interpolator class.

An interpolator class must provide the following methods:

  • get_coordinates(): returns the coordinates object used for the interpolation
  • get_on<MemorySpace>(): returns the interpolator object on the specified memory space (CPU_memory or GPU_memory)

The interpolator class must also define the following type aliases:

  • value_type: the type of the values being interpolated
Template Parameters
TThe type to check