casa
$Rev:20696$
|
#include <CalCache.h>
Public Member Functions | |
CalCache (PlotMSApp *parent) | |
Constructor which takes parent PlotMS. | |
virtual | ~CalCache () |
Destructor. | |
PlotMSCacheBase::Type | cacheType () |
Identify myself. | |
Bool | parsAreComplex () |
Is the underlying table complex? | |
Matrix< Int > & | chanAveBounds (Int spw) |
Access to channel averaging bounds. | |
virtual String | polname (Int ipol) |
...not yet CAL-specific... | |
Protected Member Functions | |
virtual void | loadIt (vector< PMS::Axis > &loadAxes, vector< PMS::DataColumn > &loadData, PlotMSCacheThread *thread=NULL) |
CAL-specific loadIt method. | |
Private Member Functions | |
CalCache (const CalCache &) | |
Forbid copy for now. | |
void | setUpCalIter (const String &calname, const PlotMSSelection &selection, Bool readonly=True, Bool chanselect=True, Bool corrselect=True) |
Setup the CalIter. | |
void | countChunks (ROCTIter &ci, PlotMSCacheThread *thread) |
Count the chunks required in the cache. | |
void | loadCalChunks (ROCTIter &ci, const vector< PMS::Axis > loadAxes, PlotMSCacheThread *thread) |
Trap attempt to use to much memory (too many points) void trapExcessVolume(map<PMS::Axis,Bool> pendingLoadAxes);. | |
void | loadCalAxis (ROCTIter &cti, Int chunk, PMS::Axis axis) |
Loads the specific axis/metadata into the cache using the given VisBuffer. | |
virtual void | flagToDisk (const PlotMSFlagging &flagging, Vector< Int > &chunks, Vector< Int > &relids, Bool flag, PlotMSIndexer *indexer) |
Set flags in the CalTable. | |
Private Attributes | |
Vector< Matrix< Int > > | chanAveBounds_p |
A container for channel averaging bounds. | |
Vector< Int > | nVBPerAve_ |
Provisional flagging helpers. | |
String | basis_ |
The polarization basis. | |
ROCTIter * | ci_p |
VisIterator pointer. | |
CTIter * | wci_p |
Bool | parsAreComplex_ |
Is parameter column complex? | |
Friends | |
class | PlotMSIndexer |
Friend class declarations. |
Definition at line 49 of file CalCache.h.
casa::CalCache::CalCache | ( | PlotMSApp * | parent | ) |
Constructor which takes parent PlotMS.
virtual casa::CalCache::~CalCache | ( | ) | [virtual] |
Destructor.
casa::CalCache::CalCache | ( | const CalCache & | ) | [private] |
Forbid copy for now.
PlotMSCacheBase::Type casa::CalCache::cacheType | ( | ) | [inline, virtual] |
Identify myself.
Implements casa::PlotMSCacheBase.
Definition at line 63 of file CalCache.h.
References casa::PlotMSCacheBase::CAL.
Matrix<Int>& casa::CalCache::chanAveBounds | ( | Int | spw | ) | [inline] |
Access to channel averaging bounds.
Definition at line 69 of file CalCache.h.
References chanAveBounds_p.
void casa::CalCache::countChunks | ( | ROCTIter & | ci, |
PlotMSCacheThread * | thread | ||
) | [private] |
Count the chunks required in the cache.
virtual void casa::CalCache::flagToDisk | ( | const PlotMSFlagging & | flagging, |
Vector< Int > & | chunks, | ||
Vector< Int > & | relids, | ||
Bool | flag, | ||
PlotMSIndexer * | indexer | ||
) | [private, virtual] |
Set flags in the CalTable.
Implements casa::PlotMSCacheBase.
void casa::CalCache::loadCalAxis | ( | ROCTIter & | cti, |
Int | chunk, | ||
PMS::Axis | axis | ||
) | [private] |
Loads the specific axis/metadata into the cache using the given VisBuffer.
void casa::CalCache::loadCalChunks | ( | ROCTIter & | ci, |
const vector< PMS::Axis > | loadAxes, | ||
PlotMSCacheThread * | thread | ||
) | [private] |
Trap attempt to use to much memory (too many points) void trapExcessVolume(map<PMS::Axis,Bool> pendingLoadAxes);.
Loop over VisIter, filling the cache
virtual void casa::CalCache::loadIt | ( | vector< PMS::Axis > & | loadAxes, |
vector< PMS::DataColumn > & | loadData, | ||
PlotMSCacheThread * | thread = NULL |
||
) | [protected, virtual] |
CAL-specific loadIt method.
Implements casa::PlotMSCacheBase.
Bool casa::CalCache::parsAreComplex | ( | ) | [inline] |
Is the underlying table complex?
Definition at line 66 of file CalCache.h.
References parsAreComplex_.
virtual String casa::CalCache::polname | ( | Int | ipol | ) | [virtual] |
...not yet CAL-specific...
(or ever?) Set up indexing for the plot void setUpIndexer(PMS::Axis iteraxis=PMS::SCAN, Bool globalXRange=False, Bool globalYRange=False);
Implements casa::PlotMSCacheBase.
void casa::CalCache::setUpCalIter | ( | const String & | calname, |
const PlotMSSelection & | selection, | ||
Bool | readonly = True , |
||
Bool | chanselect = True , |
||
Bool | corrselect = True |
||
) | [private] |
Setup the CalIter.
friend class PlotMSIndexer [friend] |
Friend class declarations.
Reimplemented from casa::PlotMSCacheBase.
Definition at line 52 of file CalCache.h.
String casa::CalCache::basis_ [private] |
The polarization basis.
Definition at line 127 of file CalCache.h.
Vector<Matrix<Int> > casa::CalCache::chanAveBounds_p [private] |
A container for channel averaging bounds.
Definition at line 121 of file CalCache.h.
Referenced by chanAveBounds().
ROCTIter* casa::CalCache::ci_p [private] |
VisIterator pointer.
Definition at line 130 of file CalCache.h.
Vector<Int> casa::CalCache::nVBPerAve_ [private] |
Provisional flagging helpers.
Definition at line 124 of file CalCache.h.
Bool casa::CalCache::parsAreComplex_ [private] |
Is parameter column complex?
Definition at line 134 of file CalCache.h.
Referenced by parsAreComplex().
CTIter* casa::CalCache::wci_p [private] |
Definition at line 131 of file CalCache.h.