casacore
|
Read/write indirect arrays. More...
#include <StIndArray.h>
Public Member Functions | |
StIndArray (Int64 fileOffset) | |
Construct the object with the given file offset. More... | |
StIndArray (const StIndArray &) | |
Copy constructor. More... | |
StIndArray & | operator= (const StIndArray &) |
Assignment. More... | |
~StIndArray () | |
const IPosition & | shape () const |
Get the shape. More... | |
Int64 | fileOffset () const |
Get the file offset. More... | |
Bool | setShape (StManArrayFile &, int dataType, const IPosition &shape) |
Set the shape and allocate the array in the file. More... | |
void | getShape (StManArrayFile &ios) |
Read the shape if not read yet. More... | |
uInt | refCount (StManArrayFile &ios) |
Get the reference count. More... | |
void | incrementRefCount (StManArrayFile &ios) |
Increment the reference count. More... | |
void | decrementRefCount (StManArrayFile &ios) |
Decrement the reference count. More... | |
void | copyData (StManArrayFile &ios, int dataType, const StIndArray &other) |
Copy the data from another array. More... | |
void | getArrayBoolV (StManArrayFile &, Array< Bool > *dataPtr) |
Get an array value from the file at the offset held in this object. More... | |
void | getArrayuCharV (StManArrayFile &, Array< uChar > *dataPtr) |
void | getArrayShortV (StManArrayFile &, Array< Short > *dataPtr) |
void | getArrayuShortV (StManArrayFile &, Array< uShort > *dataPtr) |
void | getArrayIntV (StManArrayFile &, Array< Int > *dataPtr) |
void | getArrayuIntV (StManArrayFile &, Array< uInt > *dataPtr) |
void | getArrayInt64V (StManArrayFile &, Array< Int64 > *dataPtr) |
void | getArrayfloatV (StManArrayFile &, Array< float > *dataPtr) |
void | getArraydoubleV (StManArrayFile &, Array< double > *dataPtr) |
void | getArrayComplexV (StManArrayFile &, Array< Complex > *dataPtr) |
void | getArrayDComplexV (StManArrayFile &, Array< DComplex > *dataPtr) |
void | getArrayStringV (StManArrayFile &, Array< String > *dataPtr) |
void | putArrayBoolV (StManArrayFile &, const Array< Bool > *dataPtr) |
Put an array value into the file at the offset held in this object. More... | |
void | putArrayuCharV (StManArrayFile &, const Array< uChar > *dataPtr) |
void | putArrayShortV (StManArrayFile &, const Array< Short > *dataPtr) |
void | putArrayuShortV (StManArrayFile &, const Array< uShort > *dataPtr) |
void | putArrayIntV (StManArrayFile &, const Array< Int > *dataPtr) |
void | putArrayuIntV (StManArrayFile &, const Array< uInt > *dataPtr) |
void | putArrayInt64V (StManArrayFile &, const Array< Int64 > *dataPtr) |
void | putArrayfloatV (StManArrayFile &, const Array< float > *dataPtr) |
void | putArraydoubleV (StManArrayFile &, const Array< double > *dataPtr) |
void | putArrayComplexV (StManArrayFile &, const Array< Complex > *dataPtr) |
void | putArrayDComplexV (StManArrayFile &, const Array< DComplex > *dataPtr) |
void | putArrayStringV (StManArrayFile &, const Array< String > *dataPtr) |
void | getSliceBoolV (StManArrayFile &, const Slicer &, Array< Bool > *dataPtr) |
Get a section of the array from the file at the offset held in this object. More... | |
void | getSliceuCharV (StManArrayFile &, const Slicer &, Array< uChar > *dataPtr) |
void | getSliceShortV (StManArrayFile &, const Slicer &, Array< Short > *dataPtr) |
void | getSliceuShortV (StManArrayFile &, const Slicer &, Array< uShort > *dataPtr) |
void | getSliceIntV (StManArrayFile &, const Slicer &, Array< Int > *dataPtr) |
void | getSliceuIntV (StManArrayFile &, const Slicer &, Array< uInt > *dataPtr) |
void | getSliceInt64V (StManArrayFile &, const Slicer &, Array< Int64 > *dataPtr) |
void | getSlicefloatV (StManArrayFile &, const Slicer &, Array< float > *dataPtr) |
void | getSlicedoubleV (StManArrayFile &, const Slicer &, Array< double > *dataPtr) |
void | getSliceComplexV (StManArrayFile &, const Slicer &, Array< Complex > *dataPtr) |
void | getSliceDComplexV (StManArrayFile &, const Slicer &, Array< DComplex > *dataPtr) |
void | getSliceStringV (StManArrayFile &, const Slicer &, Array< String > *dataPtr) |
void | putSliceBoolV (StManArrayFile &, const Slicer &, const Array< Bool > *dataPtr) |
Put a section of the array into the file at the offset held in this object. More... | |
void | putSliceuCharV (StManArrayFile &, const Slicer &, const Array< uChar > *dataPtr) |
void | putSliceShortV (StManArrayFile &, const Slicer &, const Array< Short > *dataPtr) |
void | putSliceuShortV (StManArrayFile &, const Slicer &, const Array< uShort > *dataPtr) |
void | putSliceIntV (StManArrayFile &, const Slicer &, const Array< Int > *dataPtr) |
void | putSliceuIntV (StManArrayFile &, const Slicer &, const Array< uInt > *dataPtr) |
void | putSliceInt64V (StManArrayFile &, const Slicer &, const Array< Int64 > *dataPtr) |
void | putSlicefloatV (StManArrayFile &, const Slicer &, const Array< float > *dataPtr) |
void | putSlicedoubleV (StManArrayFile &, const Slicer &, const Array< double > *dataPtr) |
void | putSliceComplexV (StManArrayFile &, const Slicer &, const Array< Complex > *dataPtr) |
void | putSliceDComplexV (StManArrayFile &, const Slicer &, const Array< DComplex > *dataPtr) |
void | putSliceStringV (StManArrayFile &, const Slicer &, const Array< String > *dataPtr) |
Private Member Functions | |
void | getSliceData (StManArrayFile &, const Slicer &ns, void *value, const IPosition &userArrayShape, void(*getVec)(StManArrayFile &, Int64, uInt, uInt, uInt, uInt, void *dataPtr)) |
Get sliced data, i.e. More... | |
void | putSliceData (StManArrayFile &, const Slicer &ns, const void *value, const IPosition &userArrayShape, void(*putVec)(StManArrayFile &, Int64, uInt, uInt, uInt, uInt, const void *dataPtr)) |
Put sliced data, i.e. More... | |
void | checkShape (const IPosition &userArrayShape, const IPosition &tableArrayShape) const |
Throw an exception if the shape of the given array and the table array (slice) are not equal. More... | |
Static Private Member Functions | |
static void | getVecBoolV (StManArrayFile &, Int64 fileOffset, uInt arrayStart, uInt length, uInt increment, uInt valueIndex, void *value) |
Get a (type-dependent) vector part of a slice. More... | |
static void | getVecuCharV (StManArrayFile &, Int64 fileOffset, uInt arrayStart, uInt length, uInt increment, uInt valueIndex, void *value) |
static void | getVecShortV (StManArrayFile &, Int64 fileOffset, uInt arrayStart, uInt length, uInt increment, uInt valueIndex, void *value) |
static void | getVecuShortV (StManArrayFile &, Int64 fileOffset, uInt arrayStart, uInt length, uInt increment, uInt valueIndex, void *value) |
static void | getVecIntV (StManArrayFile &, Int64 fileOffset, uInt arrayStart, uInt length, uInt increment, uInt valueIndex, void *value) |
static void | getVecuIntV (StManArrayFile &, Int64 fileOffset, uInt arrayStart, uInt length, uInt increment, uInt valueIndex, void *value) |
static void | getVecInt64V (StManArrayFile &, Int64 fileOffset, uInt arrayStart, uInt length, uInt increment, uInt valueIndex, void *value) |
static void | getVecfloatV (StManArrayFile &, Int64 fileOffset, uInt arrayStart, uInt length, uInt increment, uInt valueIndex, void *value) |
static void | getVecdoubleV (StManArrayFile &, Int64 fileOffset, uInt arrayStart, uInt length, uInt increment, uInt valueIndex, void *value) |
static void | getVecComplexV (StManArrayFile &, Int64 fileOffset, uInt arrayStart, uInt length, uInt increment, uInt valueIndex, void *value) |
static void | getVecDComplexV (StManArrayFile &, Int64 fileOffset, uInt arrayStart, uInt length, uInt increment, uInt valueIndex, void *value) |
static void | getVecStringV (StManArrayFile &, Int64 fileOffset, uInt arrayStart, uInt length, uInt increment, uInt valueIndex, void *value) |
static void | putVecBoolV (StManArrayFile &, Int64 fileOffset, uInt arrayStart, uInt length, uInt increment, uInt valueIndex, const void *value) |
Put a (type-dependent) vector part of a slice. More... | |
static void | putVecuCharV (StManArrayFile &, Int64 fileOffset, uInt arrayStart, uInt length, uInt increment, uInt valueIndex, const void *value) |
static void | putVecShortV (StManArrayFile &, Int64 fileOffset, uInt arrayStart, uInt length, uInt increment, uInt valueIndex, const void *value) |
static void | putVecuShortV (StManArrayFile &, Int64 fileOffset, uInt arrayStart, uInt length, uInt increment, uInt valueIndex, const void *value) |
static void | putVecIntV (StManArrayFile &, Int64 fileOffset, uInt arrayStart, uInt length, uInt increment, uInt valueIndex, const void *value) |
static void | putVecuIntV (StManArrayFile &, Int64 fileOffset, uInt arrayStart, uInt length, uInt increment, uInt valueIndex, const void *value) |
static void | putVecInt64V (StManArrayFile &, Int64 fileOffset, uInt arrayStart, uInt length, uInt increment, uInt valueIndex, const void *value) |
static void | putVecfloatV (StManArrayFile &, Int64 fileOffset, uInt arrayStart, uInt length, uInt increment, uInt valueIndex, const void *value) |
static void | putVecdoubleV (StManArrayFile &, Int64 fileOffset, uInt arrayStart, uInt length, uInt increment, uInt valueIndex, const void *value) |
static void | putVecComplexV (StManArrayFile &, Int64 fileOffset, uInt arrayStart, uInt length, uInt increment, uInt valueIndex, const void *value) |
static void | putVecDComplexV (StManArrayFile &, Int64 fileOffset, uInt arrayStart, uInt length, uInt increment, uInt valueIndex, const void *value) |
static void | putVecStringV (StManArrayFile &, Int64 fileOffset, uInt arrayStart, uInt length, uInt increment, uInt valueIndex, const void *value) |
Private Attributes | |
Int64 | fileOffset_p |
uInt | arrOffset_p |
IPosition | shape_p |
Read/write indirect arrays.
Internal
StIndArray stores indirect arrays on behalf of a storage manager.
StIndArray is a helper class for accessing indirect table arrays. It is the interface between a storage manager like StManAipsIO (in particular its indirect array column class
StManColumnIndArrayAipsIO) and the data storage class StManArrayFile which represents the file holding the shapes and data of the arrays. This file holds the data in canonical format.
StIndArray holds information about an array in the file.
The storage manager creates an StIndArray object for each row. When an array is accessed for the first time, the array data offset and the shape will be filled in by StIndArray. In this way it serves as a cache for the array shape.
StIndArray implements all necessary functions to get/put an array or an array slice from/into file supplied by the given StManArrayFile object. The StManArrayFile object itself has to be created by the storage manager and given to the StIndArray functions.
This helper class makes it possible to share equal functionality between various storage managers handling indirect arrays. At the moment it is used by StmanColumnIndArrayAipsIO and StManColumnIndArrayMirAIO (the AipsIO and Miriad-like storage manager, resp.), but it is not limited to them. It can equally well be used for any other storage manager storing (indirect) arrays via an StManArrayFile object.
Note that the following example is not really useful. StIndArray is an internal class and should not be used by a casual user. The example may however give a bit of insight.
Definition at line 141 of file StIndArray.h.
casacore::StIndArray::StIndArray | ( | Int64 | fileOffset | ) |
Construct the object with the given file offset.
A zero file offset means that no array has been defined yet. That may be filled in later by setShape.
casacore::StIndArray::StIndArray | ( | const StIndArray & | ) |
Copy constructor.
casacore::StIndArray::~StIndArray | ( | ) |
|
private |
Throw an exception if the shape of the given array and the table array (slice) are not equal.
void casacore::StIndArray::copyData | ( | StManArrayFile & | ios, |
int | dataType, | ||
const StIndArray & | other | ||
) |
Copy the data from another array.
An exception if thrown if the shapes do not match.
Referenced by fileOffset().
void casacore::StIndArray::decrementRefCount | ( | StManArrayFile & | ios | ) |
Decrement the reference count.
Referenced by fileOffset().
|
inline |
Get the file offset.
Definition at line 162 of file StIndArray.h.
References copyData(), decrementRefCount(), fileOffset_p, getArrayBoolV(), getArrayComplexV(), getArrayDComplexV(), getArraydoubleV(), getArrayfloatV(), getArrayInt64V(), getArrayIntV(), getArrayShortV(), getArrayStringV(), getArrayuCharV(), getArrayuIntV(), getArrayuShortV(), getShape(), getSliceBoolV(), getSliceComplexV(), getSliceDComplexV(), getSlicedoubleV(), getSlicefloatV(), getSliceInt64V(), getSliceIntV(), getSliceShortV(), getSliceStringV(), getSliceuCharV(), getSliceuIntV(), getSliceuShortV(), incrementRefCount(), putArrayBoolV(), putArrayComplexV(), putArrayDComplexV(), putArraydoubleV(), putArrayfloatV(), putArrayInt64V(), putArrayIntV(), putArrayShortV(), putArrayStringV(), putArrayuCharV(), putArrayuIntV(), putArrayuShortV(), putSliceBoolV(), putSliceComplexV(), putSliceDComplexV(), putSlicedoubleV(), putSlicefloatV(), putSliceInt64V(), putSliceIntV(), putSliceShortV(), putSliceStringV(), putSliceuCharV(), putSliceuIntV(), putSliceuShortV(), refCount(), setShape(), and shape().
void casacore::StIndArray::getArrayBoolV | ( | StManArrayFile & | , |
Array< Bool > * | dataPtr | ||
) |
Get an array value from the file at the offset held in this object.
The buffer pointed to by dataPtr has to have the correct length (which is guaranteed by the ArrayColumn get function).
Referenced by fileOffset().
void casacore::StIndArray::getArrayComplexV | ( | StManArrayFile & | , |
Array< Complex > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::getArrayDComplexV | ( | StManArrayFile & | , |
Array< DComplex > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::getArraydoubleV | ( | StManArrayFile & | , |
Array< double > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::getArrayfloatV | ( | StManArrayFile & | , |
Array< float > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::getArrayInt64V | ( | StManArrayFile & | , |
Array< Int64 > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::getArrayIntV | ( | StManArrayFile & | , |
Array< Int > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::getArrayShortV | ( | StManArrayFile & | , |
Array< Short > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::getArrayStringV | ( | StManArrayFile & | , |
Array< String > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::getArrayuCharV | ( | StManArrayFile & | , |
Array< uChar > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::getArrayuIntV | ( | StManArrayFile & | , |
Array< uInt > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::getArrayuShortV | ( | StManArrayFile & | , |
Array< uShort > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::getShape | ( | StManArrayFile & | ios | ) |
Read the shape if not read yet.
Referenced by fileOffset().
void casacore::StIndArray::getSliceBoolV | ( | StManArrayFile & | , |
const Slicer & | , | ||
Array< Bool > * | dataPtr | ||
) |
Get a section of the array from the file at the offset held in this object.
The buffer pointed to by dataPtr has to have the correct length (which is guaranteed by the ArrayColumn getSlice function).
Referenced by fileOffset().
void casacore::StIndArray::getSliceComplexV | ( | StManArrayFile & | , |
const Slicer & | , | ||
Array< Complex > * | dataPtr | ||
) |
Referenced by fileOffset().
|
private |
Get sliced data, i.e.
get a section of an array. This function is used by getSliceXXXV to have common functionality in one function. It calls the given getVec function for each chunk of data. In this way the bulk of type-independent code is concentrated in getSliceData resulting in small type-dependent functions.
void casacore::StIndArray::getSliceDComplexV | ( | StManArrayFile & | , |
const Slicer & | , | ||
Array< DComplex > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::getSlicedoubleV | ( | StManArrayFile & | , |
const Slicer & | , | ||
Array< double > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::getSlicefloatV | ( | StManArrayFile & | , |
const Slicer & | , | ||
Array< float > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::getSliceInt64V | ( | StManArrayFile & | , |
const Slicer & | , | ||
Array< Int64 > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::getSliceIntV | ( | StManArrayFile & | , |
const Slicer & | , | ||
Array< Int > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::getSliceShortV | ( | StManArrayFile & | , |
const Slicer & | , | ||
Array< Short > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::getSliceStringV | ( | StManArrayFile & | , |
const Slicer & | , | ||
Array< String > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::getSliceuCharV | ( | StManArrayFile & | , |
const Slicer & | , | ||
Array< uChar > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::getSliceuIntV | ( | StManArrayFile & | , |
const Slicer & | , | ||
Array< uInt > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::getSliceuShortV | ( | StManArrayFile & | , |
const Slicer & | , | ||
Array< uShort > * | dataPtr | ||
) |
Referenced by fileOffset().
|
staticprivate |
Get a (type-dependent) vector part of a slice.
This function is called for each chunk by putSliceData.
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
void casacore::StIndArray::incrementRefCount | ( | StManArrayFile & | ios | ) |
Increment the reference count.
Referenced by fileOffset().
StIndArray& casacore::StIndArray::operator= | ( | const StIndArray & | ) |
Assignment.
void casacore::StIndArray::putArrayBoolV | ( | StManArrayFile & | , |
const Array< Bool > * | dataPtr | ||
) |
Put an array value into the file at the offset held in this object.
The buffer pointed to by dataPtr has to have the correct length (which is guaranteed by the ArrayColumn put function).
Referenced by fileOffset().
void casacore::StIndArray::putArrayComplexV | ( | StManArrayFile & | , |
const Array< Complex > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::putArrayDComplexV | ( | StManArrayFile & | , |
const Array< DComplex > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::putArraydoubleV | ( | StManArrayFile & | , |
const Array< double > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::putArrayfloatV | ( | StManArrayFile & | , |
const Array< float > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::putArrayInt64V | ( | StManArrayFile & | , |
const Array< Int64 > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::putArrayIntV | ( | StManArrayFile & | , |
const Array< Int > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::putArrayShortV | ( | StManArrayFile & | , |
const Array< Short > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::putArrayStringV | ( | StManArrayFile & | , |
const Array< String > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::putArrayuCharV | ( | StManArrayFile & | , |
const Array< uChar > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::putArrayuIntV | ( | StManArrayFile & | , |
const Array< uInt > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::putArrayuShortV | ( | StManArrayFile & | , |
const Array< uShort > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::putSliceBoolV | ( | StManArrayFile & | , |
const Slicer & | , | ||
const Array< Bool > * | dataPtr | ||
) |
Put a section of the array into the file at the offset held in this object.
The buffer pointed to by dataPtr has to have the correct length (which is guaranteed by the ArrayColumn putSlice function).
Referenced by fileOffset().
void casacore::StIndArray::putSliceComplexV | ( | StManArrayFile & | , |
const Slicer & | , | ||
const Array< Complex > * | dataPtr | ||
) |
Referenced by fileOffset().
|
private |
Put sliced data, i.e.
put a section of an array. This function is used by putSlice to have common functionality in one function. It calls the given in putVec function for chunk of data. In this way the bulk of type-independent code is concentrated in putSliceData resulting in small type-dependent functions.
void casacore::StIndArray::putSliceDComplexV | ( | StManArrayFile & | , |
const Slicer & | , | ||
const Array< DComplex > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::putSlicedoubleV | ( | StManArrayFile & | , |
const Slicer & | , | ||
const Array< double > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::putSlicefloatV | ( | StManArrayFile & | , |
const Slicer & | , | ||
const Array< float > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::putSliceInt64V | ( | StManArrayFile & | , |
const Slicer & | , | ||
const Array< Int64 > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::putSliceIntV | ( | StManArrayFile & | , |
const Slicer & | , | ||
const Array< Int > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::putSliceShortV | ( | StManArrayFile & | , |
const Slicer & | , | ||
const Array< Short > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::putSliceStringV | ( | StManArrayFile & | , |
const Slicer & | , | ||
const Array< String > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::putSliceuCharV | ( | StManArrayFile & | , |
const Slicer & | , | ||
const Array< uChar > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::putSliceuIntV | ( | StManArrayFile & | , |
const Slicer & | , | ||
const Array< uInt > * | dataPtr | ||
) |
Referenced by fileOffset().
void casacore::StIndArray::putSliceuShortV | ( | StManArrayFile & | , |
const Slicer & | , | ||
const Array< uShort > * | dataPtr | ||
) |
Referenced by fileOffset().
|
staticprivate |
Put a (type-dependent) vector part of a slice.
This function is called for each chunk by putSliceData.
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
uInt casacore::StIndArray::refCount | ( | StManArrayFile & | ios | ) |
Get the reference count.
Referenced by fileOffset().
Bool casacore::StIndArray::setShape | ( | StManArrayFile & | , |
int | dataType, | ||
const IPosition & | shape | ||
) |
Set the shape and allocate the array in the file.
This will define the array and fill in the file offset. If the shape is already defined and does not change, nothing is done and a False value is returned. When the shape changes, the old file space is lost.
Referenced by fileOffset().
|
inline |
Get the shape.
Definition at line 158 of file StIndArray.h.
References shape_p.
Referenced by fileOffset().
|
private |
Definition at line 288 of file StIndArray.h.
|
private |
Definition at line 287 of file StIndArray.h.
Referenced by fileOffset().
|
private |
Definition at line 290 of file StIndArray.h.
Referenced by shape().