29 #ifndef LATTICES_ARRAYLATTICE_H
30 #define LATTICES_ARRAYLATTICE_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/lattices/Lattices/Lattice.h>
35 #include <casacore/casa/Arrays/Array.h>
238 #ifndef CASACORE_NO_AUTO_TEMPLATES
239 #include <casacore/lattices/Lattices/ArrayLattice.tcc>
virtual T getAt(const IPosition &where) const
Return the value of the single element located at the argument IPosition.
virtual Bool canReferenceArray() const
The lattice data can be referenced as an array section.
Array< T > & asArray()
Return the Array of the data within this Lattice.
ArrayLattice(Array< T > &array, Bool isWritable=True)
Construct an ArrayLattice that references the given Array.
virtual Lattice< T > * clone() const
Make a copy of the object (reference semantics).
ArrayLattice(const Array< T > &array)
Construct an ArrayLattice that references the given Array.
virtual Bool doGetSlice(Array< T > &buffer, const Slicer §ion)
Do the actual getting of an array of values.
ArrayLattice()
The default constructor creates a ArrayLattice that is useless for just about everything,...
virtual void doPutSlice(const Array< T > &sourceBuffer, const IPosition &where, const IPosition &stride)
Do the actual putting of an array of values.
ArrayLattice(const ArrayLattice< T > &other)
The copy constructor uses reference semantics.
virtual Bool ok() const
Check for internal consistency.
virtual IPosition shape() const
returns the shape of the ArrayLattice.
ArrayLattice(const IPosition &shape)
Construct an ArrayLattice with the specified shape.
virtual Bool isWritable() const
Is the lattice writable?
const Array< T > & asArray() const
void getIterSlice(Array< T > &buffer, const IPosition &start, const IPosition &end, const IPosition &incr)
Get a slice in an optimized way (specifically for ArrLatticeIter).
virtual uInt advisedMaxPixels() const
Returns the maximum recommended number of pixels for a cursor.
ArrayLattice< T > & operator=(const ArrayLattice< T > &other)
The assignment operator uses copy semantics.
virtual void putAt(const T &value, const IPosition &where)
Put the value of a single element.
virtual void set(const T &value)
Set all of the elements in the Lattice to a value.
this file contains all the compiler specific defines
TableExprNode array(const TableExprNode &values, const TableExprNodeSet &shape)
Create an array of the given shape and fill it with the values.
bool Bool
Define the standard types used by Casacore.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.