casa
5.7.0-16
|
a buffer for data read in from a Miriad datatset More...
#include <MirDataBuffer.h>
Public Member Functions | |
MirDataBuffer (...) | |
create the container More... | |
Boolean | hasMore () |
return true if there is still data to be read from the dataset More... | |
void | varUpdated (Boolean val) |
set the variable update state. More... | |
Boolean | isVarUpdated () |
return the variable update state. More... | |
float * | operator[] (casacore::Int i) |
return a pointer to the i-th record in this buffer More... | |
double * | getPreamble (casacore::Int i) |
return the preamble for the i-th record More... | |
double | getTime () |
return the current Miriad timestamp More... | |
casacore::Int | getBaselineNum (casacore::Int i) |
return the baseline number for the i-th record More... | |
double * | getBaselineVec (casacore::Int i) |
return the baseline vector as a 3-element array holding u, v, & w More... | |
casacore::Int | getPol (casacore::Int i) |
return the Miriad polarization code for the i-th record More... | |
casacore::Int | size () |
return the number of records held in this buffer More... | |
void | reset () |
update the number of records held by the buffer More... | |
Private Member Functions | |
MirDataBuffer (MirDataBuffer &) | |
Private Attributes | |
Boolean | upd |
Boolean | hasmore |
casacore::Block< int > | pol |
casacore::Block< double * > | preamble |
casacore::Block< float * > | narrow |
casacore::Block< float * > | wide |
casacore::Int | nrec |
casacore::Int | nnar |
casacore::Int | nwide |
a buffer for data read in from a Miriad datatset
Internal
this class buffers data from a Miriad dataset
MSes filled from Miriad data feature multiple windows of differing shapes. Performance during casacore::MS reads can be aided by collecting together casacore::MS table records of the same shape (e.g. of the same window). MirFiller accoplishes this by reading all baselines from a single timestamp at once, so that they written out in order of spectral window. This class provides a container for holding the data from different baselines.
At the moment, this is intended for use only by the MirFiller class.
Definition at line 77 of file MirDataBuffer.h.
|
private |
MirDataBuffer::MirDataBuffer | ( | ... | ) |
create the container
|
inline |
return the baseline number for the i-th record
Definition at line 118 of file MirDataBuffer.h.
References preamble.
|
inline |
return the baseline vector as a 3-element array holding u, v, & w
Definition at line 121 of file MirDataBuffer.h.
References preamble.
|
inline |
return the Miriad polarization code for the i-th record
Definition at line 124 of file MirDataBuffer.h.
References pol.
|
inline |
return the preamble for the i-th record
Definition at line 112 of file MirDataBuffer.h.
References preamble.
|
inline |
return the current Miriad timestamp
Definition at line 115 of file MirDataBuffer.h.
References preamble.
|
inline |
return true if there is still data to be read from the dataset
Definition at line 94 of file MirDataBuffer.h.
References hasmore.
|
inline |
return the variable update state.
A value of true means that some variables have changed and should be checked for new values. false means that the variables have not changed since the last time they were checked.
Definition at line 106 of file MirDataBuffer.h.
References upd.
|
inline |
return a pointer to the i-th record in this buffer
Definition at line 109 of file MirDataBuffer.h.
|
inline |
|
inline |
return the number of records held in this buffer
Definition at line 127 of file MirDataBuffer.h.
References nrec.
|
inline |
set the variable update state.
A value of true means that some variables have changed and should be checked for new values. false means that the variables have not changed since the last time they were checked.
Definition at line 100 of file MirDataBuffer.h.
References upd.
|
private |
Definition at line 80 of file MirDataBuffer.h.
|
private |
Definition at line 84 of file MirDataBuffer.h.
Referenced by reset().
|
private |
Definition at line 86 of file MirDataBuffer.h.
|
private |
Definition at line 86 of file MirDataBuffer.h.
Referenced by size().
|
private |
Definition at line 86 of file MirDataBuffer.h.
|
private |
Definition at line 82 of file MirDataBuffer.h.
|
private |
Definition at line 83 of file MirDataBuffer.h.
Referenced by getBaselineNum(), getBaselineVec(), getPreamble(), getTime(), and reset().
|
private |
Definition at line 79 of file MirDataBuffer.h.
Referenced by isVarUpdated(), and varUpdated().
|
private |
Definition at line 85 of file MirDataBuffer.h.
Referenced by reset().