casacore
|
#include <ArrayColumnBase.h>
Public Member Functions | |
ColumnSlicer (const IPosition &shape, const Vector< Slicer * > &dataSlicers, const Vector< Slicer * > &destinationSlicers) | |
Construct the object. More... | |
~ColumnSlicer () | |
The destructor deletes all Slicer objects. More... | |
const Vector< Slicer * > & | getDataSlicers () const |
Get the data slicers. More... | |
const Vector< Slicer * > & | getDestinationSlicers () const |
Get the desintation slicers. More... | |
const IPosition & | shape () const |
Get the shape. More... | |
Private Member Functions | |
void | freeSlicers () |
Delete all Slicer objects. More... | |
String | validateParameters () const |
Check if the slicers match the array shape. More... | |
Private Attributes | |
Vector< Slicer * > | dataSlicers_p |
Vector< Slicer * > | destinationSlicers_p |
IPosition | shape_p |
ColumnSlicer is used in one of the ArrayColumn::getColumnCells functions. That method takes a potentially complex/ selection of data out of a column cell (e.g., multiple slices along each axis) and then puts them into a selection of a destination array. This is most easily represented as a set of source,destination slicers where one is applied to the cell and the other to the destination array.
Definition at line 375 of file ArrayColumnBase.h.
casacore::ColumnSlicer::ColumnSlicer | ( | const IPosition & | shape, |
const Vector< Slicer * > & | dataSlicers, | ||
const Vector< Slicer * > & | destinationSlicers | ||
) |
Construct the object.
It takes over the pointers to the Slicer objects and deletes them in the destructor. The shape parameter is the shape of the destination array excluding the row axis.
casacore::ColumnSlicer::~ColumnSlicer | ( | ) |
The destructor deletes all Slicer objects.
|
private |
Delete all Slicer objects.
Get the desintation slicers.
Definition at line 396 of file ArrayColumnBase.h.
References destinationSlicers_p.
|
inline |
|
private |
Check if the slicers match the array shape.
Definition at line 411 of file ArrayColumnBase.h.
Referenced by getDataSlicers().
Definition at line 412 of file ArrayColumnBase.h.
Referenced by getDestinationSlicers().
|
private |
Definition at line 413 of file ArrayColumnBase.h.
Referenced by shape().