casa
$Rev:20696$
|
A non-templated, abstract base class for array-like objects. More...
#include <LatticeBase.h>
Public Member Functions | |
virtual | ~LatticeBase () |
A virtual destructor is needed so that it will use the actual destructor in the derived class. | |
virtual LatticeBase * | clone () const =0 |
Make a copy of the derived object (reference semantics). | |
virtual DataType | dataType () const =0 |
Get the data type of the lattice. | |
virtual Bool | isPersistent () const |
Is the lattice persistent and can it be loaded by other processes as well? That is the case for a PagedArray or PagedImage and for an ImageExpr which does not use transient lattices or regions. | |
virtual Bool | isPaged () const |
Is the lattice paged to disk? The default implementation returns False. | |
virtual Bool | canReferenceArray () const |
Can the lattice data be referenced as an array section? That is the case for an ArrayLattice or a Temp/SubLattice using it. | |
virtual Bool | isWritable () const |
Is the lattice writable? The default implementation returns True. | |
virtual Bool | lock (FileLocker::LockType, uInt nattempts) |
It is strongly recommended to use class LatticeLocker to handle lattice locking. | |
virtual void | unlock () |
virtual Bool | hasLock (FileLocker::LockType) const |
virtual void | resync () |
Resynchronize the Lattice object with the lattice file. | |
virtual void | flush () |
Flush the data (but do not unlock). | |
virtual void | tempClose () |
Temporarily close the lattice. | |
virtual void | reopen () |
Explicitly reopen the temporarily closed lattice. | |
virtual String | name (Bool stripPath=False) const |
Return the name of the current Lattice object. | |
virtual IPosition | shape () const =0 |
Return the shape of the Lattice including all degenerate axes (ie. | |
virtual uInt | ndim () const |
Return the number of axes in this Lattice. | |
virtual size_t | nelements () const |
Return the total number of elements in this Lattice. | |
size_t | size () const |
Bool | conform (const LatticeBase &other) const |
Return a value of "True" if this instance of Lattice and 'other' have the same shape, otherwise returns a value of "False". | |
virtual LELCoordinates | lelCoordinates () const |
Return the coordinates of the lattice. | |
virtual uInt | advisedMaxPixels () const =0 |
This function returns the recommended maximum number of pixels to include in the cursor of an iterator. | |
IPosition | niceCursorShape (uInt maxPixels) const |
Returns a recommended cursor shape for iterating through all the pixels in the Lattice. | |
IPosition | niceCursorShape () const |
virtual Bool | ok () const |
Check class internals - used for debugging. | |
virtual IPosition | doNiceCursorShape (uInt maxPixels) const |
The function (in the derived classes) doing the actual work. | |
virtual uInt | maximumCacheSize () const |
Maximum cache size - not necessarily all used. | |
virtual void | setMaximumCacheSize (uInt howManyPixels) |
Set the maximum (allowed) cache size as indicated. | |
virtual void | setCacheSizeInTiles (uInt howManyTiles) |
Set the actual cache size for this Array to be big enough for the indicated number of tiles. | |
virtual void | setCacheSizeFromPath (const IPosition &sliceShape, const IPosition &windowStart, const IPosition &windowLength, const IPosition &axisPath) |
Set the cache size as to "fit" the indicated path. | |
virtual void | clearCache () |
Clears and frees up the caches, but the maximum allowed cache size is unchanged from when setCacheSize was called. | |
virtual void | showCacheStatistics (ostream &os) const |
Report on cache success. | |
Protected Member Functions | |
LatticeBase () | |
Define default constructor to be used by derived classes. | |
LatticeBase (const LatticeBase &) | |
Copy constructor and assignment can only be used by derived classes. | |
LatticeBase & | operator= (const LatticeBase &) |
void | throwBoolMath () const |
Throw an exception for arithmetic on a Bool Lattice. |
A non-templated, abstract base class for array-like objects.
Public interface
This pure abstract base class defines the operations which may be performed on a lattice of any type.
See class Lattice for a detailed description of a lattice.
It is very useful to be able to keep a pointer to a non-templated base class. Furthermore it gives the opportunity to factor out some non-templated code.
Note: The cache functions (maximumCacheSize, setMaximumCacheSize, setCacheSizeInTiles, setCacheSizeFromPath, clearCache, and showCacheStatistics) should all be over-ridden together as in PagedArray;
Definition at line 79 of file LatticeBase.h.
virtual casa::LatticeBase::~LatticeBase | ( | ) | [virtual] |
A virtual destructor is needed so that it will use the actual destructor in the derived class.
casa::LatticeBase::LatticeBase | ( | ) | [inline, protected] |
Define default constructor to be used by derived classes.
Definition at line 247 of file LatticeBase.h.
casa::LatticeBase::LatticeBase | ( | const LatticeBase & | ) | [inline, protected] |
Copy constructor and assignment can only be used by derived classes.
Definition at line 251 of file LatticeBase.h.
virtual uInt casa::LatticeBase::advisedMaxPixels | ( | ) | const [pure virtual] |
This function returns the recommended maximum number of pixels to include in the cursor of an iterator.
The Lattice class has a default implementation which returns a number that is a power of two and includes enough pixels to consume between 4 and 8 MBytes of memory.
Implemented in casa::PagedArray< T >, casa::PagedArray< Float >, casa::PagedArray< Bool >, casa::PagedArray< Complex >, casa::Lattice< T >, casa::Lattice< Float >, casa::Lattice< Double >, casa::Lattice< float >, casa::Lattice< AccumType >, casa::Lattice< Int >, casa::Lattice< DComplex >, casa::Lattice< Bool >, casa::Lattice< Complex >, casa::Lattice< typename NumericTraits< Float >::ConjugateType >, casa::Lattice< typename NumericTraits< T >::ConjugateType >, casa::PagedImage< T >, casa::PagedImage< Float >, casa::PagedImage< Complex >, casa::HDF5Image< T >, casa::TempImage< T >, casa::TempImage< Float >, casa::TempImage< Complex >, casa::SubLattice< T >, casa::SubLattice< Float >, casa::HDF5Lattice< T >, casa::HDF5Lattice< Bool >, casa::TempLattice< T >, casa::TempLattice< Float >, casa::TempLattice< AccumType >, casa::TempLattice< Complex >, casa::TempLattice< typename NumericTraits< Float >::ConjugateType >, casa::TempLattice< typename NumericTraits< T >::ConjugateType >, casa::ArrayLattice< T >, casa::ArrayLattice< Bool >, casa::MIRIADImage, casa::FITSImage, casa::SubImage< T >, casa::SubImage< Float >, casa::CurvedImage2D< T >, casa::FITSQualityImage, casa::ExtendLattice< T >, casa::CurvedLattice2D< T >, casa::LatticeRegion, casa::RebinLattice< T >, casa::RebinImage< T >, casa::ExtendImage< T >, casa::LCMask, casa::LCPagedMask, and casa::LCHDF5Mask.
Referenced by niceCursorShape().
virtual Bool casa::LatticeBase::canReferenceArray | ( | ) | const [virtual] |
Can the lattice data be referenced as an array section? That is the case for an ArrayLattice or a Temp/SubLattice using it.
It is used by LatticeIterInterface.
The default implementation returns False.
Reimplemented in casa::ArrayLattice< T >, casa::ArrayLattice< Bool >, casa::SubLattice< T >, casa::SubLattice< Float >, casa::TempLattice< T >, casa::TempLattice< Float >, casa::TempLattice< AccumType >, casa::TempLattice< Complex >, casa::TempLattice< typename NumericTraits< Float >::ConjugateType >, casa::TempLattice< typename NumericTraits< T >::ConjugateType >, casa::SubImage< T >, casa::SubImage< Float >, casa::TempImage< T >, casa::TempImage< Float >, and casa::TempImage< Complex >.
virtual void casa::LatticeBase::clearCache | ( | ) | [virtual] |
Clears and frees up the caches, but the maximum allowed cache size is unchanged from when setCacheSize was called.
The default implementation does nothing.
Reimplemented in casa::PagedArray< T >, casa::PagedArray< Float >, casa::PagedArray< Bool >, casa::PagedArray< Complex >, casa::PagedImage< T >, casa::PagedImage< Float >, casa::PagedImage< Complex >, casa::TempImage< T >, casa::TempImage< Float >, casa::TempImage< Complex >, casa::MIRIADImage, casa::FITSImage, casa::TempLattice< T >, casa::TempLattice< Float >, casa::TempLattice< AccumType >, casa::TempLattice< Complex >, casa::TempLattice< typename NumericTraits< Float >::ConjugateType >, casa::TempLattice< typename NumericTraits< T >::ConjugateType >, casa::FITSQualityImage, casa::LatticeRegion, casa::LCMask, and casa::LCPagedMask.
virtual LatticeBase* casa::LatticeBase::clone | ( | ) | const [pure virtual] |
Make a copy of the derived object (reference semantics).
Implemented in casa::PagedArray< T >, casa::PagedArray< Float >, casa::PagedArray< Bool >, casa::PagedArray< Complex >, casa::Lattice< T >, casa::MaskedLattice< T >, casa::Lattice< Float >, casa::Lattice< Double >, casa::Lattice< float >, casa::Lattice< AccumType >, casa::Lattice< Int >, casa::Lattice< DComplex >, casa::Lattice< Bool >, casa::Lattice< Complex >, casa::Lattice< typename NumericTraits< Float >::ConjugateType >, casa::Lattice< typename NumericTraits< T >::ConjugateType >, casa::MaskedLattice< Float >, casa::MaskedLattice< Double >, casa::MaskedLattice< float >, casa::MaskedLattice< DComplex >, casa::MaskedLattice< Bool >, casa::MaskedLattice< Complex >, casa::ArrayLattice< T >, casa::ArrayLattice< Bool >, casa::HDF5Lattice< T >, casa::TempLattice< T >, casa::HDF5Lattice< Bool >, casa::TempLattice< Float >, casa::TempLattice< AccumType >, casa::TempLattice< Complex >, casa::TempLattice< typename NumericTraits< Float >::ConjugateType >, casa::TempLattice< typename NumericTraits< T >::ConjugateType >, casa::FITSMask, casa::FITSQualityMask, casa::LCRegion, and casa::LatticeRegion.
Bool casa::LatticeBase::conform | ( | const LatticeBase & | other | ) | const [inline] |
Return a value of "True" if this instance of Lattice and 'other' have the same shape, otherwise returns a value of "False".
Definition at line 171 of file LatticeBase.h.
References casa::IPosition::isEqual(), and shape().
virtual DataType casa::LatticeBase::dataType | ( | ) | const [pure virtual] |
Get the data type of the lattice.
Implemented in casa::Lattice< T >, casa::Lattice< Float >, casa::Lattice< Double >, casa::Lattice< float >, casa::Lattice< AccumType >, casa::Lattice< Int >, casa::Lattice< DComplex >, casa::Lattice< Bool >, casa::Lattice< Complex >, casa::Lattice< typename NumericTraits< Float >::ConjugateType >, casa::Lattice< typename NumericTraits< T >::ConjugateType >, casa::MIRIADImage, casa::FITSImage, and casa::FITSQualityImage.
virtual IPosition casa::LatticeBase::doNiceCursorShape | ( | uInt | maxPixels | ) | const [virtual] |
The function (in the derived classes) doing the actual work.
This function is public, so it can be used internally in the various Lattice classes.
The default implementation tries to fit as many axes as possible given maxPixels
.
Reimplemented in casa::PagedArray< T >, casa::PagedArray< Float >, casa::PagedArray< Bool >, casa::PagedArray< Complex >, casa::PagedImage< T >, casa::PagedImage< Float >, casa::PagedImage< Complex >, casa::SubLattice< T >, casa::SubLattice< Float >, casa::HDF5Image< T >, casa::TempImage< T >, casa::TempImage< Float >, casa::TempImage< Complex >, casa::HDF5Lattice< T >, casa::HDF5Lattice< Bool >, casa::SubImage< T >, casa::SubImage< Float >, casa::LatticeConcat< T >, casa::LatticeConcat< Float >, casa::ImageConcat< T >, casa::TempLattice< T >, casa::TempLattice< Float >, casa::TempLattice< AccumType >, casa::TempLattice< Complex >, casa::TempLattice< typename NumericTraits< Float >::ConjugateType >, casa::TempLattice< typename NumericTraits< T >::ConjugateType >, casa::CurvedImage2D< T >, casa::MIRIADImage, casa::FITSImage, casa::LatticeExpr< T >, casa::LatticeExpr< Bool >, casa::ExtendLattice< T >, casa::FITSQualityImage, casa::CurvedLattice2D< T >, casa::ImageExpr< T >, casa::ImageExpr< Bool >, casa::RebinImage< T >, casa::LatticeRegion, casa::ExtendImage< T >, casa::LCConcatenation, casa::LCRegionMulti, casa::LCExtension, casa::LCStretch, casa::LCRegionSingle, casa::LCMask, casa::LCPagedMask, and casa::LCHDF5Mask.
Referenced by niceCursorShape().
virtual void casa::LatticeBase::flush | ( | ) | [virtual] |
Flush the data (but do not unlock).
By default the function does not do anything at all.
Reimplemented in casa::PagedArray< T >, casa::PagedArray< Float >, casa::PagedArray< Bool >, casa::PagedArray< Complex >, casa::PagedImage< T >, casa::PagedImage< Float >, casa::PagedImage< Complex >, casa::HDF5Image< T >, casa::HDF5Lattice< T >, casa::HDF5Lattice< Bool >, casa::SubImage< T >, casa::SubImage< Float >, casa::CurvedImage2D< T >, casa::SubLattice< T >, casa::SubLattice< Float >, casa::TempImage< T >, casa::TempImage< Float >, casa::TempImage< Complex >, casa::ImageConcat< T >, casa::RebinImage< T >, casa::LatticeConcat< T >, casa::LatticeConcat< Float >, casa::TempLattice< T >, casa::TempLattice< Float >, casa::TempLattice< AccumType >, casa::TempLattice< Complex >, casa::TempLattice< typename NumericTraits< Float >::ConjugateType >, casa::TempLattice< typename NumericTraits< T >::ConjugateType >, casa::ExtendImage< T >, casa::LCMask, casa::LCPagedMask, casa::CurvedLattice2D< T >, casa::ExtendLattice< T >, casa::RebinLattice< T >, casa::LatticeRegion, and casa::LCHDF5Mask.
virtual Bool casa::LatticeBase::hasLock | ( | FileLocker::LockType | ) | const [virtual] |
Reimplemented in casa::PagedArray< T >, casa::PagedArray< Float >, casa::PagedArray< Bool >, casa::PagedArray< Complex >, casa::PagedImage< T >, casa::PagedImage< Float >, casa::PagedImage< Complex >, casa::SubImage< T >, casa::SubImage< Float >, casa::CurvedImage2D< T >, casa::SubLattice< T >, casa::SubLattice< Float >, casa::ImageExpr< T >, casa::LatticeExpr< T >, casa::ImageExpr< Bool >, casa::LatticeExpr< Bool >, casa::ImageConcat< T >, casa::RebinImage< T >, casa::LatticeConcat< T >, casa::LatticeConcat< Float >, casa::ExtendImage< T >, casa::LCMask, casa::LCPagedMask, casa::CurvedLattice2D< T >, casa::ExtendLattice< T >, casa::RebinLattice< T >, casa::LatticeRegion, and casa::LCLELMask.
Referenced by casa::LatticeLocker::hasLock().
virtual Bool casa::LatticeBase::isPaged | ( | ) | const [virtual] |
Is the lattice paged to disk?
The default implementation returns False.
Reimplemented in casa::PagedArray< T >, casa::PagedArray< Float >, casa::PagedArray< Bool >, casa::PagedArray< Complex >, casa::PagedImage< T >, casa::PagedImage< Float >, casa::PagedImage< Complex >, casa::MIRIADImage, casa::FITSImage, casa::HDF5Image< T >, casa::CurvedImage2D< T >, casa::SubLattice< T >, casa::SubLattice< Float >, casa::HDF5Lattice< T >, casa::HDF5Lattice< Bool >, casa::TempLattice< T >, casa::TempLattice< Float >, casa::TempLattice< AccumType >, casa::TempLattice< Complex >, casa::TempLattice< typename NumericTraits< Float >::ConjugateType >, casa::TempLattice< typename NumericTraits< T >::ConjugateType >, casa::FITSQualityImage, casa::SubImage< T >, casa::SubImage< Float >, casa::TempImage< T >, casa::TempImage< Float >, casa::TempImage< Complex >, casa::RebinImage< T >, casa::ExtendImage< T >, casa::CurvedLattice2D< T >, casa::ExtendLattice< T >, and casa::RebinLattice< T >.
virtual Bool casa::LatticeBase::isPersistent | ( | ) | const [virtual] |
Is the lattice persistent and can it be loaded by other processes as well? That is the case for a PagedArray or PagedImage and for an ImageExpr which does not use transient lattices or regions.
The default implementation returns False.
Reimplemented in casa::PagedArray< T >, casa::PagedArray< Float >, casa::PagedArray< Bool >, casa::PagedArray< Complex >, casa::PagedImage< T >, casa::PagedImage< Float >, casa::PagedImage< Complex >, casa::MIRIADImage, casa::FITSImage, casa::HDF5Image< T >, casa::CurvedImage2D< T >, casa::SubLattice< T >, casa::SubLattice< Float >, casa::FITSQualityImage, casa::HDF5Lattice< T >, casa::HDF5Lattice< Bool >, casa::SubImage< T >, casa::SubImage< Float >, casa::RebinImage< T >, casa::ExtendImage< T >, and casa::ExtendLattice< T >.
virtual Bool casa::LatticeBase::isWritable | ( | ) | const [virtual] |
Is the lattice writable?
The default implementation returns True.
Reimplemented in casa::PagedArray< T >, casa::PagedArray< Float >, casa::PagedArray< Bool >, casa::PagedArray< Complex >, casa::ImageConcat< T >, casa::PagedImage< T >, casa::LatticeConcat< T >, casa::PagedImage< Float >, casa::PagedImage< Complex >, casa::LatticeConcat< Float >, casa::MIRIADImage, casa::FITSImage, casa::LCMask, casa::ArrayLattice< T >, casa::ArrayLattice< Bool >, casa::SubLattice< T >, casa::SubLattice< Float >, casa::LCPagedMask, casa::HDF5Image< T >, casa::CurvedImage2D< T >, casa::LCRegion, casa::HDF5Lattice< T >, casa::TempLattice< T >, casa::HDF5Lattice< Bool >, casa::TempLattice< Float >, casa::TempLattice< AccumType >, casa::TempLattice< Complex >, casa::TempLattice< typename NumericTraits< Float >::ConjugateType >, casa::TempLattice< typename NumericTraits< T >::ConjugateType >, casa::ImageExpr< T >, casa::LatticeExpr< T >, casa::ImageExpr< Bool >, casa::LatticeExpr< Bool >, casa::FITSQualityImage, casa::SubImage< T >, casa::SubImage< Float >, casa::TempImage< T >, casa::TempImage< Float >, casa::TempImage< Complex >, casa::RebinImage< T >, casa::FITSMask, casa::ExtendImage< T >, casa::CurvedLattice2D< T >, casa::ExtendLattice< T >, casa::LCHDF5Mask, casa::FITSQualityMask, casa::RebinLattice< T >, and casa::LatticeRegion.
virtual LELCoordinates casa::LatticeBase::lelCoordinates | ( | ) | const [virtual] |
Return the coordinates of the lattice.
The default implementation returns an 'empty' LELLattCoord object.
Reimplemented in casa::LatticeExpr< T >, casa::LatticeExpr< Bool >, casa::ImageInterface< T >, casa::ImageInterface< Float >, casa::ImageInterface< Double >, casa::ImageInterface< float >, casa::ImageInterface< DComplex >, casa::ImageInterface< Bool >, and casa::ImageInterface< Complex >.
virtual Bool casa::LatticeBase::lock | ( | FileLocker::LockType | , |
uInt | nattempts | ||
) | [virtual] |
It is strongly recommended to use class LatticeLocker to handle lattice locking.
It also contains a more detailed explanation of the locking process.
By default the functions do not do anything at all. lock() and hasLock return True, which is suitable for all non-paged lattices.
Reimplemented in casa::PagedArray< T >, casa::PagedArray< Float >, casa::PagedArray< Bool >, casa::PagedArray< Complex >, casa::PagedImage< T >, casa::PagedImage< Float >, casa::PagedImage< Complex >, casa::SubImage< T >, casa::SubImage< Float >, casa::CurvedImage2D< T >, casa::SubLattice< T >, casa::SubLattice< Float >, casa::ImageExpr< T >, casa::LatticeExpr< T >, casa::ImageExpr< Bool >, casa::LatticeExpr< Bool >, casa::ImageConcat< T >, casa::RebinImage< T >, casa::LatticeConcat< T >, casa::LatticeConcat< Float >, casa::ExtendImage< T >, casa::LCMask, casa::LCPagedMask, casa::CurvedLattice2D< T >, casa::ExtendLattice< T >, casa::RebinLattice< T >, casa::LatticeRegion, and casa::LCLELMask.
virtual uInt casa::LatticeBase::maximumCacheSize | ( | ) | const [virtual] |
Maximum cache size - not necessarily all used.
In pixels. Default returns 0, which means that there is no maximum.
Reimplemented in casa::PagedArray< T >, casa::PagedArray< Float >, casa::PagedArray< Bool >, casa::PagedArray< Complex >, casa::PagedImage< T >, casa::PagedImage< Float >, casa::PagedImage< Complex >, casa::TempImage< T >, casa::TempImage< Float >, casa::TempImage< Complex >, casa::MIRIADImage, casa::FITSImage, casa::TempLattice< T >, casa::TempLattice< Float >, casa::TempLattice< AccumType >, casa::TempLattice< Complex >, casa::TempLattice< typename NumericTraits< Float >::ConjugateType >, casa::TempLattice< typename NumericTraits< T >::ConjugateType >, casa::FITSQualityImage, casa::LatticeRegion, casa::LCMask, and casa::LCPagedMask.
virtual String casa::LatticeBase::name | ( | Bool | stripPath = False | ) | const [virtual] |
Return the name of the current Lattice object.
This will generally be a file name for lattices that have a persistent form. Any path before the actual file name can be optionally stripped off.
The default implementation returns an empty string.
Reimplemented in casa::PagedArray< T >, casa::PagedArray< Float >, casa::PagedArray< Bool >, casa::PagedArray< Complex >, casa::PagedImage< T >, casa::PagedImage< Float >, casa::PagedImage< Complex >, casa::SubLattice< T >, casa::SubLattice< Float >, casa::SubImage< T >, casa::SubImage< Float >, casa::TempImage< T >, casa::TempImage< Float >, casa::TempImage< Complex >, casa::MIRIADImage, casa::FITSImage, casa::LatticeConcat< T >, casa::LatticeConcat< Float >, casa::CurvedImage2D< T >, casa::ImageConcat< T >, casa::ImageInterface< T >, casa::ImageInterface< Float >, casa::ImageInterface< Double >, casa::ImageInterface< float >, casa::ImageInterface< DComplex >, casa::ImageInterface< Bool >, casa::ImageInterface< Complex >, casa::HDF5Lattice< T >, casa::HDF5Lattice< Bool >, casa::FITSQualityImage, casa::ExtendLattice< T >, casa::CurvedLattice2D< T >, casa::ImageExpr< T >, casa::ImageExpr< Bool >, casa::HDF5Image< T >, casa::RebinLattice< T >, casa::RebinImage< T >, and casa::ExtendImage< T >.
virtual uInt casa::LatticeBase::ndim | ( | ) | const [virtual] |
Return the number of axes in this Lattice.
This includes all degenerate axes.
The default implementation returns shape().nelements().
Reimplemented in casa::SubImage< T >, casa::SubImage< Float >, casa::LCRegion, and casa::LatticeRegion.
virtual size_t casa::LatticeBase::nelements | ( | ) | const [virtual] |
Return the total number of elements in this Lattice.
The default implementation returns shape().product().
Reimplemented in casa::SubImage< T >, casa::SubImage< Float >, and casa::LatticeRegion.
Referenced by size().
IPosition casa::LatticeBase::niceCursorShape | ( | uInt | maxPixels | ) | const [inline] |
Returns a recommended cursor shape for iterating through all the pixels in the Lattice.
The default implementation sets up a shape that completely fills as many axes as possible, but always at least the first axis. For example, given a 10x20x30 Lattice
maxPixels = 1 --> niceCursorShape = [10,1,1] 100 --> niceCursorShape = [10,1,1] 300 --> niceCursorShape = [10,20,1] 10000 --> niceCursorShape = [10,20,30]
The default argument is the result of advisedMaxPixels()
.
Definition at line 196 of file LatticeBase.h.
References doNiceCursorShape().
IPosition casa::LatticeBase::niceCursorShape | ( | ) | const [inline] |
Definition at line 198 of file LatticeBase.h.
References advisedMaxPixels(), and doNiceCursorShape().
virtual Bool casa::LatticeBase::ok | ( | ) | const [virtual] |
Check class internals - used for debugging.
Should always return True
Reimplemented in casa::PagedArray< T >, casa::PagedArray< Float >, casa::PagedArray< Bool >, casa::PagedArray< Complex >, casa::ImageInterface< T >, casa::ImageInterface< Float >, casa::ImageInterface< Double >, casa::ImageInterface< float >, casa::ImageInterface< DComplex >, casa::ImageInterface< Bool >, casa::ImageInterface< Complex >, casa::PagedImage< T >, casa::PagedImage< Float >, casa::PagedImage< Complex >, casa::TempImage< T >, casa::TempImage< Float >, casa::TempImage< Complex >, casa::TempLattice< T >, casa::TempLattice< Float >, casa::TempLattice< AccumType >, casa::TempLattice< Complex >, casa::TempLattice< typename NumericTraits< Float >::ConjugateType >, casa::TempLattice< typename NumericTraits< T >::ConjugateType >, casa::SubLattice< T >, casa::SubLattice< Float >, casa::ImageConcat< T >, casa::MIRIADImage, casa::HDF5Lattice< T >, casa::HDF5Lattice< Bool >, casa::FITSImage, casa::SubImage< T >, casa::SubImage< Float >, casa::ArrayLattice< T >, casa::ArrayLattice< Bool >, casa::CurvedImage2D< T >, casa::FITSQualityImage, casa::ExtendLattice< T >, casa::CurvedLattice2D< T >, casa::ImageExpr< T >, casa::ImageExpr< Bool >, casa::LatticeRegion, casa::HDF5Image< T >, casa::RebinLattice< T >, casa::RebinImage< T >, and casa::ExtendImage< T >.
LatticeBase& casa::LatticeBase::operator= | ( | const LatticeBase & | ) | [inline, protected] |
Definition at line 252 of file LatticeBase.h.
virtual void casa::LatticeBase::reopen | ( | ) | [virtual] |
Explicitly reopen the temporarily closed lattice.
By default the function does not do anything at all.
Reimplemented in casa::PagedArray< T >, casa::PagedArray< Float >, casa::PagedArray< Bool >, casa::PagedArray< Complex >, casa::PagedImage< T >, casa::PagedImage< Float >, casa::PagedImage< Complex >, casa::SubImage< T >, casa::SubImage< Float >, casa::CurvedImage2D< T >, casa::MIRIADImage, casa::FITSImage, casa::SubLattice< T >, casa::SubLattice< Float >, casa::FITSQualityImage, casa::TempImage< T >, casa::TempImage< Float >, casa::TempImage< Complex >, casa::ImageExpr< T >, casa::ImageExpr< Bool >, casa::TempLattice< T >, casa::TempLattice< Float >, casa::TempLattice< AccumType >, casa::TempLattice< Complex >, casa::TempLattice< typename NumericTraits< Float >::ConjugateType >, casa::TempLattice< typename NumericTraits< T >::ConjugateType >, casa::ImageConcat< T >, casa::RebinImage< T >, casa::LatticeConcat< T >, casa::LatticeConcat< Float >, casa::ExtendImage< T >, casa::LCMask, casa::LCPagedMask, casa::CurvedLattice2D< T >, casa::ExtendLattice< T >, casa::RebinLattice< T >, casa::LatticeRegion, and casa::LCLELMask.
virtual void casa::LatticeBase::resync | ( | ) | [virtual] |
Resynchronize the Lattice object with the lattice file.
This function is only useful if no read-locking is used, ie. if the table lock option is UserNoReadLocking or AutoNoReadLocking. In that cases the table system does not acquire a read-lock, thus does not synchronize itself automatically.
By default the function does not do anything at all.
Reimplemented in casa::PagedArray< T >, casa::PagedArray< Float >, casa::PagedArray< Bool >, casa::PagedArray< Complex >, casa::PagedImage< T >, casa::PagedImage< Float >, casa::PagedImage< Complex >, casa::SubImage< T >, casa::SubImage< Float >, casa::CurvedImage2D< T >, casa::SubLattice< T >, casa::SubLattice< Float >, casa::LatticeExpr< T >, casa::LatticeExpr< Bool >, casa::ImageExpr< T >, casa::ImageExpr< Bool >, casa::ImageConcat< T >, casa::RebinImage< T >, casa::LatticeConcat< T >, casa::LatticeConcat< Float >, casa::ExtendImage< T >, casa::LCMask, casa::LCPagedMask, casa::CurvedLattice2D< T >, casa::ExtendLattice< T >, casa::RebinLattice< T >, casa::LatticeRegion, and casa::LCLELMask.
virtual void casa::LatticeBase::setCacheSizeFromPath | ( | const IPosition & | sliceShape, |
const IPosition & | windowStart, | ||
const IPosition & | windowLength, | ||
const IPosition & | axisPath | ||
) | [virtual] |
Set the cache size as to "fit" the indicated path.
The default implementation does nothing.
Reimplemented in casa::PagedArray< T >, casa::PagedArray< Float >, casa::PagedArray< Bool >, casa::PagedArray< Complex >, casa::PagedImage< T >, casa::PagedImage< Float >, casa::PagedImage< Complex >, casa::TempImage< T >, casa::TempImage< Float >, casa::TempImage< Complex >, casa::MIRIADImage, casa::FITSImage, casa::TempLattice< T >, casa::TempLattice< Float >, casa::TempLattice< AccumType >, casa::TempLattice< Complex >, casa::TempLattice< typename NumericTraits< Float >::ConjugateType >, casa::TempLattice< typename NumericTraits< T >::ConjugateType >, casa::FITSQualityImage, casa::HDF5Lattice< T >, casa::HDF5Lattice< Bool >, casa::LatticeRegion, casa::LCMask, and casa::LCPagedMask.
virtual void casa::LatticeBase::setCacheSizeInTiles | ( | uInt | howManyTiles | ) | [virtual] |
Set the actual cache size for this Array to be big enough for the indicated number of tiles.
This cache is not shared with PagedArrays in other rows and is always clipped to be less than the maximum value set using the setMaximumCacheSize member function. Tiles are cached using a first in first out algorithm.
The default implementation does nothing.
Reimplemented in casa::PagedArray< T >, casa::PagedArray< Float >, casa::PagedArray< Bool >, casa::PagedArray< Complex >, casa::PagedImage< T >, casa::PagedImage< Float >, casa::PagedImage< Complex >, casa::TempImage< T >, casa::TempImage< Float >, casa::TempImage< Complex >, casa::MIRIADImage, casa::FITSImage, casa::TempLattice< T >, casa::TempLattice< Float >, casa::TempLattice< AccumType >, casa::TempLattice< Complex >, casa::TempLattice< typename NumericTraits< Float >::ConjugateType >, casa::TempLattice< typename NumericTraits< T >::ConjugateType >, casa::FITSQualityImage, casa::HDF5Lattice< T >, casa::HDF5Lattice< Bool >, casa::LatticeRegion, casa::LCMask, and casa::LCPagedMask.
virtual void casa::LatticeBase::setMaximumCacheSize | ( | uInt | howManyPixels | ) | [virtual] |
Set the maximum (allowed) cache size as indicated.
The default implementation does nothing.
Reimplemented in casa::PagedArray< T >, casa::PagedArray< Float >, casa::PagedArray< Bool >, casa::PagedArray< Complex >, casa::PagedImage< T >, casa::PagedImage< Float >, casa::PagedImage< Complex >, casa::TempImage< T >, casa::TempImage< Float >, casa::TempImage< Complex >, casa::MIRIADImage, casa::FITSImage, casa::TempLattice< T >, casa::TempLattice< Float >, casa::TempLattice< AccumType >, casa::TempLattice< Complex >, casa::TempLattice< typename NumericTraits< Float >::ConjugateType >, casa::TempLattice< typename NumericTraits< T >::ConjugateType >, casa::FITSQualityImage, casa::LatticeRegion, casa::LCMask, and casa::LCPagedMask.
virtual IPosition casa::LatticeBase::shape | ( | ) | const [pure virtual] |
Return the shape of the Lattice including all degenerate axes (ie.
axes with a length of one)
Implemented in casa::PagedArray< T >, casa::PagedArray< Float >, casa::PagedArray< Bool >, casa::PagedArray< Complex >, casa::PagedImage< T >, casa::PagedImage< Float >, casa::PagedImage< Complex >, casa::SubLattice< T >, casa::SubLattice< Float >, casa::LatticeConcat< T >, casa::LatticeConcat< Float >, casa::ImageConcat< T >, casa::TempImage< T >, casa::TempImage< Float >, casa::TempImage< Complex >, casa::MIRIADImage, casa::FITSImage, casa::LatticeExpr< T >, casa::LatticeExpr< Bool >, casa::TempLattice< T >, casa::TempLattice< Float >, casa::TempLattice< AccumType >, casa::TempLattice< Complex >, casa::TempLattice< typename NumericTraits< Float >::ConjugateType >, casa::TempLattice< typename NumericTraits< T >::ConjugateType >, casa::ArrayLattice< T >, casa::ArrayLattice< Bool >, casa::CurvedImage2D< T >, casa::FITSQualityImage, casa::SubImage< T >, casa::HDF5Lattice< T >, casa::SubImage< Float >, casa::HDF5Lattice< Bool >, casa::LCRegion, casa::ExtendLattice< T >, casa::CurvedLattice2D< T >, casa::HDF5Image< T >, casa::LatticeRegion, casa::RebinLattice< T >, casa::ImageExpr< T >, casa::ImageExpr< Bool >, casa::FITSMask, casa::RebinImage< T >, casa::ExtendImage< T >, and casa::FITSQualityMask.
Referenced by conform(), casa::ScrollingRasterDD::latticesShape(), casa::ImagePolarimetry::shape(), casa::nPBWProjectFT::verifyAvgPB(), and casa::AWProjectFT::verifyAvgPB().
virtual void casa::LatticeBase::showCacheStatistics | ( | ostream & | os | ) | const [virtual] |
Report on cache success.
The default implementation does nothing.
Reimplemented in casa::PagedArray< T >, casa::PagedArray< Float >, casa::PagedArray< Bool >, casa::PagedArray< Complex >, casa::PagedImage< T >, casa::PagedImage< Float >, casa::PagedImage< Complex >, casa::TempImage< T >, casa::TempImage< Float >, casa::TempImage< Complex >, casa::MIRIADImage, casa::FITSImage, casa::TempLattice< T >, casa::TempLattice< Float >, casa::TempLattice< AccumType >, casa::TempLattice< Complex >, casa::TempLattice< typename NumericTraits< Float >::ConjugateType >, casa::TempLattice< typename NumericTraits< T >::ConjugateType >, casa::FITSQualityImage, casa::LatticeRegion, casa::LCMask, and casa::LCPagedMask.
size_t casa::LatticeBase::size | ( | ) | const [inline] |
Definition at line 165 of file LatticeBase.h.
References nelements().
virtual void casa::LatticeBase::tempClose | ( | ) | [virtual] |
Temporarily close the lattice.
It will be reopened automatically on the next access.
By default the function does not do anything at all.
Reimplemented in casa::PagedArray< T >, casa::PagedArray< Float >, casa::PagedArray< Bool >, casa::PagedArray< Complex >, casa::PagedImage< T >, casa::PagedImage< Float >, casa::PagedImage< Complex >, casa::SubImage< T >, casa::SubImage< Float >, casa::CurvedImage2D< T >, casa::MIRIADImage, casa::FITSImage, casa::SubLattice< T >, casa::SubLattice< Float >, casa::FITSQualityImage, casa::TempImage< T >, casa::TempImage< Float >, casa::TempImage< Complex >, casa::ImageExpr< T >, casa::ImageExpr< Bool >, casa::TempLattice< T >, casa::TempLattice< Float >, casa::TempLattice< AccumType >, casa::TempLattice< Complex >, casa::TempLattice< typename NumericTraits< Float >::ConjugateType >, casa::TempLattice< typename NumericTraits< T >::ConjugateType >, casa::ImageConcat< T >, casa::RebinImage< T >, casa::LatticeConcat< T >, casa::LatticeConcat< Float >, casa::ExtendImage< T >, casa::LCMask, casa::LCPagedMask, casa::CurvedLattice2D< T >, casa::ExtendLattice< T >, casa::RebinLattice< T >, casa::LatticeRegion, and casa::LCLELMask.
void casa::LatticeBase::throwBoolMath | ( | ) | const [protected] |
Throw an exception for arithmetic on a Bool Lattice.
virtual void casa::LatticeBase::unlock | ( | ) | [virtual] |
Reimplemented in casa::PagedArray< T >, casa::PagedArray< Float >, casa::PagedArray< Bool >, casa::PagedArray< Complex >, casa::PagedImage< T >, casa::PagedImage< Float >, casa::PagedImage< Complex >, casa::SubImage< T >, casa::SubImage< Float >, casa::CurvedImage2D< T >, casa::SubLattice< T >, casa::SubLattice< Float >, casa::ImageExpr< T >, casa::LatticeExpr< T >, casa::ImageExpr< Bool >, casa::LatticeExpr< Bool >, casa::ImageConcat< T >, casa::RebinImage< T >, casa::LatticeConcat< T >, casa::LatticeConcat< Float >, casa::ExtendImage< T >, casa::LCMask, casa::LCPagedMask, casa::CurvedLattice2D< T >, casa::ExtendLattice< T >, casa::RebinLattice< T >, casa::LatticeRegion, and casa::LCLELMask.