casa
$Rev:20696$
|
This LEL class handles access to Lattices. More...
#include <LELLattice.h>
Public Member Functions | |
LELLattice (const Lattice< T > &lattice) | |
Constructor takes lattice to fetch from it. | |
LELLattice (const MaskedLattice< T > &lattice) | |
~LELLattice () | |
Destructor does nothing. | |
virtual void | eval (LELArray< T > &result, const Slicer §ion) const |
Evaluate the expression; this means get the chunk of the lattice. | |
virtual void | evalRef (LELArrayRef< T > &result, const Slicer §ion) const |
virtual LELScalar< T > | getScalar () const |
Getting a scalar value is not possible (throws exception). | |
virtual Bool | prepareScalarExpr () |
Do further preparations (e.g. | |
virtual String | className () const |
Get class name. | |
virtual Bool | lock (FileLocker::LockType, uInt nattempts) |
Handle locking/syncing of a lattice in a lattice expression. | |
virtual void | unlock () |
virtual Bool | hasLock (FileLocker::LockType) const |
virtual void | resync () |
Private Attributes | |
MaskedLattice< T > * | pLattice_p |
This LEL class handles access to Lattices.
Internal
<h3>Review Status</h3><dl><dt>Date Reviewed:<dd>yyyy/mm/dd</dl>
This derived LEL letter class handles access to the pixels in a Lattice
This LEL letter class is derived from LELInterface. It is used to construct LEL objects that access the pixels in a Lattice. It works with Lattices of type Float,Double,Complex,DComplex and Bool.
A description of the implementation details of the LEL classes can be found in Note 216
Examples are not very useful as the user would never use these classes directly. Look in LatticeExprNode.cc to see how it invokes these classes. An example of how the user would indirectly use this class (through the envelope) is:
IPosition shape(2,5,10); ArrayLattice<Float> x(shape); x.set(1.0); ArrayLattice<Float> y(shape); y.copyData(x); // y = x
Accessing Lattices is fundamental to manipulating their pixel values
Definition at line 94 of file LELLattice.h.
casa::LELLattice< T >::LELLattice | ( | const Lattice< T > & | lattice | ) |
Constructor takes lattice to fetch from it.
casa::LELLattice< T >::LELLattice | ( | const MaskedLattice< T > & | lattice | ) |
casa::LELLattice< T >::~LELLattice | ( | ) |
Destructor does nothing.
virtual String casa::LELLattice< T >::className | ( | ) | const [virtual] |
Get class name.
Implements casa::LELInterface< T >.
virtual void casa::LELLattice< T >::eval | ( | LELArray< T > & | result, |
const Slicer & | section | ||
) | const [virtual] |
Evaluate the expression; this means get the chunk of the lattice.
Implements casa::LELInterface< T >.
virtual void casa::LELLattice< T >::evalRef | ( | LELArrayRef< T > & | result, |
const Slicer & | section | ||
) | const [virtual] |
Reimplemented from casa::LELInterface< T >.
virtual LELScalar<T> casa::LELLattice< T >::getScalar | ( | ) | const [virtual] |
Getting a scalar value is not possible (throws exception).
Implements casa::LELInterface< T >.
virtual Bool casa::LELLattice< T >::hasLock | ( | FileLocker::LockType | ) | const [virtual] |
Reimplemented from casa::LELInterface< T >.
virtual Bool casa::LELLattice< T >::lock | ( | FileLocker::LockType | , |
uInt | nattempts | ||
) | [virtual] |
Handle locking/syncing of a lattice in a lattice expression.
Reimplemented from casa::LELInterface< T >.
virtual Bool casa::LELLattice< T >::prepareScalarExpr | ( | ) | [virtual] |
virtual void casa::LELLattice< T >::resync | ( | ) | [virtual] |
Reimplemented from casa::LELInterface< T >.
virtual void casa::LELLattice< T >::unlock | ( | ) | [virtual] |
Reimplemented from casa::LELInterface< T >.
MaskedLattice<T>* casa::LELLattice< T >::pLattice_p [private] |
Definition at line 136 of file LELLattice.h.