casacore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
casacore::ColumnSlicer Class Reference

#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 IPositionshape () 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
 

Detailed Description

Synopsis

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.

Constructor & Destructor Documentation

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.

Member Function Documentation

void casacore::ColumnSlicer::freeSlicers ( )
private

Delete all Slicer objects.

const Vector<Slicer*>& casacore::ColumnSlicer::getDataSlicers ( ) const
inline

Get the data slicers.

Definition at line 392 of file ArrayColumnBase.h.

References dataSlicers_p.

const Vector<Slicer*>& casacore::ColumnSlicer::getDestinationSlicers ( ) const
inline

Get the desintation slicers.

Definition at line 396 of file ArrayColumnBase.h.

References destinationSlicers_p.

const IPosition& casacore::ColumnSlicer::shape ( ) const
inline

Get the shape.

Definition at line 400 of file ArrayColumnBase.h.

References shape_p.

String casacore::ColumnSlicer::validateParameters ( ) const
private

Check if the slicers match the array shape.

Member Data Documentation

Vector<Slicer*> casacore::ColumnSlicer::dataSlicers_p
private

Definition at line 411 of file ArrayColumnBase.h.

Referenced by getDataSlicers().

Vector<Slicer*> casacore::ColumnSlicer::destinationSlicers_p
private

Definition at line 412 of file ArrayColumnBase.h.

Referenced by getDestinationSlicers().

IPosition casacore::ColumnSlicer::shape_p
private

Definition at line 413 of file ArrayColumnBase.h.

Referenced by shape().


The documentation for this class was generated from the following file: