28 #ifndef CASA_MARRAYBASE_H 29 #define CASA_MARRAYBASE_H 32 #include <casacore/casa/aips.h> 33 #include <casacore/casa/Arrays/Array.h> 34 #include <casacore/casa/Arrays/ArrayLogical.h> A Vector of integers, for indexing into Array<T> objects.
void setMask(const Array< Bool > &mask)
Set the mask.
void removeMask()
Remove the mask.
Bool isNull() const
Is the array null?
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
Non-templated base class for templated Array class.
void resizeBase(const ArrayBase &arr, Bool useMask)
Set the array shape and resize the mask.
Array< Bool > combineMask(const MArrayBase &other) const
Combine this and the other mask.
TableExprNode marray(const TableExprNode &array, const TableExprNode &mask)
Form a masked array.
void setBase(const ArrayBase &arr, const Array< Bool > &mask)
Reference the mask and set the shape.
const Array< Bool > & mask() const
Get the mask.
void init()
Initialize and check.
virtual void resize()
Make this array a different shape.
Int64 nvalid() const
Return the number of valid array values, thus unflagged elements.
bool Bool
Define the standard types used by Casacore.
void referenceBase(const MArrayBase &other)
Reference another MArray.
size_t size() const
Get the size.
Bool empty() const
Is the array empty?
void fillNValid() const
Fill the number of valid values.
const IPosition & shape() const
Get the shape.
Bool hasMask() const
Is there a mask?
Bool empty() const
Is the array empty (i.e.
Base class for an array with an optional mask.
MArrayBase(Bool isNull)
The default constructor creates an empty mask.
uInt ndim() const
Get the dimensionality.
this file contains all the compiler specific defines