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, const Bool verbose=False)
 -------------------------------------------------------------------------
void makePersistent (const char *dir, const char *name="", const char *qualifier="")
 ------------------------------------------------------------------------- This version saves the entire CFStore
void makePersistent (const char *dir, const char *cfName, const char *qualifier, const Quantity &pa, const Quantity &dPA, const Int &ant1, const Int &ant2)
 This version saves only those pixels of CFStore that correspond to [PA,(Ant1,Ant2)] co-ordiantes ([PA, BaselineType] co-ordinate).
void primeTheCFB ()
 -------------------------------------------------------------------------
void initMaps (const VisBuffer &vb, const Matrix< Double > &freqSelection, const Double &imRefFreq)
 -------------------------------------------------------------------------
void initPolMaps (PolMapType &polMap, PolMapType &conjPolMap)
 -------------------------------------------------------------------------
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
CFBufferoperator() (const Int &paNdx, const Int &antNdx)
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 ()
IPosition getShape ()

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

Detailed Description

Definition at line 47 of file CFStore2.h.


Constructor & Destructor Documentation

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.


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 154 of file CFStore2.h.

References ant1_p, and ant2_p.

Referenced by getIndex().

Vector<Int>& casa::CFStore2::getAnt1List (  )  [inline]

Definition at line 124 of file CFStore2.h.

References ant1_p.

Vector<Int>& casa::CFStore2::getAnt2List (  )  [inline]

Definition at line 125 of file CFStore2.h.

References ant2_p.

CountedPtr<CFBuffer>& casa::CFStore2::getCFBuffer ( const Int &  paNdx,
const Int &  antNdx 
)

------------------------------------------------------------------------- Get CFBuffer by directly indexing in the list of CFBuffers

CountedPtr<CFBuffer>& casa::CFStore2::getCFBuffer ( const Quantity &  pa,
const Quantity &  paTol,
const Int &  ant1,
const Int &  ant2 
)

-------------------------------------------------------------------------

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 137 of file CFStore2.h.

References antHashFunction(), and paHashFunction().

Vector<Quantity> casa::CFStore2::getPAList (  )  [inline]

Definition at line 126 of file CFStore2.h.

References pa_p.

void casa::CFStore2::getParams ( Quantity &  pa,
Int &  ant1,
Int &  ant2,
const Int &  paNdx,
const Int &  antNdx 
)
IPosition casa::CFStore2::getShape (  )  [inline]

Definition at line 127 of file CFStore2.h.

References storage_p.

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 123 of file CFStore2.h.

References storage_p.

void casa::CFStore2::initMaps ( const VisBuffer vb,
const Matrix< Double > &  freqSelection,
const Double &  imRefFreq 
)

-------------------------------------------------------------------------

void casa::CFStore2::initPolMaps ( PolMapType &  polMap,
PolMapType &  conjPolMap 
)

-------------------------------------------------------------------------

void casa::CFStore2::makePersistent ( const char *  dir,
const char *  cfName,
const char *  qualifier,
const Quantity &  pa,
const Quantity &  dPA,
const Int &  ant1,
const Int &  ant2 
)

This version saves only those pixels of CFStore that correspond to [PA,(Ant1,Ant2)] co-ordiantes ([PA, BaselineType] co-ordinate).

void casa::CFStore2::makePersistent ( const char *  dir,
const char *  name = "",
const char *  qualifier = "" 
)

------------------------------------------------------------------------- This version saves the entire CFStore

Double casa::CFStore2::memUsage (  ) 

-------------------------------------------------------------------------

virtual Int casa::CFStore2::nearestPA ( const Quantity &  pa,
const Quantity &  paTol 
) [protected, virtual]

Referenced by paHashFunction().

Bool casa::CFStore2::null (  )  [inline]

-------------------------------------------------------------------------

Definition at line 80 of file CFStore2.h.

References storage_p.

CFBuffer& casa::CFStore2::operator() ( const Int &  paNdx,
const Int &  antNdx 
) [inline]

Definition at line 100 of file CFStore2.h.

References storage_p.

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 163 of file CFStore2.h.

References nearestPA().

Referenced by getIndex().

void casa::CFStore2::primeTheCFB (  ) 

-------------------------------------------------------------------------

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 84 of file CFStore2.h.

References ant1_p, ant2_p, and pa_p.

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,
const Bool  verbose = False 
)

-------------------------------------------------------------------------


Member Data Documentation

Vector<Int> casa::CFStore2::ant1_p [protected]

Definition at line 133 of file CFStore2.h.

Referenced by antHashFunction(), getAnt1List(), and set().

Vector<Int> casa::CFStore2::ant2_p [protected]

Definition at line 133 of file CFStore2.h.

Referenced by antHashFunction(), getAnt2List(), and set().

Definition at line 135 of file CFStore2.h.

Vector<Quantity> casa::CFStore2::pa_p [protected]

Definition at line 134 of file CFStore2.h.

Referenced by getPAList(), and set().

Matrix<CountedPtr<CFBuffer > > casa::CFStore2::storage_p [protected]

Definition at line 132 of file CFStore2.h.

Referenced by getShape(), getStorage(), null(), and operator()().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1