Abstract base class for interpolating in 1D. More...
#include <interpolationWeights.H>


Public Member Functions | |
| TypeName ("interpolationWeights") | |
| Runtime type information. | |
| declareRunTimeSelectionTable (autoPtr, interpolationWeights, word,(const scalarField &samples),(samples)) | |
| interpolationWeights (const scalarField &samples) | |
| Construct from components. | |
| virtual | ~interpolationWeights ()=default |
| Destructor. | |
| virtual bool | valueWeights (const scalar t, labelList &indices, scalarField &weights) const =0 |
| Calculate weights and indices to calculate t from samples. | |
| virtual bool | integrationWeights (const scalar t1, const scalar t2, labelList &indices, scalarField &weights) const =0 |
| Calculate weights and indices to calculate integrand of t1..t2. | |
| template<class ListType1, class ListType2> | |
| Foam::outerProduct< typenameListType1::value_type, typenameListType2::value_type >::type | weightedSum (const ListType1 &f1, const ListType2 &f2) |
Static Public Member Functions | |
| static autoPtr< interpolationWeights > | New (const word &type, const scalarField &samples) |
| Return a reference to the selected interpolationWeights. | |
| template<class ListType1, class ListType2> | |
| static outerProduct< typenameListType1::value_type, typenameListType2::value_type >::type | weightedSum (const ListType1 &f1, const ListType2 &f2) |
| Helper: weighted sum. | |
Protected Member Functions | |
| interpolationWeights (const interpolationWeights &)=delete | |
| No copy construct. | |
| void | operator= (const interpolationWeights &)=delete |
| No copy assignment. | |
Protected Attributes | |
| const scalarField & | samples_ |
Abstract base class for interpolating in 1D.
Definition at line 54 of file interpolationWeights.H.
|
protecteddelete |
No copy construct.
References interpolationWeights().
Referenced by declareRunTimeSelectionTable(), interpolationWeights(), linearInterpolationWeights::linearInterpolationWeights(), operator=(), and splineInterpolationWeights::splineInterpolationWeights().


|
explicit |
Construct from components.
Definition at line 37 of file interpolationWeights.C.
References samples(), and samples_.

|
virtualdefault |
Destructor.
|
protecteddelete |
| TypeName | ( | "interpolationWeights" | ) |
Runtime type information.
| declareRunTimeSelectionTable | ( | autoPtr | , |
| interpolationWeights | , | ||
| word | , | ||
| (const scalarField &samples) | , | ||
| (samples) | ) |
|
static |
Return a reference to the selected interpolationWeights.
Definition at line 45 of file interpolationWeights.C.
References DebugInFunction, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInLookup, and samples().
Referenced by TableBase< Type >::interpolator(), and uniformInterpolatedDisplacementPointPatchVectorField::updateCoeffs().


|
pure virtual |
Calculate weights and indices to calculate t from samples.
Returns true if indices changed.
Implemented in linearInterpolationWeights, and splineInterpolationWeights.
|
pure virtual |
Calculate weights and indices to calculate integrand of t1..t2.
from samples. Returns true if indices changed.
Implemented in linearInterpolationWeights, and splineInterpolationWeights.
|
static |
Helper: weighted sum.
| Foam::outerProduct< typenameListType1::value_type, typenameListType2::value_type >::type weightedSum | ( | const ListType1 & | f1, |
| const ListType2 & | f2 ) |
Definition at line 33 of file interpolationWeightsTemplates.C.
References Foam::Zero.
|
protected |