47 class interpolationWeights;
56 template<
class Type,
class Function1Type>
102 scalar
bound(
const scalar
x)
const;
117 const word& interpolationScheme,
132 virtual Type
value(
const scalar
x)
const;
135 virtual Type
integrate(
const scalar x1,
const scalar x2)
const;
labelList indices_
Cached indices.
void operator=(const TableBase< Type, Function1Type > &)=delete
Disallow default bitwise assignment.
const word const dictionary & dict
List< Tuple2< scalar, Type > > table_
Table data.
A list of keyword definitions, which are a keyword followed by any number of values (e...
A 2-tuple for storing two objects of different types.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const word & name() const
Return the name of the entry.
virtual Type value(const scalar x) const
Return Table value.
Abstract base class for interpolating in 1D.
const word interpolationScheme_
Interpolation type.
const tableBase::boundsHandling boundsHandling_
Enumeration for handling out-of-bound values.
scalarField weights_
Cached weights.
A class for handling words, derived from string.
scalar bound(const scalar x) const
Bound the argument to the table. Errors or warns, or shifts the.
virtual ~TableBase()
Destructor.
virtual Type integrate(const scalar x1, const scalar x2) const
Integrate between two (scalar) values.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
boundsHandling
Enumeration for handling out-of-bound values.
const word name_
Table name.
virtual tmp< Field< Type > > y() const
Return the dependent values.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
TableBase(const word &name, const dictionary &dict)
Construct from dictionary. Table is not populated.
virtual tmp< scalarField > x() const
Return the reference values.
A class for managing temporary objects.
const interpolationWeights & interpolator() const
Return (demand driven) interpolator.
autoPtr< interpolationWeights > interpolatorPtr_
Interpolator method.
virtual void writeEntries(Ostream &os) const
Write entries only in dictionary format.
autoPtr< scalarField > tableSamplesPtr_
Extracted values.
Base class for table with bounds handling, interpolation and integration.
virtual void writeData(Ostream &os) const
Write all table data in dictionary format.
void check() const
Check the table for size and consistency.