casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Vi2StatisticsIteratee.h
Go to the documentation of this file.
1 // -*- mode: c++ -*-
2 #ifndef VI2_STATISTICS_ITERATEE_H_
3 #define VI2_STATISTICS_ITERATEE_H_
4 
7 #include <unordered_map>
8 
9 namespace casa {
10 
11 // This class is used to encapsulate the action(s) taken on a sequence of
12 // casacore::StatisticsAlgorithm instances that are generated by the
13 // Vi2DataProvider::foreachDataset() method, which can be used to compute
14 // statistics for each dataset of possibly merged casacore::MS chunks provided by
15 // a VisibilityIterator2 instance. See the Vi2DataProvider.h file for an
16 // outline of how this class may be used.
17 
18 template <class DataIterator, class WeightsIterator, class MaskIterator>
20 
21  typedef typename DataIterator::AccumType AccumType;
22 
23 public:
24 
25  // This method will be called by Vi2DataProvider::foreachDataset() for each
26  // dataset composed of one or more chunks provided by a VisibilityIterator2
27  // instance, with the casacore::StatisticsAlgorithm instance initialized
28  // with a data provider for the dataset.
29  virtual void nextDataset(
31  const std::unordered_map<int,std::string> *columnValues) = 0;
32 };
33 
34 } // namespace casa
35 
36 #endif // VI2_STATISTICS_ITERATEE_H_
DataIterator::AccumType AccumType
virtual void nextDataset(casacore::StatisticsAlgorithm< AccumType, DataIterator, MaskIterator, WeightsIterator > &stats, const std::unordered_map< int, std::string > *columnValues)=0
This method will be called by Vi2DataProvider::foreachDataset() for each dataset composed of one or m...
This class is used to encapsulate the action(s) taken on a sequence of casacore::StatisticsAlgorithm ...
Base class of statistics algorithm class hierarchy.