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