Jet  v1.3.3
Public Member Functions | List of all members
jet::CubicArraySampler< T, R, 1 > Class Template Referencefinal

1-D cubic array sampler class. More...

#include <jet/array_samplers1.h>

Public Member Functions

 CubicArraySampler (const ConstArrayAccessor1< T > &accessor, R gridSpacing, R gridOrigin)
 Constructs a sampler using array accessor, spacing between the elements, and the position of the first array element. More...
 
 CubicArraySampler (const CubicArraySampler &other)
 Copy constructor. More...
 
operator() (R pt) const
 Returns sampled value at point pt. More...
 
std::function< T(R)> functor () const
 Returns a funtion object that wraps this instance. More...
 

Detailed Description

template<typename T, typename R>
class jet::CubicArraySampler< T, R, 1 >

1-D cubic array sampler class.

This class provides cubic sampling interface for a given 1-D array.

Template Parameters
T- The value type to sample.
R- The real number type.

Constructor & Destructor Documentation

◆ CubicArraySampler() [1/2]

template<typename T , typename R >
jet::CubicArraySampler< T, R, 1 >::CubicArraySampler ( const ConstArrayAccessor1< T > &  accessor,
gridSpacing,
gridOrigin 
)
explicit

Constructs a sampler using array accessor, spacing between the elements, and the position of the first array element.

Parameters
[in]accessorThe array accessor.
[in]gridSpacingThe grid spacing.
[in]gridOriginThe grid origin.

◆ CubicArraySampler() [2/2]

template<typename T , typename R >
jet::CubicArraySampler< T, R, 1 >::CubicArraySampler ( const CubicArraySampler< T, R, 1 > &  other)

Copy constructor.

Member Function Documentation

◆ functor()

template<typename T , typename R >
std::function<T(R)> jet::CubicArraySampler< T, R, 1 >::functor ( ) const

Returns a funtion object that wraps this instance.

◆ operator()()

template<typename T , typename R >
T jet::CubicArraySampler< T, R, 1 >::operator() ( pt) const

Returns sampled value at point pt.


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