36 #ifndef interpolationWeights_H
37 #define interpolationWeights_H
131 template<
class ListType1,
class ListType2>
134 typename ListType1::value_type,
135 typename ListType2::value_type
137 weightedSum(
const ListType1& f1,
const ListType2& f2);
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Abstract base class for interpolating in 1D.
declareRunTimeSelectionTable(autoPtr, interpolationWeights, word,(const scalarField &samples),(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.
TypeName("interpolationWeights")
Runtime type information.
static outerProduct< typename ListType1::value_type, typename ListType2::value_type >::type weightedSum(const ListType1 &f1, const ListType2 &f2)
Weighted sum helper method.
virtual bool valueWeights(const scalar t, labelList &indices, scalarField &weights) const =0
Calculate weights and indices to calculate t from samples.
void operator=(const interpolationWeights &)=delete
Disallow default bitwise assignment.
virtual ~interpolationWeights()
Destructor.
static autoPtr< interpolationWeights > New(const word &type, const scalarField &samples)
Return a reference to the selected interpolationWeights.
interpolationWeights(const scalarField &samples)
Construct from components.
const scalarField & samples_
Cached samples.
A class for handling words, derived from string.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Macros to ease declaration of run-time selection tables.
scalarField samples(nIntervals, 0)