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