Base class for all measures. More...
#include <MeasBase.h>
Public Member Functions | |
MeasBase () | |
Tip: 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) | |
Create from data and reference. | |
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 |
Check the type of derived entity. | |
virtual void | assured (const String &tp) const |
Assert that we are the correct type. | |
void | set (const Mv &dt) |
Refill the specified entities. | |
void | set (const Mr &rf) |
void | set (const Mv &dt, const Mr &rf) |
void | set (const Unit &inunit) |
virtual void | set (const MeasValue &dt) |
Each Measure should have the following set functions (with appropiate MVs and Ref):. | |
virtual Bool | putValue (const Vector< Quantum< Double > > &in) |
Mr | getRef () const |
Get reference. | |
const Mv & | getValue () const |
Get Measure data. | |
const Unit & | getUnit () const |
Get Unit. | |
virtual MRBase * | getRefPtr () const |
Get reference pointer. | |
virtual const MeasValue * | getData () const |
Get pointer to data. | |
virtual void | print (std::ostream &os) const |
Print a Measure. | |
Protected Attributes | |
Mv | data |
The measure value (e.g. | |
Mr | ref |
Reference frame data. | |
Unit | unit |
Possible input units. | |
Private Member Functions | |
void | clear () |
Error information MeasErr error;. |
Base class for all measures.
Internal
Measure and Base
MeasBase forms derived Measure class for all actual measures
To have most work in single routine
Definition at line 75 of file MeasBase.h.
casacore::MeasBase< Mv, Mr >::MeasBase | ( | ) |
Tip: 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
casacore::MeasBase< Mv, Mr >::MeasBase | ( | const MeasBase< Mv, Mr > & | other | ) |
Copy constructor.
casacore::MeasBase< Mv, Mr >::MeasBase | ( | const Mv & | dt, | |
const Mr & | rf | |||
) |
Create from data and reference.
casacore::MeasBase< Mv, Mr >::MeasBase | ( | const Mv & | dt, | |
uInt | rf | |||
) |
casacore::MeasBase< Mv, Mr >::MeasBase | ( | const Quantity & | dt, | |
const Mr & | rf | |||
) |
casacore::MeasBase< Mv, Mr >::MeasBase | ( | const Quantity & | dt, | |
uInt | rf | |||
) |
casacore::MeasBase< Mv, Mr >::MeasBase | ( | const Measure * | dt | ) |
casacore::MeasBase< Mv, Mr >::MeasBase | ( | const Mr & | rf | ) |
casacore::MeasBase< Mv, Mr >::MeasBase | ( | const uInt | rf | ) |
virtual casacore::MeasBase< Mv, Mr >::~MeasBase | ( | ) | [virtual] |
virtual Bool casacore::MeasBase< Mv, Mr >::areYou | ( | const String & | tp | ) | const [virtual] |
Check the type of derived entity.
Implements casacore::Measure.
virtual void casacore::MeasBase< Mv, Mr >::assured | ( | const String & | tp | ) | const [virtual] |
void casacore::MeasBase< Mv, Mr >::clear | ( | ) | [private, virtual] |
virtual const MeasValue* casacore::MeasBase< Mv, Mr >::getData | ( | ) | const [virtual] |
Get pointer to data.
Implements casacore::Measure.
Mr casacore::MeasBase< Mv, Mr >::getRef | ( | ) | const |
Get reference.
virtual MRBase* casacore::MeasBase< Mv, Mr >::getRefPtr | ( | ) | const [virtual] |
Get reference pointer.
Implements casacore::Measure.
const Unit& casacore::MeasBase< Mv, Mr >::getUnit | ( | ) | const [virtual] |
Get Unit.
Implements casacore::Measure.
const Mv& casacore::MeasBase< Mv, Mr >::getValue | ( | ) | const |
Get Measure data.
MeasBase<Mv,Mr>& casacore::MeasBase< Mv, Mr >::operator= | ( | const MeasBase< Mv, Mr > & | other | ) |
Copy assignment.
virtual void casacore::MeasBase< Mv, Mr >::print | ( | std::ostream & | os | ) | const [virtual] |
Print a Measure.
Implements casacore::Measure.
virtual Bool casacore::MeasBase< Mv, Mr >::putValue | ( | const Vector< Quantum< Double > > & | in | ) | [virtual] |
Implements casacore::Measure.
virtual void casacore::MeasBase< Mv, Mr >::set | ( | const MeasValue & | dt | ) | [virtual] |
Each Measure should have the following set functions (with appropiate MVs and Ref):.
void set(const MVmeasure &dt); void set(const Measure::Ref &rf); void set(const MVmeasure &dt, const Measure::Ref &rf);
Implements casacore::Measure.
void casacore::MeasBase< Mv, Mr >::set | ( | const Unit & | inunit | ) |
void casacore::MeasBase< Mv, Mr >::set | ( | const Mv & | dt, | |
const Mr & | rf | |||
) |
void casacore::MeasBase< Mv, Mr >::set | ( | const Mr & | rf | ) |
void casacore::MeasBase< Mv, Mr >::set | ( | const Mv & | dt | ) |
Refill the specified entities.
Mv casacore::MeasBase< Mv, Mr >::data [protected] |
Mr casacore::MeasBase< Mv, Mr >::ref [protected] |
Reference frame data.
Definition at line 159 of file MeasBase.h.
Unit casacore::MeasBase< Mv, Mr >::unit [protected] |
Possible input units.
Definition at line 161 of file MeasBase.h.