27 #ifndef LATTICES_MASKEDLATTICESTATSDATAPROVIDER_H 28 #define LATTICES_MASKEDLATTICESTATSDATAPROVIDER_H 30 #include <casacore/lattices/LatticeMath/LatticeStatsDataProviderBase.h> 32 #include <casacore/lattices/Lattices/MaskedLattice.h> 33 #include <casacore/lattices/Lattices/MaskedLatticeIterator.h> 35 #include <casacore/casa/aips.h> 111 void updateMaxPos(
const std::pair<Int64, Int64>& maxpos);
113 void updateMinPos(
const std::pair<Int64, Int64>& minpos);
131 #ifndef CASACORE_NO_AUTO_TEMPLATES 132 #include <casacore/lattices/LatticeMath/MaskedLatticeStatsDataProvider.tcc> 133 #endif //# CASACORE_NO_AUTO_TEMPLATES const Bool * _currentMaskPtr
uInt64 getCount()
get the count of elements in the current data set.
void operator++()
increment the data provider to the next dataset, mask, range set, and weights.
Array< Bool > _currentMaskSlice
Bool atEnd() const
Are there any data sets left to provide?
unsigned long long uInt64
MaskedLatticeStatsDataProvider()
default constructor.
void setLattice(const MaskedLattice< T > &lattice, uInt iteratorLimitBytes=4096 *4096)
set the lattice.
A templated, abstract base class for array-like objects with masks.
uInt estimatedSteps() const
estimated number of steps to iterate through the the lattice
~MaskedLatticeStatsDataProvider()
Bool hasMask() const
Does the current data set have an associated mask?
Data provider which allows stats framework to iterate through a masked lattice.
Referenced counted pointer for constant data.
Abstract base class of data providers which allows stats framework to iterate through a lattice...
void finalize()
Take any actions necessary to finalize the provider.
CountedPtr< RO_MaskedLatticeIterator< T > > _iter
bool Bool
Define the standard types used by Casacore.
const Bool * getMask()
Get the associated mask of the current dataset.
const T * getData()
get the current data set
template <class T, class U> class vector;
void updateMinPos(const std::pair< Int64, Int64 > &minpos)
void updateMaxPos(const std::pair< Int64, Int64 > &maxpos)
see base class documentation.
void reset()
reset the provider to point to the first data set it manages.
this file contains all the compiler specific defines