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
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.
FunctionHolder(const FunctionHolder< T > &other)
Copy a holder (copy semantics)
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
Bool isFilled
Filled list?
Bool isEmpty() const
Check the the FunctionHolder holds the specified type.
Bool order
Order (True if needed)
FunctionHolder(const Function< T > &in)
Create from a Function (copy made)
Bool addFunction(const Function< T > &fnc)
Add a function.
this file contains all the compiler specific defines
void setParameters(Function< AutoDiff< T > > *&fn, const Vector< T > ¶ms)
virtual const String & ident() const
Get identification of record.
Bool putType(String &error, RecordInterface &out) const
Aid for to/from Record, String.
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.
Bool getType(String &error, Function< U > *&fn)
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.