ColourIndex< DataType > Class Template Reference

#include <Magnitudes.hxx>

Inheritance diagram for ColourIndex< DataType >:
Inheritance graph
[legend]
Collaboration diagram for ColourIndex< DataType >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ColourIndex ()
 Constructor just sets the method name.
virtual ~ColourIndex ()
 Destructor.
void setSource (IntMap &tbls, IntMap &cols, StringMap units)
void setTarget (IntMap &cols, StringMap units)
 Target is the data column for the colour index.
void doit (TableData< DataType > &data, int row1, int row2)
void doit2 (TableData< DataType > &inpData, TableData< DataType > &data, int row1, int row2)

Private Attributes

int mag1Colno
int mag2Colno
int ciColno

Detailed Description

template<typename DataType>
class ColourIndex< DataType >

Implements method to determine colour indices which are just differences between two magnitudes of different passbands


Constructor & Destructor Documentation

template<typename DataType >
ColourIndex< DataType >::ColourIndex (  )  [inline]

Constructor just sets the method name.

template<typename DataType >
virtual ColourIndex< DataType >::~ColourIndex (  )  [inline, virtual]

Destructor.


Member Function Documentation

template<typename DataType >
void ColourIndex< DataType >::doit ( TableData< DataType > &  data,
int  row1,
int  row2 
) [inline, virtual]

Run the data method. This fills up the appropriate columns in the TableData object over the given row range where row>=row1 and row<row2

Implements DataMethod< DataType >.

References TableData< DataType >::assign(), ColourIndex< DataType >::ciColno, TableData< DataType >::isDefined(), ColourIndex< DataType >::mag1Colno, ColourIndex< DataType >::mag2Colno, DefaultValues::realdef, and TableData< DataType >::value().

template<typename DataType >
void ColourIndex< DataType >::doit2 ( TableData< DataType > &  inpData,
TableData< DataType > &  data,
int  row1,
int  row2 
) [inline, virtual]
template<typename DataType >
void ColourIndex< DataType >::setSource ( IntMap tbls,
IntMap cols,
StringMap  units 
) [inline, virtual]

Source are the data columns corresponding to the magnitude in one passband and the magnitude in the other

Implements DataMethod< DataType >.

References ColourIndex< DataType >::mag1Colno, ColourIndex< DataType >::mag2Colno, and StringOps::NumToString().

template<typename DataType >
void ColourIndex< DataType >::setTarget ( IntMap cols,
StringMap  units 
) [inline, virtual]

Target is the data column for the colour index.

Implements DataMethod< DataType >.

References ColourIndex< DataType >::ciColno.


Member Data Documentation

template<typename DataType >
int ColourIndex< DataType >::ciColno [private]
template<typename DataType >
int ColourIndex< DataType >::mag1Colno [private]
template<typename DataType >
int ColourIndex< DataType >::mag2Colno [private]

The documentation for this class was generated from the following file:
Generated on Mon Oct 4 10:39:22 2010 for WfcamSrc by  doxygen 1.6.3