Go to the documentation of this file.
28 #ifndef LATTICES_LATTICECONCAT_H
29 #define LATTICES_LATTICECONCAT_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/lattices/Lattices/MaskedLattice.h>
35 #include <casacore/casa/Containers/Block.h>
289 #ifndef CASACORE_NO_AUTO_TEMPLATES
290 #include <casacore/lattices/Lattices/LatticeConcat.tcc>
291 #endif //# CASACORE_NO_AUTO_TEMPLATES
Specify which elements to extract from an n-dimensional array.
virtual IPosition shape() const
Find the shape that the concatenated lattice will be.
virtual String name(Bool stripPath=False) const
Name.
A Vector of integers, for indexing into Array<T> objects.
Bool isTempClose() const
Returns the tempClose constructor state.
A drop-in replacement for Block<T*>.
LatticeConcat< Bool > * pPixelMask_p
A templated, abstract base class for array-like objects with masks.
uInt nlattices() const
Return the number of lattices set so far.
virtual Bool hasPixelMask() const
Does the lattice have a pixelmask?
void tempClose(uInt which)
Close/reopen a specific lattice.
LatticeConcat()
Default constructor.
virtual Bool isWritable() const
If all of the underlying lattices are writable returns True.
void checkAxis(uInt axis, uInt ndim) const
LatticeExprNode ndim(const LatticeExprNode &expr)
1-argument function to get the dimensionality of a lattice.
LockType
Define the possible lock types.
virtual Bool lock(FileLocker::LockType, uInt nattempts)
Handle the (un)locking and syncing, etc.
virtual Bool hasLock(FileLocker::LockType) const
void setLattice(MaskedLattice< T > &lattice)
Adds a clone of the lattice to the list to be concatenated.
virtual Bool isMasked() const
Has the object really a mask?
Bool getMaskSlice1(Array< Bool > &buffer, const Slicer §ion, uInt nLattices)
An optionally strided region in a Lattice.
Concatenates lattices along a specified axis.
virtual Bool doGetMaskSlice(Array< Bool > &buffer, const Slicer §ion)
Do the actual get of the mask data.
Bool putSlice2(const Array< T > &buffer, const IPosition &where, const IPosition &stride, uInt nLattices)
Bool getSlice1(Array< T > &buffer, const Slicer §ion, uInt nLattices)
Slicer setup2(Bool &first, IPosition &blc2, IPosition &trc2, Int shape2, Int axis, const IPosition &blc, const IPosition &trc, const IPosition &stride, Int start)
virtual const Lattice< Bool > & pixelMask() const
Get access to the pixelmask.
uInt latticeDim() const
Returns the number of dimensions of the input lattices (may be different by one from output lattice).
void setTempClose(Bool tmpClose)
Set the tempClose state.
this file contains all the compiler specific defines
virtual IPosition doNiceCursorShape(uInt maxPixels) const
Return the best cursor shape.
LatticeConcat< T > & operator=(const LatticeConcat< T > &other)
Assignment operator (reference semantics)
virtual LatticeConcat< T > * cloneML() const
Make a copy of the derived object (reference semantics).
uInt axis() const
Returns the current concatenation axis (0 relative)
virtual void doPutSlice(const Array< T > &sourceBuffer, const IPosition &where, const IPosition &stride)
Do the actual put of the data into the Lattice.
template <class T, class U> class vector;
String: the storage and methods of handling collections of characters.
bool Bool
Define the standard types used by Casacore.
PtrBlock< MaskedLattice< T > * > lattices_p
LatticeConcat(uInt axis, Bool tempClose=True)
Constructor.
Bool getMaskSlice2(Array< Bool > &buffer, const Slicer §ion, uInt nLattices)
MaskedLattice< T > * lattice(uInt i) const
Return pointer for specified lattice.
Bool putSlice1(const Array< T > &buffer, const IPosition &where, const IPosition &stride, uInt nLattices)
void setup1(IPosition &blc, IPosition &trc, IPosition &stride, IPosition &blc2, IPosition &trc2, IPosition &blc3, IPosition &trc3, IPosition &stride3, const Slicer §ion)
Bool getSlice2(Array< T > &buffer, const Slicer §ion, uInt nLattices)
virtual Bool doGetSlice(Array< T > &buffer, const Slicer §ion)
Do the actual get of the data.
virtual const LatticeRegion * getRegionPtr() const
Get the region used (always returns 0).
virtual ~LatticeConcat()
Destructor.
LatticeConcat(const LatticeConcat< T > &other)
Copy constructor (reference semantics)
virtual Lattice< Bool > & pixelMask()