27 #ifndef LATTICES_LATTICESTATSDATAPROVIDER_H 28 #define LATTICES_LATTICESTATSDATAPROVIDER_H 30 #include <casacore/lattices/Lattices/LatticeIterator.h> 31 #include <casacore/lattices/LatticeMath/LatticeStatsDataProviderBase.h> 33 #include <casacore/casa/aips.h> 115 void updateMaxPos(
const std::pair<Int64, Int64>& maxpos);
117 void updateMinPos(
const std::pair<Int64, Int64>& minpos);
133 #ifndef CASACORE_NO_AUTO_TEMPLATES 134 #include <casacore/lattices/LatticeMath/LatticeStatsDataProvider.tcc> 135 #endif //# CASACORE_NO_AUTO_TEMPLATES uInt getNMaxThreads() const
returns something reasonable based on the lattice size.
void reset()
reset the provider to point to the first data set it manages.
unsigned long long uInt64
void operator++()
increment the data provider to the next dataset, mask, range set, and weights.
void setLattice(const Lattice< T > &lattice, uInt iteratorLimitBytes=4096 *4096)
set the lattice.
Data provider which allows stats framework to iterate through an unmasked lattice.
uInt64 getCount()
get the count of elements in the current data set.
~LatticeStatsDataProvider()
CountedPtr< RO_LatticeIterator< T > > _iter
A templated, abstract base class for array-like objects.
Referenced counted pointer for constant data.
Abstract base class of data providers which allows stats framework to iterate through a lattice...
bool Bool
Define the standard types used by Casacore.
void updateMaxPos(const std::pair< Int64, Int64 > &maxpos)
see base class documentation.
Bool atEnd() const
Are there any data sets left to provide?
const T * getData()
get the current data set
template <class T, class U> class vector;
void updateMinPos(const std::pair< Int64, Int64 > &minpos)
uInt estimatedSteps() const
estimated number of steps to iterate through the the lattice
void finalize()
Take any actions necessary to finalize the provider.
const Bool * getMask()
Get the associated mask of the current dataset.
this file contains all the compiler specific defines
LatticeStatsDataProvider()
default constructor, must set lattice after construction but before using the object ...
Bool hasMask() const
Does the current data set have an associated mask?