28 #ifndef LATTICES_TILEDCOLLAPSER_H
29 #define LATTICES_TILEDCOLLAPSER_H
40 template <
class T>
class Array;
107 virtual void init (
uInt nOutPixelsPerCollapse) = 0;
146 const T* inData,
const Bool* inMask,
164 #ifndef CASACORE_NO_AUTO_TEMPLATES
165 #include <casacore/lattices/LatticeMath/TiledCollapser.tcc>
166 #endif //# CASACORE_NO_AUTO_TEMPLATES
A Vector of integers, for indexing into Array<T> objects.
unsigned long long uInt64
virtual void initAccumulator(uInt64 n1, uInt64 n3)=0
Create and initialize the accumulator.
virtual void endAccumulator(Array< U > &result, Array< Bool > &resultMask, const IPosition &shape)=0
End the accumulator.
virtual Bool canHandleNullMask() const
Can the process function in the derived class handle a null mask pointer? If not, LatticeApply ensure...
Abstract base class to collapse chunks for LatticeApply.
bool Bool
Define the standard types used by Casacore.
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape...
template <class T, class U> class vector;
virtual void init(uInt nOutPixelsPerCollapse)=0
The init function for a derived class.
virtual ~TiledCollapser()
Destructor.
virtual void process(uInt accumIndex1, uInt accumIndex3, const T *inData, const Bool *inMask, uInt inDataIncr, uInt inMaskIncr, uInt nrval, const IPosition &startPos, const IPosition &shape)=0
Collapse the given input data containing (nrval values with an increment of inDataIncr elements)...
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.