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> 191 virtual void set (
const T&
value);
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.
virtual Lattice< T > * clone() const
Make a copy of the object (reference semantics).
ArrayLattice< T > & operator=(const ArrayLattice< T > &other)
The assignment operator uses copy semantics.
TableExprNode array(const TableExprNode &values, const TableExprNodeSet &shape)
Create an array of the given shape and fill it with the values.
virtual IPosition shape() const
returns the shape of the ArrayLattice.
virtual Bool canReferenceArray() const
The lattice data can be referenced as an array section.
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.
virtual Bool isWritable() const
Is the lattice writable?
Array< T > & asArray()
Return the Array of the data within this Lattice.
virtual T getAt(const IPosition &where) const
Return the value of the single element located at the argument IPosition.
bool Bool
Define the standard types used by Casacore.
virtual Bool ok() const
Check for internal consistency.
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.
template <class T, class U> class vector;
Specify which elements to extract from an n-dimensional array.
virtual Bool doGetSlice(Array< T > &buffer, const Slicer §ion)
Do the actual getting of an array of values.
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).
this file contains all the compiler specific defines
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
virtual uInt advisedMaxPixels() const
Returns the maximum recommended number of pixels for a cursor.