casa
5.7.0-16
|
Ancillary information for the LEL letter classes. More...
#include <LELAttribute.h>
Public Member Functions | |
LELAttribute () | |
Default constructor sets it as a scalar. More... | |
LELAttribute (Bool isMasked, const IPosition &shape, const IPosition &tileShape, const LELCoordinates &coordinates, Bool isReduced=False) | |
Constructor sets it as lattice with given attributes. More... | |
LELAttribute (uInt regionNdim) | |
Constructor sets it as a region with given attributes. More... | |
LELAttribute (const LELAttribute &attr) | |
Copy constructor (copy semantics) More... | |
LELAttribute (const LELAttribute &attrLeft, const LELAttribute &attrRight, Bool matchAxes=True) | |
Constructor that combines the two attributes given. More... | |
~LELAttribute () | |
Destructor. More... | |
LELAttribute & | operator= (const LELAttribute &other) |
Assignment (copy semantics) More... | |
Bool | isScalar () const |
Is expression a scalar? More... | |
Bool | isReduced () const |
Is expression a reduced array? A scalar is always reduced. More... | |
Bool | isRegion () const |
Is expression a region? More... | |
Bool | isMasked () const |
Is the expression result masked? More... | |
const IPosition & | shape () const |
What is the shape of the expression? More... | |
const IPosition & | tileShape () const |
What is the tile shape of the expression? More... | |
const LELCoordinates & | coordinates () const |
What are the coordinates of the expression? More... | |
Int | compareCoord (const LELAttribute &other) const |
Compare the coordinates and shapes to see if this is a subset of other. More... | |
Private Attributes | |
Bool | isScalar_p |
Bool | isReduced_p |
Bool | isRegion_p |
Bool | isMasked_p |
IPosition | shape_p |
IPosition | tileShape_p |
LELCoordinates | coords_p |
Ancillary information for the LEL letter classes.
Internal
Holds attribute information for the Lattice Expression Language letter classes.
The Lattice Expression Language letter classes provide expression objects. There is ancilliary information or attributes associated with these objects:
Two attribute objects can be combined mirroring the combination of two expressions (like the addition of two lattices). Regions cannot be combined.
Definition at line 81 of file LELAttribute.h.
casacore::LELAttribute::LELAttribute | ( | ) |
Default constructor sets it as a scalar.
casacore::LELAttribute::LELAttribute | ( | Bool | isMasked, |
const IPosition & | shape, | ||
const IPosition & | tileShape, | ||
const LELCoordinates & | coordinates, | ||
Bool | isReduced = False |
||
) |
Constructor sets it as lattice with given attributes.
An empty shape indicates that the shape is not known.
|
explicit |
Constructor sets it as a region with given attributes.
casacore::LELAttribute::LELAttribute | ( | const LELAttribute & | attr | ) |
Copy constructor (copy semantics)
casacore::LELAttribute::LELAttribute | ( | const LELAttribute & | attrLeft, |
const LELAttribute & | attrRight, | ||
Bool | matchAxes = True |
||
) |
Constructor that combines the two attributes given.
An array can be combined with a scalar. If matchAxes is True and if two arrays are given, the shapes and coordinates have to match exactly, otherwise one can be a subset of the other (and LEL will auto-extend).
casacore::LELAttribute::~LELAttribute | ( | ) |
Destructor.
Int casacore::LELAttribute::compareCoord | ( | const LELAttribute & | other | ) | const |
Compare the coordinates and shapes to see if this is a subset of other.
|
inline |
What are the coordinates of the expression?
Definition at line 135 of file LELAttribute.h.
References coords_p.
|
inline |
Is the expression result masked?
Definition at line 126 of file LELAttribute.h.
References isMasked_p.
Referenced by casacore::LatticeExprNode::isMasked().
|
inline |
Is expression a reduced array? A scalar is always reduced.
Definition at line 120 of file LELAttribute.h.
References isReduced_p.
|
inline |
Is expression a region?
Definition at line 123 of file LELAttribute.h.
References isRegion_p.
Referenced by casacore::LatticeExprNode::isRegion().
|
inline |
Is expression a scalar?
Definition at line 117 of file LELAttribute.h.
References isScalar_p.
Referenced by casacore::LELInterface< Complex >::isScalar(), and casacore::LatticeExprNode::isScalar().
LELAttribute& casacore::LELAttribute::operator= | ( | const LELAttribute & | other | ) |
Assignment (copy semantics)
|
inline |
What is the shape of the expression?
Definition at line 129 of file LELAttribute.h.
References shape_p.
Referenced by casacore::LELInterface< Complex >::shape(), and casacore::LatticeExprNode::shape().
|
inline |
What is the tile shape of the expression?
Definition at line 132 of file LELAttribute.h.
References tileShape_p.
|
private |
Definition at line 147 of file LELAttribute.h.
Referenced by coordinates().
|
private |
Definition at line 144 of file LELAttribute.h.
Referenced by isMasked().
|
private |
Definition at line 142 of file LELAttribute.h.
Referenced by isReduced().
|
private |
Definition at line 143 of file LELAttribute.h.
Referenced by isRegion().
|
private |
Definition at line 141 of file LELAttribute.h.
Referenced by isScalar().
|
private |
Definition at line 145 of file LELAttribute.h.
Referenced by shape().
|
private |
Definition at line 146 of file LELAttribute.h.
Referenced by tileShape().