27 #ifndef FLAGGING_RFFLOATLATTICE_H
28 #define FLAGGING_RFFLOATLATTICE_H
83 unsigned nchan,
unsigned nifr,
84 unsigned ntime,
unsigned nbit,
unsigned ncorr);
164 std::vector<std::vector<bool> >
lat;
A Vector of integers, for indexing into Array<T> objects.
RFFloatLatticeIterator iter
casacore::Matrix< casacore::Float > curs
casacore::IPosition lat_shape
RFFloatLatticeIterator newIter()
creates a new iterator for this lattice
casacore::Float & operator()(casacore::uInt i, casacore::uInt j)
returns element at i,j of cursor
void init(casacore::uInt nx, casacore::uInt ny, casacore::uInt nz, casacore::uInt ncorr, casacore::uInt nAgent, casacore::Int maxmem=-1, casacore::Int tile_mb=2)
creates NX x NY x NZ cube tile_mb is the tile size, in MB (when using paging)
const casacore::IPosition & shape()
returns shape
RFFloatLatticeIterator & iterator()
provides access to lattice itself std::vector<std::vector<bool> > & lattice() { return lat; } ...
RFFloatLatice: a cubic lattice.
casacore::Int position()
returns position of internal iterator
casacore::Matrix< casacore::Float > * advance(casacore::Int iz)
advances internal iterator to specified slot along the Z axis, returns cursor
std::vector< std::vector< bool > > lat
~RFFloatLattice()
destructor
RFFloatLatticeIterator()
default constructor creates empty iterator
void cleanup()
destroys cube
RFFloatLattice()
default constructor creates empty cube
casacore::Matrix< casacore::Float > * cursor()
returns internal cursor
static casacore::uInt estimateMemoryUse(casacore::uInt nx, casacore::uInt ny, casacore::uInt nz)
returns size of cube
bool Bool
Define the standard types used by Casacore.
~RFFloatLatticeIterator()
destructor
casacore::Matrix< casacore::Float > * reset(casacore::Bool will_read=true, casacore::Bool will_write=true)
resets the lattice iterator to beginning.
casacore::Matrix< casacore::Float > * cursor()
returns internal cursor
casacore::Matrix< casacore::Float > * reset()
resets the lattice iterator to beginning, returns cursor
casacore::Matrix< casacore::Float > * advance(casacore::uInt iz)
advances internal iterator to specified slot along the Z axis, returns cursor
casacore::uInt position()
returns position of internal iterator
casacore::Float & operator()(casacore::uInt i, casacore::uInt j)
returns element at i,j of cursor
std::vector< std::vector< bool > > * lattice
vector<bool>: is a space-efficient specialization of std::vector for the type bool ...