29 #ifndef LATTICES_ARRAYLATTICE_H
30 #define LATTICES_ARRAYLATTICE_H
238 #ifndef CASACORE_NO_AUTO_TEMPLATES
239 #include <casacore/lattices/Lattices/ArrayLattice.tcc>
240 #endif //# CASACORE_NO_AUTO_TEMPLATES
A Vector of integers, for indexing into Array<T> objects.
ArrayLattice< T > & operator=(const ArrayLattice< T > &other)
The assignment operator uses copy semantics.
virtual Bool ok() const
Check for internal consistency.
virtual void set(const T &value)
Set all of the elements in the Lattice to a value.
TableExprNode array(const TableExprNode &values, const TableExprNodeSet &shape)
Create an array of the given shape and fill it with the values.
A templated, abstract base class for array-like objects.
virtual void doPutSlice(const Array< T > &sourceBuffer, const IPosition &where, const IPosition &stride)
Do the actual putting of an array of values.
Array< T > & asArray()
Return the Array of the data within this Lattice.
virtual Bool canReferenceArray() const
The lattice data can be referenced as an array section.
bool Bool
Define the standard types used by Casacore.
ArrayLattice()
The default constructor creates a ArrayLattice that is useless for just about everything, except that it can be assigned to with the assignment operator.
Specify which elements to extract from an n-dimensional array.
virtual IPosition shape() const
returns the shape of the ArrayLattice.
virtual Bool isWritable() const
Is the lattice writable?
virtual Bool doGetSlice(Array< T > &buffer, const Slicer §ion)
Do the actual getting of an array of values.
virtual uInt advisedMaxPixels() const
Returns the maximum recommended number of pixels for a cursor.
virtual Lattice< T > * clone() const
Make a copy of the object (reference semantics).
A memory resident Lattice.
virtual void putAt(const T &value, const IPosition &where)
Put the value of a single element.
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 T getAt(const IPosition &where) const
Return the value of the single element located at the argument IPosition.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.