casa
5.7.0-16
|
#include <CCList.h>
Public Member Functions | |
CCList () | |
vanilla constructor (npol=1, nComp=0) More... | |
CCList (const casacore::uInt nPol, const casacore::uInt nDim=2, const casacore::uInt nComp=0) | |
more controlling constructor: How many casacore::Stokes per flux casacore::Block? How many spatial dimensions per position? How many total components to allocate for? More... | |
CCList (const CCList &other) | |
copy constructor More... | |
~CCList () | |
destructor More... | |
CCList & | operator= (const CCList &other) |
operator= More... | |
casacore::Int * | positionPtr () |
get pointer to the casacore::Block<casacore::Int> which holds the CC's positions in pixel coordinates. More... | |
const casacore::Int * | positionPtr () const |
casacore::Int * | pixelPosition (const casacore::uInt whichCC) |
get pointer to the whichCC'th component's position More... | |
casacore::Int * | freePositionPtr () |
Get a pointer into the Position casacore::Block for the next free clean component. More... | |
const casacore::Int * | freePositionPtr () const |
casacore::Float * | fluxPtr () |
get pointer to the casacore::Block<casacore::Float> which holds the CC's Flux. More... | |
const casacore::Float * | fluxPtr () const |
casacore::Float * | pixelFlux (const casacore::uInt whichCC) |
get pointer to the whichCC'th component's flux More... | |
casacore::Float * | freeFluxPtr () |
Get a pointer into the Flux casacore::Block for the next free clean component. More... | |
const casacore::Float * | freeFluxPtr () const |
casacore::uInt | nPol () const |
How many polarizations? More... | |
casacore::uInt | nDim () const |
How many dimentions? More... | |
casacore::uInt | nComp () const |
How many components have been filled into the list? More... | |
casacore::uInt & | nComp () |
casacore::uInt | maxComp () const |
How many components have been allocated for this list? More... | |
casacore::uInt | freeComp () const |
We have free space for how many more components? More... | |
void | resize (const casacore::uInt nComp) |
Make the list bigger or smaller. More... | |
void | addComp (const casacore::Block< casacore::Float > &flux, const casacore::Block< casacore::Int > &position) |
add a Component; if not enough space, resize the storage blocks to 2*maxComp()+1 More... | |
void | tiledSort (const casacore::IPosition &tileShape) |
casacore::Sort components to be organized by tile number. More... | |
casacore::Bool | ok () const |
ok() is called to check for an internally consistent state by most everything, often behind the scenes; sometimes, the internal state is in flux after a partial operation, and ok() fails; to turn off ok() checking, set itsSuspendOKCheck = true and remember to reset it to false when the state-changing operation is complete. More... | |
Private Member Functions | |
void | suspendOKCheck () |
turn OFF error checking via "ok()" More... | |
void | reactivateOKCheck () |
turn ON error checking vua "ok()" More... | |
Internal or
Internal
casa::CCList::CCList | ( | ) |
vanilla constructor (npol=1, nComp=0)
casa::CCList::CCList | ( | const casacore::uInt | nPol, |
const casacore::uInt | nDim = 2 , |
||
const casacore::uInt | nComp = 0 |
||
) |
more controlling constructor: How many casacore::Stokes per flux casacore::Block? How many spatial dimensions per position? How many total components to allocate for?
casa::CCList::CCList | ( | const CCList & | other | ) |
copy constructor
casa::CCList::~CCList | ( | ) |
destructor
void casa::CCList::addComp | ( | const casacore::Block< casacore::Float > & | flux, |
const casacore::Block< casacore::Int > & | position | ||
) |
add a Component; if not enough space, resize the storage blocks to 2*maxComp()+1
casacore::Float* casa::CCList::fluxPtr | ( | ) |
get pointer to the casacore::Block<casacore::Float> which holds the CC's Flux.
The flux itself is a casacore::Block, as it may be 1, 2, or 4 Stokes. casacore::Block[nPol()*i + iPol] holds the ith component's iPol Stokes.
const casacore::Float* casa::CCList::fluxPtr | ( | ) | const |
casacore::uInt casa::CCList::freeComp | ( | ) | const |
We have free space for how many more components?
casacore::Float* casa::CCList::freeFluxPtr | ( | ) |
Get a pointer into the Flux casacore::Block for the next free clean component.
const casacore::Float* casa::CCList::freeFluxPtr | ( | ) | const |
casacore::Int* casa::CCList::freePositionPtr | ( | ) |
Get a pointer into the Position casacore::Block for the next free clean component.
const casacore::Int* casa::CCList::freePositionPtr | ( | ) | const |
casacore::uInt casa::CCList::maxComp | ( | ) | const |
How many components have been allocated for this list?
|
inline |
How many components have been filled into the list?
Definition at line 203 of file CCList.h.
References DebugAssert, itsComp, and ok().
|
inline |
Definition at line 208 of file CCList.h.
References DebugAssert, itsComp, and ok().
|
inline |
How many dimentions?
Definition at line 198 of file CCList.h.
References DebugAssert, itsDim, and ok().
|
inline |
How many polarizations?
Definition at line 193 of file CCList.h.
References DebugAssert, itsPol, and ok().
casacore::Bool casa::CCList::ok | ( | ) | const |
ok() is called to check for an internally consistent state by most everything, often behind the scenes; sometimes, the internal state is in flux after a partial operation, and ok() fails; to turn off ok() checking, set itsSuspendOKCheck = true and remember to reset it to false when the state-changing operation is complete.
casacore::Float* casa::CCList::pixelFlux | ( | const casacore::uInt | whichCC | ) |
get pointer to the whichCC'th component's flux
casacore::Int* casa::CCList::pixelPosition | ( | const casacore::uInt | whichCC | ) |
get pointer to the whichCC'th component's position
casacore::Int* casa::CCList::positionPtr | ( | ) |
get pointer to the casacore::Block<casacore::Int> which holds the CC's positions in pixel coordinates.
casacore::Block[nDim()*i] holds ith x, casacore::Block[nDim()*i+1] holds ith y
const casacore::Int* casa::CCList::positionPtr | ( | ) | const |
|
private |
turn ON error checking vua "ok()"
void casa::CCList::resize | ( | const casacore::uInt | nComp | ) |
Make the list bigger or smaller.
|
private |
turn OFF error checking via "ok()"
void casa::CCList::tiledSort | ( | const casacore::IPosition & | tileShape | ) |
casacore::Sort components to be organized by tile number.
If the position and Flux blocks have free space at the end, it gets cut off.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |