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