28 #ifndef SCIMATH_FUNCTIONORDER_H
29 #define SCIMATH_FUNCTIONORDER_H
43 class RecordInterface;
128 ostream &
print(ostream &os)
const;
157 ostream &operator<<(ostream &os, const FunctionOrder<T> &par);
162 inline ostream &operator<<(ostream &os, const FunctionOrder<T> &par) {
163 return par.print(os); }
168 #ifndef CASACORE_NO_AUTO_TEMPLATES
169 #include <casacore/scimath/Functionals/FunctionOrder.tcc>
170 #endif //# CASACORE_NO_AUTO_TEMPLATES
virtual Bool fromString(String &error, const String &in)
Initialise the class from a String representation.
T & getScale(const uInt n)
ostream & print(ostream &os) const
Output the parameters.
FunctionOrder & operator=(const FunctionOrder< T > &other)
Copy assignment (deep copy)
PtrBlock< Function< T > * > function_p
List of functions (say for Combi and Compound)
Vector< Int > int_p
All data vectors can be empty.
T & getCenter(const uInt n)
void setFunction(const uInt n, Function< T > &other)
const Function< T > & getFunction(const uInt n) const
FunctionOrder()
Construct a default FunctionOrder with 0 parameters.
T & getWidth(const uInt n)
Vector< T > double_p
Double parameters.
virtual Bool toRecord(String &error, RecordInterface &out) const
Create a record from a FunctionOrder.
Int & getInt(const uInt n)
Get and set the various parameters (no check for index range).
String string_p
String parameters.
bool Bool
Define the standard types used by Casacore.
A drop-in replacement for Block<T*>.
Vector< T > width_p
Width of x (ndim)
String: the storage and methods of handling collections of characters.
virtual ~FunctionOrder()
Destructor.
Container of function description details.
virtual Bool fromRecord(String &error, const RecordInterface &in)
Create a FunctionOrder from a record Error messages are postfixed to error.
Abstract base class for Record classes.
Vector< T > scale_p
Scale of y (length 1)
Vector< T > center_p
Centers of x (length ndim)
virtual const String & ident() const
Get identification of record.