casa
5.7.0-16
|
#include <CFStore2.h>
Public Member Functions | |
CFStore2 () | |
virtual | ~CFStore2 () |
CFStore2(CFBuffer<casacore::Complex> *dataPtr, casacore::Quantity PA, casacore::Int mosPointing): storage_p(), pa_p(PA), mosPointingPos_p(mosPointing) {storage_p = new CFBuffer<casacore::Complex>(*dataPtr);};. More... | |
CFStore2 & | operator= (const CFStore2 &other) |
void | show (const char *Mesg=NULL, ostream &os=cerr, const casacore::Bool verbose=false) |
More... | |
void | makePersistent (const char *dir, const char *name="", const char *qualifier="") |
void | makePersistent (const char *dir, const char *cfName, const char *qualifier, const casacore::Quantity &pa, const casacore::Quantity &dPA, const casacore::Int &ant1, const casacore::Int &ant2) |
This version saves only those pixels of CFStore that correspond to [PA,(Ant1,Ant2)] co-ordiantes ([PA, BaselineType] co-ordinate). More... | |
void | primeTheCFB () |
More... | |
void | initMaps (const VisBuffer &vb, const casacore::Matrix< casacore::Double > &freqSelection, const casacore::Double &imRefFreq) |
More... | |
void | initPolMaps (PolMapType &polMap, PolMapType &conjPolMap) |
More... | |
casacore::Bool | null () |
More... | |
casacore::Double | memUsage () |
More... | |
void | clear () |
More... | |
void | set (const CFStore2 &other) |
More... | |
void | setCFBuffer (CFBuffer *dataPtr, casacore::Quantity pa, const casacore::Int &ant1, const casacore::Int &ant2) |
More... | |
casacore::CountedPtr< CFBuffer > & | getCFBuffer (const casacore::Quantity &pa, const casacore::Quantity &paTol, const casacore::Int &ant1, const casacore::Int &ant2) |
More... | |
void | setCFCacheDir (const String &dir) |
More... | |
casacore::String | getCFCacheDir () |
void | setLazyFill (const Bool &val) |
casacore::Bool | isLazyFillOn () |
void | invokeGC (const casacore::Int &spwID) |
casacore::CountedPtr< CFBuffer > & | getCFBuffer (const casacore::Int &paNdx, const casacore::Int &antNdx) |
Get CFBuffer by directly indexing in the list of CFBuffers More... | |
CFBuffer & | operator() (const casacore::Int &paNdx, const casacore::Int &antNdx) |
void | getParams (casacore::Quantity &pa, casacore::Int &ant1, casacore::Int &ant2, const casacore::Int &paNdx, const casacore::Int &antNdx) |
casacore::Vector< casacore::Int > | resize (const casacore::Quantity &pa, const casacore::Quantity &paTol, const casacore::Int &ant1, const casacore::Int &ant2, casacore::Bool retainValues=true) |
More... | |
casacore::Matrix < casacore::CountedPtr < CFBuffer > > & | getStorage () |
void rememberATerm(casacore::CountedPtr<ATerm>& aTerm) {theATermUsed_p = aTerm;} More... | |
casacore::Vector< casacore::Int > & | getAnt1List () |
casacore::Vector< casacore::Int > & | getAnt2List () |
casacore::Vector < casacore::Quantity > | getPAList () |
casacore::IPosition | getShape () |
Protected Member Functions | |
virtual void | getIndex (const casacore::Quantity &pa, const casacore::Quantity &paTol, const casacore::Int &ant1, const casacore::Int &ant2, casacore::Int &paNdx, casacore::Int &antNdx) |
virtual casacore::Int | antHashFunction (const casacore::Int &ant1, const casacore::Int &ant2) |
virtual casacore::Int wHashFunction(const casacore::Double& wValue) { casacore::Int ndx=-1; for(casacore::uInt i=0;i<wValue_p.nelements(); i++) if (wValue_p[i] == wValue) {ndx=i;break;} return ndx; } More... | |
virtual casacore::Int | paHashFunction (const casacore::Quantity &pa, const casacore::Quantity &paTol) |
virtual casacore::Int | nearestPA (const casacore::Quantity &pa, const casacore::Quantity &paTol) |
Definition at line 47 of file CFStore2.h.
|
inline |
Definition at line 50 of file CFStore2.h.
|
inlinevirtual |
CFStore2(CFBuffer<casacore::Complex> *dataPtr, casacore::Quantity PA, casacore::Int mosPointing): storage_p(), pa_p(PA), mosPointingPos_p(mosPointing) {storage_p = new CFBuffer<casacore::Complex>(*dataPtr);};.
Definition at line 56 of file CFStore2.h.
|
inlineprotectedvirtual |
virtual casacore::Int wHashFunction(const casacore::Double& wValue) { casacore::Int ndx=-1; for(casacore::uInt i=0;i<wValue_p.nelements(); i++) if (wValue_p[i] == wValue) {ndx=i;break;} return ndx; }
Definition at line 164 of file CFStore2.h.
void casa::CFStore2::clear | ( | ) |
|
inline |
Definition at line 132 of file CFStore2.h.
|
inline |
Definition at line 133 of file CFStore2.h.
casacore::CountedPtr<CFBuffer>& casa::CFStore2::getCFBuffer | ( | const casacore::Quantity & | pa, |
const casacore::Quantity & | paTol, | ||
const casacore::Int & | ant1, | ||
const casacore::Int & | ant2 | ||
) |
casacore::CountedPtr<CFBuffer>& casa::CFStore2::getCFBuffer | ( | const casacore::Int & | paNdx, |
const casacore::Int & | antNdx | ||
) |
Get CFBuffer by directly indexing in the list of CFBuffers
|
inline |
Definition at line 101 of file CFStore2.h.
|
inlineprotectedvirtual |
Definition at line 147 of file CFStore2.h.
|
inline |
Definition at line 134 of file CFStore2.h.
void casa::CFStore2::getParams | ( | casacore::Quantity & | pa, |
casacore::Int & | ant1, | ||
casacore::Int & | ant2, | ||
const casacore::Int & | paNdx, | ||
const casacore::Int & | antNdx | ||
) |
|
inline |
Definition at line 135 of file CFStore2.h.
|
inline |
void rememberATerm(casacore::CountedPtr<ATerm>& aTerm) {theATermUsed_p = aTerm;}
casacore::Int mapAntIDToAntType(const casacore::Int& ant) {return theATermUsed_p->mapAntIDToAntType(ant);};
Definition at line 131 of file CFStore2.h.
void casa::CFStore2::initMaps | ( | const VisBuffer & | vb, |
const casacore::Matrix< casacore::Double > & | freqSelection, | ||
const casacore::Double & | imRefFreq | ||
) |
void casa::CFStore2::initPolMaps | ( | PolMapType & | polMap, |
PolMapType & | conjPolMap | ||
) |
void casa::CFStore2::invokeGC | ( | const casacore::Int & | spwID | ) |
|
inline |
Definition at line 103 of file CFStore2.h.
void casa::CFStore2::makePersistent | ( | const char * | dir, |
const char * | name = "" , |
||
const char * | qualifier = "" |
||
) |
This version saves the entire CFStore
void casa::CFStore2::makePersistent | ( | const char * | dir, |
const char * | cfName, | ||
const char * | qualifier, | ||
const casacore::Quantity & | pa, | ||
const casacore::Quantity & | dPA, | ||
const casacore::Int & | ant1, | ||
const casacore::Int & | ant2 | ||
) |
This version saves only those pixels of CFStore that correspond to [PA,(Ant1,Ant2)] co-ordiantes ([PA, BaselineType] co-ordinate).
casacore::Double casa::CFStore2::memUsage | ( | ) |
|
protectedvirtual |
|
inline |
Definition at line 80 of file CFStore2.h.
|
inline |
Definition at line 108 of file CFStore2.h.
|
inlineprotectedvirtual |
for (casacore::uInt i=0; i<pa_p.nelements(); i++) if (pa_p[i] == pa) {ndx=i;break;}
Definition at line 173 of file CFStore2.h.
void casa::CFStore2::primeTheCFB | ( | ) |
casacore::Vector<casacore::Int> casa::CFStore2::resize | ( | const casacore::Quantity & | pa, |
const casacore::Quantity & | paTol, | ||
const casacore::Int & | ant1, | ||
const casacore::Int & | ant2, | ||
casacore::Bool | retainValues = true |
||
) |
Generate a map for the given frequency and Mueller element list to the index in the internal list of CFs. This can be used in tight loops to get get direct access to the required CF.----------------------------------------------------------------------—
|
inline |
void casa::CFStore2::setCFBuffer | ( | CFBuffer * | dataPtr, |
casacore::Quantity | pa, | ||
const casacore::Int & | ant1, | ||
const casacore::Int & | ant2 | ||
) |
void casa::CFStore2::setCFCacheDir | ( | const String & | dir | ) |
|
inline |
Definition at line 102 of file CFStore2.h.
void casa::CFStore2::show | ( | const char * | Mesg = NULL , |
ostream & | os = cerr , |
||
const casacore::Bool | verbose = false |
||
) |
|
protected |
Definition at line 141 of file CFStore2.h.
Referenced by set().
|
protected |
Definition at line 141 of file CFStore2.h.
Referenced by set().
|
protected |
Definition at line 145 of file CFStore2.h.
|
protected |
Definition at line 144 of file CFStore2.h.
|
protected |
Definition at line 143 of file CFStore2.h.
|
protected |
Definition at line 144 of file CFStore2.h.
|
protected |
Definition at line 142 of file CFStore2.h.
Referenced by set().
|
protected |
Definition at line 140 of file CFStore2.h.