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