Template Class LazyValueSource

Class Documentation

template<size_t NF>
class LazyValueSource

Supplies the function values at the points of a Mesh2DInterpolator’s mesh on demand.

Lets a Mesh2DInterpolator represent a mesh whose function values are never stored in full – e.g. a slice of a Mesh3DInterpolator at an arbitrary z, whose values are themselves interpolated in z only at the points a query actually needs (see Mesh3DInterpolator::lazySliceConstZ()). Implementations must be safe to call concurrently from multiple threads.

Template Parameters:

NF – Number of quantities interpolated

Public Functions

LazyValueSource() = default
virtual ~LazyValueSource() = default
LazyValueSource(const LazyValueSource&) = default
LazyValueSource(LazyValueSource&&) = default
auto operator=(const LazyValueSource&) -> LazyValueSource& = default
auto operator=(LazyValueSource&&) -> LazyValueSource& = default
virtual auto value(size_t i, size_t j) const -> std::array<double, NF> = 0

Return the function values at one mesh point.

Parameters:
  • i – Index of the point in the x direction

  • j – Index of the point in the y direction

Returns:

The NF function values at mesh point (i,j)