casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Protected Attributes
casa::CFStore2 Class Reference

#include <CFStore2.h>

List of all members.

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);};.
CFStore2operator= (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< Intresize (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< QuantitygetPAList ()

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< Intant1_p
Vector< Intant2_p
Vector< Quantitypa_p
Int mosPointingPos_p

Detailed Description

Definition at line 47 of file CFStore2.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

Definition at line 109 of file CFStore2.h.

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 
)


Get CFBuffer by directly indexing in the list of CFBuffers

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.

Definition at line 111 of file CFStore2.h.

void casa::CFStore2::getParams ( Quantity pa,
Int ant1,
Int ant2,
const Int paNdx,
const Int antNdx 
)

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.

CFStore2& casa::CFStore2::operator= ( const CFStore2 other)
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 
)



Member Data Documentation

Definition at line 118 of file CFStore2.h.

Definition at line 118 of file CFStore2.h.

Definition at line 120 of file CFStore2.h.

Definition at line 119 of file CFStore2.h.

Definition at line 111 of file CFStore2.h.


The documentation for this class was generated from the following file: