MeasBase.h
Classes
- MeasBase -- Base class for all measures (full description)
template<class Mv, class Mr> class MeasBase : public Measure
Interface
- Public Members
- MeasBase()
- MeasBase(const MeasBase<Mv,Mr> &other)
- MeasBase<Mv,Mr> &operator=(const MeasBase<Mv,Mr> &other)
- MeasBase(const Mv &dt, const Mr &rf)
- MeasBase(const Mv &dt, uInt rf)
- MeasBase(const Quantity &dt, const Mr &rf)
- MeasBase(const Quantity &dt, uInt rf)
- MeasBase(const Measure *dt)
- MeasBase(const Mr &rf)
- MeasBase(const uInt rf)
- virtual ~MeasBase()
- virtual Bool areYou(const String &tp) const
- virtual void assured(const String &tp) const
- void set(const Mv &dt)
- void set(const Mr &rf)
- void set(const Mv &dt, const Mr &rf)
- void set(const Unit &inunit)
- virtual void set(const MeasValue &dt)
- virtual Bool putValue(const Vector<Quantum<Double> > &in)
- Mr getRef() const
- const Mv &getValue() const
- const Unit &getUnit() const
- virtual MRBase *getRefPtr() const
- virtual const MeasValue * const getData() const
- virtual void print(ostream &os) const
- Private Members
- void clear()
Review Status
- Date Reviewed:
- yyyy/mm/dd
- Programs:
- Tests:
Prerequisite
Etymology
Measure and Base
Synopsis
MeasBase forms derived Measure class for all actual measures
Example
Motivation
To have most work in single routine
To Do
Member Description
In the following constructors and other functions, all
MeasRef can be replaced with simple Measure::TYPE
where no offsets or frames are needed in the reference. For reasons
of compiler limitations the formal arguments had to be specified as
uInt rather than the Measure enums that should be used as actual
arguments.
Default constructor
MeasBase(const MeasBase<Mv,Mr> &other)
Copy constructor
MeasBase<Mv,Mr> &operator=(const MeasBase<Mv,Mr> &other)
Copy assignment
MeasBase(const Mv &dt, const Mr &rf)
MeasBase(const Mv &dt, uInt rf)
MeasBase(const Quantity &dt, const Mr &rf)
MeasBase(const Quantity &dt, uInt rf)
MeasBase(const Measure *dt)
MeasBase(const Mr &rf)
MeasBase(const uInt rf)
Create from data and reference
virtual Bool areYou(const String &tp) const
Check the type of derived entity
virtual void assured(const String &tp) const
Assert that we are the correct type
Thrown Exceptions
- AipsError if wrong Measure
void set(const Mv &dt)
void set(const Mr &rf)
void set(const Mv &dt, const Mr &rf)
void set(const Unit &inunit)
virtual void set(const MeasValue &dt)
virtual Bool putValue(const Vector<Quantum<Double> > &in)
Refill the specified entities
Get reference
const Mv &getValue() const
Get Measure data
Get Unit
Get reference pointer
Get pointer to data
virtual void print(ostream &os) const
Print a Measure
Clear the measure