28 #ifndef SCIMATH_FUNCTIONHOLDER_H
29 #define SCIMATH_FUNCTIONHOLDER_H
222 #ifndef CASACORE_NO_AUTO_TEMPLATES
223 #include <casacore/scimath/Functionals/FunctionHolder.tcc>
224 #endif //# CASACORE_NO_AUTO_TEMPLATES
A 1-D Specialization of the Array class.
virtual Bool fromRecord(String &error, const RecordInterface &in)
Create a Function from a record.
const Vector< String > & names() const
Get the known names.
Bool getRecord(String &error, Function< U > *&fn, const RecordInterface &in)
const Function< T > & asFunction() const
Get a specific Function from the holder (with lifetime as long as holder exists). ...
Vector< String > nam_p
List of known names.
Bool isEmpty() const
Check the the FunctionHolder holds the specified type.
Structure to hold functional status.
virtual Bool fromString(String &error, const String &in)
Initialise the class from a String representation.
Types nf_p
Aids (only filled after a succesful to/fromRecord.
PtrHolder< RecordInterface > mode_p
Bool order
Order (True if needed)
FunctionHolder & operator=(const FunctionHolder< T > &other)
Assignment (copy semantics)
Hold and delete pointers not deleted by object destructors.
A holder for Functions to enable record conversions.
Bool getType(String &error, Function< U > *&fn, const RecordInterface &in)
virtual Bool toRecord(String &error, RecordInterface &out) const
Create a record from a Function.
bool Bool
Define the standard types used by Casacore.
Class that computes partial derivatives by automatic differentiation.
Bool isFilled
Filled list?
virtual const String & ident() const
Get identification of record.
Bool putType(String &error, RecordInterface &out) const
Aid for to/from Record, String.
FunctionHolder()
Creates an empty holder.
void init() const
Initialise and check the name list.
String: the storage and methods of handling collections of characters.
Abstract base class for Record classes.
Types type() const
Get the type of currently filled holder.
PtrHolder< Function< T > > hold_p
Pointer to a Function.
Bool addFunction(const Function< T > &fnc)
Add a function.
void setParameters(Function< T > *&fn, const Vector< T > ¶ms)
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.