29 #ifndef COMPONENTS_SPECTRALLIST_H
30 #define COMPONENTS_SPECTRALLIST_H
38 class RecordInterface;
40 template <
class T>
class Vector;
46 class SpectralElement;
194 #ifndef CASACORE_NO_AUTO_TEMPLATES
195 #include <components/SpectralComponents/SpectralList2.tcc>
196 #endif //# CASACORE_NO_AUTO_TEMPLATES
~SpectralList()
Destructor.
A 1-D Specialization of the Array class.
std::vector< double > Vector
ostream & operator<<(ostream &os, const PageHeaderCache &cache)
void insert(const SpectralElement &in)
Insert in sort order in the list.
casacore::Double operator()(const casacore::Double x) const
Evaluate the value of the sum of the elements at x.
casacore::Bool add(const SpectralElement &in)
Add elements to list (false if list has max length and full)
SpectralList()
Default constructor creates an empty list.
casacore::Bool set(const SpectralElement &in, const casacore::uInt which)
Set an element in the list.
casacore::Int compar(const SpectralElement &p1, const SpectralElement &p2) const
Compare two elements.
Describes (a set of related) spectral lines.
casacore::uInt nmax_p
Max length allowed of list.
const SpectralElement * operator[](const casacore::uInt n) const
Get element n.
void sort()
casacore::Sort the list on the first parameter (i.e.
bool Bool
Define the standard types used by Casacore.
void residual(casacore::Vector< MT > &y) const
Calculate the residuals at the points x; by subtracting the model from y.
A drop-in replacement for Block<T*>.
casacore::uInt nelements() const
Get the number of elements in list.
casacore::PtrBlock< SpectralElement * > list_p
casacore::List of elements
SpectralList & operator=(const SpectralList &other)
Assignment (copy semantics)
A set of SpectralElements.
casacore::Bool fromRecord(casacore::String &errMsg, const casacore::RecordInterface &container)
Convert to and from a casacore::Record (see details in SpectralElement)
String: the storage and methods of handling collections of characters.
Abstract base class for Record classes.
casacore::Bool toRecord(casacore::RecordInterface &container) const
void clear()
Clear the list.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.
void evaluate(casacore::Vector< MT > &y) const
Get the profile values for all elements in list.