casa
$Rev:20696$
|
#include <CFStore2.h>
Public Member Functions | |
CFStore2 () | |
virtual | ~CFStore2 () |
CFStore2(CFBuffer<Complex> *dataPtr, Quantity PA, Int mosPointing): storage_p(), pa_p(PA), mosPointingPos_p(mosPointing) {storage_p = new CFBuffer<Complex>(*dataPtr);};. | |
CFStore2 & | operator= (const CFStore2 &other) |
void | show (const char *Mesg=NULL, ostream &os=cerr) |
void | makePersistent (const char *dir, const char *qualifier="") |
void | initMaps (const VisBuffer &vb, const Matrix< Double > &freqSelection, const Double &imRefFreq) |
Bool | null () |
Double | memUsage () |
void | set (const CFStore2 &other) |
void | setCFBuffer (CFBuffer *dataPtr, Quantity pa, const Int &ant1, const Int &ant2) |
CountedPtr< CFBuffer > & | getCFBuffer (const Quantity &pa, const Quantity &paTol, const Int &ant1, const Int &ant2) |
CountedPtr< CFBuffer > & | getCFBuffer (const Int &paNdx, const Int &antNdx) |
Get CFBuffer by directly indexing in the list of CFBuffers | |
void | getParams (Quantity &pa, Int &ant1, Int &ant2, const Int &paNdx, const Int &antNdx) |
Vector< Int > | resize (const Quantity &pa, const Quantity &paTol, const Int &ant1, const Int &ant2, Bool retainValues=True) |
Matrix< CountedPtr< CFBuffer > > & | getStorage () |
void rememberATerm(CountedPtr<ATerm>& aTerm) {theATermUsed_p = aTerm;} | |
Vector< Int > & | getAnt1List () |
Vector< Int > & | getAnt2List () |
Vector< Quantity > | getPAList () |
Protected Member Functions | |
virtual void | getIndex (const Quantity &pa, const Quantity &paTol, const Int &ant1, const Int &ant2, Int &paNdx, Int &antNdx) |
virtual Int | antHashFunction (const Int &ant1, const Int &ant2) |
virtual Int wHashFunction(const Double& wValue) { Int ndx=-1; for(uInt i=0;i<wValue_p.nelements(); i++) if (wValue_p[i] == wValue) {ndx=i;break;} return ndx; } | |
virtual Int | paHashFunction (const Quantity &pa, const Quantity &paTol) |
virtual Int | nearestPA (const Quantity &pa, const Quantity &paTol) |
Protected Attributes | |
Matrix< CountedPtr< CFBuffer > > | storage_p |
Vector< Int > | ant1_p |
Vector< Int > | ant2_p |
Vector< Quantity > | pa_p |
Int | mosPointingPos_p |
Definition at line 47 of file CFStore2.h.
casa::CFStore2::CFStore2 | ( | ) | [inline] |
Definition at line 50 of file CFStore2.h.
virtual casa::CFStore2::~CFStore2 | ( | ) | [inline, virtual] |
CFStore2(CFBuffer<Complex> *dataPtr, Quantity PA, Int mosPointing): storage_p(), pa_p(PA), mosPointingPos_p(mosPointing) {storage_p = new CFBuffer<Complex>(*dataPtr);};.
Definition at line 56 of file CFStore2.h.
virtual Int casa::CFStore2::antHashFunction | ( | const Int & | ant1, |
const Int & | ant2 | ||
) | [inline, protected, virtual] |
virtual Int wHashFunction(const Double& wValue) { Int ndx=-1; for(uInt i=0;i<wValue_p.nelements(); i++) if (wValue_p[i] == wValue) {ndx=i;break;} return ndx; }
Definition at line 139 of file CFStore2.h.
Vector<Int>& casa::CFStore2::getAnt1List | ( | ) | [inline] |
Definition at line 109 of file CFStore2.h.
Vector<Int>& casa::CFStore2::getAnt2List | ( | ) | [inline] |
Definition at line 110 of file CFStore2.h.
CountedPtr<CFBuffer>& casa::CFStore2::getCFBuffer | ( | const Quantity & | pa, |
const Quantity & | paTol, | ||
const Int & | ant1, | ||
const Int & | ant2 | ||
) |
CountedPtr<CFBuffer>& casa::CFStore2::getCFBuffer | ( | const Int & | paNdx, |
const Int & | antNdx | ||
) |
virtual void casa::CFStore2::getIndex | ( | const Quantity & | pa, |
const Quantity & | paTol, | ||
const Int & | ant1, | ||
const Int & | ant2, | ||
Int & | paNdx, | ||
Int & | antNdx | ||
) | [inline, protected, virtual] |
Definition at line 122 of file CFStore2.h.
Vector<Quantity> casa::CFStore2::getPAList | ( | ) | [inline] |
Definition at line 111 of file CFStore2.h.
void casa::CFStore2::getParams | ( | Quantity & | pa, |
Int & | ant1, | ||
Int & | ant2, | ||
const Int & | paNdx, | ||
const Int & | antNdx | ||
) |
Matrix<CountedPtr<CFBuffer> >& casa::CFStore2::getStorage | ( | ) | [inline] |
void rememberATerm(CountedPtr<ATerm>& aTerm) {theATermUsed_p = aTerm;}
Int mapAntIDToAntType(const Int& ant) {return theATermUsed_p->mapAntIDToAntType(ant);};
Definition at line 108 of file CFStore2.h.
void casa::CFStore2::initMaps | ( | const VisBuffer & | vb, |
const Matrix< Double > & | freqSelection, | ||
const Double & | imRefFreq | ||
) |
void casa::CFStore2::makePersistent | ( | const char * | dir, |
const char * | qualifier = "" |
||
) |
virtual Int casa::CFStore2::nearestPA | ( | const Quantity & | pa, |
const Quantity & | paTol | ||
) | [protected, virtual] |
Bool casa::CFStore2::null | ( | ) | [inline] |
Definition at line 66 of file CFStore2.h.
virtual Int casa::CFStore2::paHashFunction | ( | const Quantity & | pa, |
const Quantity & | paTol | ||
) | [inline, protected, virtual] |
for (uInt i=0; i<pa_p.nelements(); i++) if ( pa_p[i] == pa) {ndx=i;break;}
Definition at line 148 of file CFStore2.h.
Vector<Int> casa::CFStore2::resize | ( | const Quantity & | pa, |
const Quantity & | paTol, | ||
const Int & | ant1, | ||
const Int & | ant2, | ||
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.-------------------------------------------------------------------------
void casa::CFStore2::set | ( | const CFStore2 & | other | ) | [inline] |
Definition at line 70 of file CFStore2.h.
void casa::CFStore2::setCFBuffer | ( | CFBuffer * | dataPtr, |
Quantity | pa, | ||
const Int & | ant1, | ||
const Int & | ant2 | ||
) |
void casa::CFStore2::show | ( | const char * | Mesg = NULL , |
ostream & | os = cerr |
||
) |
Vector<Int> casa::CFStore2::ant1_p [protected] |
Definition at line 118 of file CFStore2.h.
Vector<Int> casa::CFStore2::ant2_p [protected] |
Definition at line 118 of file CFStore2.h.
Int casa::CFStore2::mosPointingPos_p [protected] |
Definition at line 120 of file CFStore2.h.
Vector<Quantity> casa::CFStore2::pa_p [protected] |
Definition at line 119 of file CFStore2.h.
Matrix<CountedPtr<CFBuffer > > casa::CFStore2::storage_p [protected] |
Definition at line 111 of file CFStore2.h.