casa
5.7.0-16
|
Container of function description details. More...
#include <FunctionOrder.h>
Public Member Functions | |
FunctionOrder () | |
Construct a default FunctionOrder with 0 parameters. More... | |
FunctionOrder (const FunctionOrder< T > &other) | |
Copy constructor (deep copy) More... | |
virtual | ~FunctionOrder () |
Destructor. More... | |
FunctionOrder & | operator= (const FunctionOrder< T > &other) |
Copy assignment (deep copy) More... | |
Int & | getInt (const uInt n) |
Get and set the various parameters (no check for index range). More... | |
const Int & | getInt (const uInt n) const |
T & | getPar (const uInt n) |
const T & | getPar (const uInt n) const |
String & | getString () |
const String & | getString () const |
T & | getScale (const uInt n) |
const T & | getScale (const uInt n) const |
T & | getCenter (const uInt n) |
const T & | getCenter (const uInt n) const |
T & | getWidth (const uInt n) |
const T & | getWidth (const uInt n) const |
const Function< T > & | getFunction (const uInt n) const |
void | setFunction (const uInt n, Function< T > &other) |
virtual Bool | fromRecord (String &error, const RecordInterface &in) |
Create a FunctionOrder from a record Error messages are postfixed to error. More... | |
virtual Bool | fromString (String &error, const String &in) |
Initialise the class from a String representation. More... | |
virtual Bool | toRecord (String &error, RecordInterface &out) const |
Create a record from a FunctionOrder. More... | |
virtual const String & | ident () const |
Get identification of record. More... | |
ostream & | print (ostream &os) const |
Output the parameters. More... | |
Public Member Functions inherited from casacore::RecordTransformable | |
virtual | ~RecordTransformable () |
The destructor must be virtual so that the destructor of derived classes is actually used. More... | |
Private Attributes | |
Vector< Int > | int_p |
All data vectors can be empty. More... | |
Vector< T > | double_p |
Double parameters. More... | |
String | string_p |
String parameters. More... | |
PtrBlock< Function< T > * > | function_p |
List of functions (say for Combi and Compound) More... | |
Vector< T > | scale_p |
Scale of y (length 1) More... | |
Vector< T > | center_p |
Centers of x (length ndim) More... | |
Vector< T > | width_p |
Width of x (ndim) More... | |
Container of function description details.
Public interface
FunctionOrder
is used to provide an interface to an entity which has special fixed parameters (like dimension of Gaussian; oder of Polynomial). This is useful, for example, in implementinggeneric function factories.
See the FunctionHolder class for a usage interface.
Generically manipulatable parameters are important for Glish interface
T
must have a default constructor, assignment operator, and copy constructor (for the Vector interface). Definition at line 81 of file FunctionOrder.h.
casacore::FunctionOrder< T >::FunctionOrder | ( | ) |
Construct a default FunctionOrder with 0 parameters.
casacore::FunctionOrder< T >::FunctionOrder | ( | const FunctionOrder< T > & | other | ) |
Copy constructor (deep copy)
|
virtual |
Destructor.
|
virtual |
Create a FunctionOrder from a record Error messages are postfixed to error.
Implements casacore::RecordTransformable.
|
virtual |
Initialise the class from a String representation.
A string cannot contain enough information for many objects. Hence the default implementation of this class returns False, indicating that the class could not be initialised and an error message is appended to the supplied string. If the class can be initialised from a string then this function should be overridden.
Reimplemented from casacore::RecordTransformable.
T& casacore::FunctionOrder< T >::getCenter | ( | const uInt | n | ) |
const T& casacore::FunctionOrder< T >::getCenter | ( | const uInt | n | ) | const |
const Function<T>& casacore::FunctionOrder< T >::getFunction | ( | const uInt | n | ) | const |
Int& casacore::FunctionOrder< T >::getInt | ( | const uInt | n | ) |
Get and set the various parameters (no check for index range).
Automatic extension for write.
const Int& casacore::FunctionOrder< T >::getInt | ( | const uInt | n | ) | const |
T& casacore::FunctionOrder< T >::getPar | ( | const uInt | n | ) |
const T& casacore::FunctionOrder< T >::getPar | ( | const uInt | n | ) | const |
T& casacore::FunctionOrder< T >::getScale | ( | const uInt | n | ) |
const T& casacore::FunctionOrder< T >::getScale | ( | const uInt | n | ) | const |
String& casacore::FunctionOrder< T >::getString | ( | ) |
const String& casacore::FunctionOrder< T >::getString | ( | ) | const |
T& casacore::FunctionOrder< T >::getWidth | ( | const uInt | n | ) |
const T& casacore::FunctionOrder< T >::getWidth | ( | const uInt | n | ) | const |
|
virtual |
Get identification of record.
Reimplemented from casacore::RecordTransformable.
FunctionOrder& casacore::FunctionOrder< T >::operator= | ( | const FunctionOrder< T > & | other | ) |
Copy assignment (deep copy)
ostream& casacore::FunctionOrder< T >::print | ( | ostream & | os | ) | const |
Output the parameters.
void casacore::FunctionOrder< T >::setFunction | ( | const uInt | n, |
Function< T > & | other | ||
) |
|
virtual |
Create a record from a FunctionOrder.
Error messages are postfixed to error.
Implements casacore::RecordTransformable.
|
private |
Centers of x (length ndim)
Definition at line 145 of file FunctionOrder.h.
|
private |
Double parameters.
Definition at line 137 of file FunctionOrder.h.
|
private |
List of functions (say for Combi and Compound)
Definition at line 141 of file FunctionOrder.h.
|
private |
All data vectors can be empty.
Integer details (order etc)
Definition at line 135 of file FunctionOrder.h.
|
private |
Scale of y (length 1)
Definition at line 143 of file FunctionOrder.h.
|
private |
String parameters.
Definition at line 139 of file FunctionOrder.h.
|
private |
Width of x (ndim)
Definition at line 147 of file FunctionOrder.h.