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>
Non-templated base class for templated Array class.
bool empty() const
Is the array empty (i.e.
void resize()
Make this array a different shape.
MArrayBase(Bool isNull)
The default constructor creates an empty mask.
Int64 nvalid() const
Return the number of valid array values, thus unflagged elements.
Bool empty() const
Is the array empty?
Array< Bool > combineMask(const MArrayBase &other) const
Combine this and the other mask.
void setBase(const ArrayBase &arr, const Array< Bool > &mask)
Reference the mask and set the shape.
Bool isNull() const
Is the array null?
MArrayBase(const ArrayBase &arr, const Array< Bool > &mask, Bool isNull)
Construct from a given array shape and mask.
void init()
Initialize and check.
void setMask(const Array< Bool > &mask)
Set the mask.
uInt ndim() const
Get the dimensionality.
void resizeBase(const ArrayBase &arr, Bool useMask)
Set the array shape and resize the mask.
MArrayBase(const ArrayBase &arr, const MArrayBase &marray)
Construct from a given array shape and mask from another MArray.
const IPosition & shape() const
Get the shape.
void fillNValid() const
Fill the number of valid values.
size_t size() const
Get the size.
const Array< Bool > & mask() const
Get the mask.
void referenceBase(const MArrayBase &other)
Reference another MArray.
void removeMask()
Remove the mask.
Bool hasMask() const
Is there a mask?
this file contains all the compiler specific defines
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
bool Bool
Define the standard types used by Casacore.
TableExprNode marray(const TableExprNode &array, const TableExprNode &mask)
Form a masked array.