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