Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.atnf.csiro.au/computing/software/casacore/casacore-1.2.0/doc/html/classcasa_1_1FunctionOrder.html
Дата изменения: Unknown Дата индексирования: Mon Feb 14 22:13:03 2011 Кодировка: Поисковые слова: п п п п п п п п п п п п |
Container of function description details. More...
#include <FunctionOrder.h>
Public Member Functions | |
FunctionOrder () | |
Construct a default FunctionOrder with 0 parameters. | |
FunctionOrder (const FunctionOrder< T > &other) | |
Copy constructor (deep copy). | |
virtual | ~FunctionOrder () |
Destructor. | |
FunctionOrder & | operator= (const FunctionOrder< T > &other) |
Copy assignment (deep copy). | |
Int & | getInt (const uInt n) |
Get and set the various parameters (no check for index range). | |
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. | |
virtual Bool | fromString (String &error, const String &in) |
Initialise the class from a String representation. | |
virtual Bool | toRecord (String &error, RecordInterface &out) const |
Create a record from a FunctionOrder. | |
virtual const String & | ident () const |
Get identification of record. | |
ostream & | print (ostream &os) const |
Output the parameters. | |
Private Attributes | |
Vector< Int > | int_p |
All data vectors can be empty. | |
Vector< T > | double_p |
Double parameters. | |
String | string_p |
String parameters. | |
PtrBlock< Function< T > * > | function_p |
List of functions (say for Combi and Compound). | |
Vector< T > | scale_p |
Scale of y (length 1). | |
Vector< T > | center_p |
Centers of x (length ndim). | |
Vector< T > | width_p |
Width of x (ndim). |
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.
casa::FunctionOrder< T >::FunctionOrder | ( | ) |
Construct a default FunctionOrder with 0 parameters.
casa::FunctionOrder< T >::FunctionOrder | ( | const FunctionOrder< T > & | other | ) |
Copy constructor (deep copy).
virtual casa::FunctionOrder< T >::~FunctionOrder | ( | ) | [virtual] |
Destructor.
virtual Bool casa::FunctionOrder< T >::fromRecord | ( | String & | error, | |
const RecordInterface & | in | |||
) | [virtual] |
Create a FunctionOrder from a record Error messages are postfixed to error.
Implements casa::RecordTransformable.
virtual Bool casa::FunctionOrder< T >::fromString | ( | String & | error, | |
const String & | inString | |||
) | [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 casa::RecordTransformable.
T& casa::FunctionOrder< T >::getCenter | ( | const uInt | n | ) |
const T& casa::FunctionOrder< T >::getCenter | ( | const uInt | n | ) | const |
const Function<T>& casa::FunctionOrder< T >::getFunction | ( | const uInt | n | ) | const |
Int& casa::FunctionOrder< T >::getInt | ( | const uInt | n | ) |
Get and set the various parameters (no check for index range).
Automatic extension for write.
const Int& casa::FunctionOrder< T >::getInt | ( | const uInt | n | ) | const |
const T& casa::FunctionOrder< T >::getPar | ( | const uInt | n | ) | const |
T& casa::FunctionOrder< T >::getPar | ( | const uInt | n | ) |
T& casa::FunctionOrder< T >::getScale | ( | const uInt | n | ) |
const T& casa::FunctionOrder< T >::getScale | ( | const uInt | n | ) | const |
String& casa::FunctionOrder< T >::getString | ( | ) |
const String& casa::FunctionOrder< T >::getString | ( | ) | const |
const T& casa::FunctionOrder< T >::getWidth | ( | const uInt | n | ) | const |
T& casa::FunctionOrder< T >::getWidth | ( | const uInt | n | ) |
virtual const String& casa::FunctionOrder< T >::ident | ( | ) | const [virtual] |
Get identification of record.
Reimplemented from casa::RecordTransformable.
FunctionOrder& casa::FunctionOrder< T >::operator= | ( | const FunctionOrder< T > & | other | ) |
Copy assignment (deep copy).
ostream& casa::FunctionOrder< T >::print | ( | ostream & | os | ) | const |
Output the parameters.
void casa::FunctionOrder< T >::setFunction | ( | const uInt | n, | |
Function< T > & | other | |||
) |
virtual Bool casa::FunctionOrder< T >::toRecord | ( | String & | error, | |
RecordInterface & | out | |||
) | const [virtual] |
Create a record from a FunctionOrder.
Error messages are postfixed to error.
Implements casa::RecordTransformable.
Vector<T> casa::FunctionOrder< T >::center_p [private] |
Centers of x (length ndim).
Definition at line 145 of file FunctionOrder.h.
Vector<T> casa::FunctionOrder< T >::double_p [private] |
Double parameters.
Definition at line 137 of file FunctionOrder.h.
PtrBlock<Function<T> *> casa::FunctionOrder< T >::function_p [private] |
List of functions (say for Combi and Compound).
Definition at line 141 of file FunctionOrder.h.
Vector<Int> casa::FunctionOrder< T >::int_p [private] |
All data vectors can be empty.
Integer details (order etc)
Definition at line 135 of file FunctionOrder.h.
Vector<T> casa::FunctionOrder< T >::scale_p [private] |
Scale of y (length 1).
Definition at line 143 of file FunctionOrder.h.
String casa::FunctionOrder< T >::string_p [private] |
String parameters.
Definition at line 139 of file FunctionOrder.h.
Vector<T> casa::FunctionOrder< T >::width_p [private] |
Width of x (ndim).
Definition at line 147 of file FunctionOrder.h.