Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.atnf.csiro.au/computing/software/casacore/casacore-1.2.0/doc/html/structcasa_1_1IPosition__global__functions__IPosition__Indexing.html
Дата изменения: Unknown
Дата индексирования: Tue Feb 15 00:43:26 2011
Кодировка:

Поисковые слова: annular solar eclipse
casacore: casa::IPosition_global_functions_IPosition_Indexing Struct Reference
Public Member Functions

casa::IPosition_global_functions_IPosition_Indexing Struct Reference
[Arrays_module]

Indexing functions for IPosition's Convert between IPosition and offset in an array. More...

#include <IPosition.h>

List of all members.

Public Member Functions

IPosition toIPositionInArray (Int64 offset, const IPosition &shape)
 Convert from offset to IPosition in an array.
Int64 toOffsetInArray (const IPosition &iposition, const IPosition &shape)
 Convert from IPosition to offset in an array.
Bool isInsideArray (const Int64 offset, const IPosition &shape)
 Determine if the given offset or IPosition is inside the array.
Bool isInsideArray (const IPosition &iposition, const IPosition &shape)

Detailed Description

Indexing functions for IPosition's Convert between IPosition and offset in an array.

The offset of an element in an array is the number of elements from the origin that the element would be if the array were arranged linearly. The origin of the array has an offset equal to 0, while the "top right corner" of the array has an offset equal to one less than the total number of elements in the array.

Two examples of offset would be the index in a carray and the seek position in a file.

Definition at line 433 of file IPosition.h.


Member Function Documentation

Bool casa::IPosition_global_functions_IPosition_Indexing::isInsideArray ( const Int64  offset,
const IPosition shape 
)

Determine if the given offset or IPosition is inside the array.

Returns True if it is inside the Array.

Thrown Exceptions

Bool casa::IPosition_global_functions_IPosition_Indexing::isInsideArray ( const IPosition iposition,
const IPosition shape 
)
IPosition casa::IPosition_global_functions_IPosition_Indexing::toIPositionInArray ( Int64  offset,
const IPosition shape 
)

Convert from offset to IPosition in an array.

Int64 casa::IPosition_global_functions_IPosition_Indexing::toOffsetInArray ( const IPosition iposition,
const IPosition shape 
)

Convert from IPosition to offset in an array.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines