HtmIndex< DataType > Class Template Reference

Implements method to fill up the appropriate data column with HTM indicies. More...

#include <HtmIndex.hxx>

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

List of all members.

Public Member Functions

 HtmIndex (int htmLevel)
virtual ~HtmIndex ()
 Destructor deletes the SpatialIndex object.
void setSource (IntMap &tbls, IntMap &cols, StringMap units)
 Source data columns are those with the RA and DEC.
void setTarget (IntMap &cols, StringMap units)
 Target data column is that corresponding to the HTM index.
void doit (TableData< DataType > &data, int row1, int row2)
 Fill up the HTM index column.
void doit2 (TableData< DataType > &rawData, TableData< DataType > &data, int row1, int row2)

Private Attributes

int htmColno
int raColno
int decColno
double mDecFact
double mRAFact
SpatialIndex * mHtmPtr

Detailed Description

template<typename DataType>
class HtmIndex< DataType >

Implements method to fill up the appropriate data column with HTM indicies.


Constructor & Destructor Documentation

template<typename DataType >
HtmIndex< DataType >::HtmIndex ( int  htmLevel  )  [inline]

Constructor takes request HTM level and sets up the SpatialIndex object for calculating the indices for this level

References Logger::addMessage(), HtmIndex< DataType >::mHtmPtr, and StringOps::NumToString().

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

Destructor deletes the SpatialIndex object.

References HtmIndex< DataType >::mHtmPtr.


Member Function Documentation

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

Target data column is that corresponding to the HTM index.

Implements DataMethod< DataType >.

References HtmIndex< DataType >::htmColno.


Member Data Documentation

template<typename DataType >
int HtmIndex< DataType >::decColno [private]
template<typename DataType >
int HtmIndex< DataType >::htmColno [private]
template<typename DataType >
double HtmIndex< DataType >::mDecFact [private]
template<typename DataType >
SpatialIndex* HtmIndex< DataType >::mHtmPtr [private]
template<typename DataType >
double HtmIndex< DataType >::mRAFact [private]
template<typename DataType >
int HtmIndex< DataType >::raColno [private]

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