Go to the documentation of this file.
28 #ifndef SCIMATH_FUNCTIONPARAM_H
29 #define SCIMATH_FUNCTIONPARAM_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/Arrays/Vector.h>
34 #include <casacore/scimath/Functionals/FunctionTraits.h>
37 #include <casacore/casa/iosfwd.h>
178 ostream &
print(ostream &os)
const;
210 return par.
print(os); }
215 #ifndef CASACORE_NO_AUTO_TEMPLATES
216 #include <casacore/scimath/Functionals/FunctionParam.tcc>
217 #endif //# CASACORE_NO_AUTO_TEMPLATES
uInt nelements() const
Return the number of parameters.
void clearMaskedPtr() const
Clear the masked parameter list.
Vector< T > & getMaskedParameters() const
All masked parameters only.
uInt npar_p
Number of parameters.
void setMaskedParameters(Vector< T > &in)
void createMaskedPtr() const
Create a cached version of the masked parameter list.
T & operator[](const uInt n)
Manipulate the nth parameter (0-based) with no index check.
Vector< T > * maskedPtr_p
Cached masked data.
FunctionParam(const FunctionParam< W > &other)
Copy from different type (deep copy)
ostream & operator<<(ostream &os, const FunctionParam< T > &par)
Output declaration.
Vector< Bool > mask_p
Masks.
const Vector< Bool > & getParamMasks() const
Get all parameter masks at once.
static void setValue(T &out, const T &val, const uInt, const uInt)
Set a value (and possible derivative)
void setParamMasks(const Vector< Bool > &masks)
Set all parameter masks at once.
const Bool & mask(const uInt n) const
this file contains all the compiler specific defines
const T & parameter(const uInt n) const
const Vector< T > & getParameters() const
Get all parameters at once.
Container of function parameters with masking flags.
Vector< T > param_p
Parameters.
Bool operator!=(const FunctionParam< T > &other) const
const T & operator[](const uInt n) const
T & parameter(const uInt n)
Manipulate the nth parameter (0-based) with no index check.
Bool & mask(const uInt n)
Manipulate the mask associated with the nth parameter (e.g.
void setParameters(const Vector< T > ¶ms)
Set all the parameters at once.
uInt nMaskedParameters() const
Operations on the masked parameters only.
bool Bool
Define the standard types used by Casacore.
FunctionParam & operator=(const FunctionParam< T > &other)
Copy assignment (deep copy)
ostream & operator<<(ostream &os, const IComplex &)
Show on ostream.
Bool operator==(const FunctionParam< T > &other) const
Compare two parameter sets for equal size, values and masks.
A 1-D Specialization of the Array class.
ostream & print(ostream &os) const
Output the parameters.
virtual ~FunctionParam()
Destructor.
Function data types for parameters and arguments.
FunctionParam()
Construct a default FunctionParam with 0 parameters.