28 #ifndef CASA_MARRAYBASE_H
29 #define CASA_MARRAYBASE_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.
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
Non-templated base class for templated Array class.
size_t size() const
Get the size.
void resizeBase(const ArrayBase &arr, Bool useMask)
Set the array shape and resize the mask.
Bool isNull() const
Is the array null?
Bool empty() const
Is the array empty (i.e.
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.
uInt ndim() const
Get the dimensionality.
void init()
Initialize and check.
virtual void resize()
Make this array a different shape.
Array< Bool > combineMask(const MArrayBase &other) const
Combine this and the other mask.
bool Bool
Define the standard types used by Casacore.
void referenceBase(const MArrayBase &other)
Reference another MArray.
void fillNValid() const
Fill the number of valid values.
Int64 nvalid() const
Return the number of valid array values, thus unflagged elements.
Bool hasMask() const
Is there a mask?
Base class for an array with an optional mask.
Bool empty() const
Is the array empty?
MArrayBase(Bool isNull)
The default constructor creates an empty mask.
const IPosition & shape() const
Get the shape.
const Array< Bool > & mask() const
Get the mask.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.