casa::ArrayAccessor_RT< T, AxisN > Class Template Reference
[Arrays]

#include <ArrayAccessor.h>

Inheritance diagram for casa::ArrayAccessor_RT< T, AxisN >:

Inheritance graph
[legend]
Collaboration diagram for casa::ArrayAccessor_RT< T, AxisN >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class T>
class casa::ArrayAccessor_RT< T, AxisN >

Specialization for run-time axes.

Intended use:

Part of API

Synopsis

This class is a specialization for run-time axis selection within the array accessor. The axis is specified in the constructors and in the special indexing operators (prev, next, index) with a parameter AxisN(n) in stead of a template parameter <Axis<n> >. Note that the name of the class is ArrayAccessor. The special name is only to bypass cxx2html problems with duplicate class names.

Definition at line 504 of file ArrayAccessor.h.

Public Member Functions

 ~ArrayAccessor_RT ()
 Destructor.
 ArrayAccessor_RT (const AxisN ax=AxisN(0))
 Constructors.
 ArrayAccessor_RT (Array< T > &arr, const AxisN ax=AxisN(0))
 ArrayAccessor_RT (ArrayAccessor_RT< T, AxisN > &other)
 ArrayAccessor_RT (ArrayAccessor_RT< T, AxisN > &other, const AxisN ax)
template<uInt X>
 ArrayAccessor_RT (ArrayAccessor_RT< T, Axis< X > > &other, const AxisN ax=AxisN(0))
ArrayAccessor_RT & operator= (const ArrayAccessor_RT< T, AxisN > &other)
template<uInt X>
ArrayAccessor_RT & operator= (const ArrayAccessor_RT< T, Axis< X > > &other)
void init (const Array< T > &arr, const AxisN ax)
 (Re-)initialization to start of array (i.e.
void init (const AxisN ax)
void reset ()
 Reset to start of dimension or to specified pointer.
void reset (const T *p)
template<class X>
const T & next () const
 Indexing operations along another axis than the one of the current object.
template<class X>
T & next ()
template<class X>
const T & prev () const
template<class X>
T & prev ()
const T & next (const AxisN ax) const
T & next (const AxisN ax)
const T & prev (const AxisN ax) const
T & prev (const AxisN ax)
template<class X>
const T & index (const Int ix) const
template<class X>
T & index (const Int ix)
const T & index (const Int ix, const AxisN(ax)) const
T & index (const Int ix, const AxisN(ax))
Bool operator== (const ArrayAccessor_RT< T, AxisN > &other) const
 Comparisons.
Bool operator!= (const ArrayAccessor_RT< T, AxisN > &other) const
Bool operator== (const T *other) const
Bool operator!= (const T *other) const

Private Member Functions

Int initOff (Int x, uInt ax)
 Get proper offset.
void initStep ()
 Initialize some internal values.


Constructor & Destructor Documentation

template<class T>
casa::ArrayAccessor_RT< T, AxisN >::ArrayAccessor_RT ( const AxisN  ax = AxisN(0)  )  [inline, explicit]

Constructors.

Definition at line 509 of file ArrayAccessor.h.

template<class T>
casa::ArrayAccessor_RT< T, AxisN >::ArrayAccessor_RT ( Array< T > &  arr,
const AxisN  ax = AxisN(0) 
) [inline, explicit]

Definition at line 511 of file ArrayAccessor.h.

template<class T>
casa::ArrayAccessor_RT< T, AxisN >::ArrayAccessor_RT ( ArrayAccessor_RT< T, AxisN > &  other  )  [inline]

Definition at line 513 of file ArrayAccessor.h.

template<class T>
casa::ArrayAccessor_RT< T, AxisN >::ArrayAccessor_RT ( ArrayAccessor_RT< T, AxisN > &  other,
const AxisN  ax 
) [inline, explicit]

Definition at line 515 of file ArrayAccessor.h.

template<class T>
template<uInt X>
casa::ArrayAccessor_RT< T, AxisN >::ArrayAccessor_RT ( ArrayAccessor_RT< T, Axis< X > > &  other,
const AxisN  ax = AxisN(0) 
) [inline, explicit]

Definition at line 519 of file ArrayAccessor.h.

template<class T>
casa::ArrayAccessor_RT< T, AxisN >::~ArrayAccessor_RT (  )  [inline]

Destructor.

Definition at line 534 of file ArrayAccessor.h.


Member Function Documentation

template<class T>
ArrayAccessor_RT& casa::ArrayAccessor_RT< T, AxisN >::operator= ( const ArrayAccessor_RT< T, AxisN > &  other  )  [inline]

Definition at line 522 of file ArrayAccessor.h.

template<class T>
template<uInt X>
ArrayAccessor_RT& casa::ArrayAccessor_RT< T, AxisN >::operator= ( const ArrayAccessor_RT< T, Axis< X > > &  other  )  [inline]

Definition at line 528 of file ArrayAccessor.h.

template<class T>
void casa::ArrayAccessor_RT< T, AxisN >::init ( const Array< T > &  arr,
const AxisN  ax 
) [inline]

(Re-)initialization to start of array (i.e.

element (0,0,0,.\..)) or re-initialize to an axis.

Definition at line 539 of file ArrayAccessor.h.

template<class T>
void casa::ArrayAccessor_RT< T, AxisN >::init ( const AxisN  ax  )  [inline]

Definition at line 541 of file ArrayAccessor.h.

template<class T>
void casa::ArrayAccessor_RT< T, AxisN >::reset (  )  [inline]

Reset to start of dimension or to specified pointer.

Definition at line 547 of file ArrayAccessor.h.

template<class T>
void casa::ArrayAccessor_RT< T, AxisN >::reset ( const T *  p  )  [inline]

Definition at line 548 of file ArrayAccessor.h.

template<class T>
template<class X>
const T& casa::ArrayAccessor_RT< T, AxisN >::next (  )  const [inline]

Indexing operations along another axis than the one of the current object.

See for the indexing and iterator operations along the object's axis ArrayBaseAccessor

Definition at line 556 of file ArrayAccessor.h.

References N.

template<class T>
template<class X>
T& casa::ArrayAccessor_RT< T, AxisN >::next (  )  [inline]

Definition at line 559 of file ArrayAccessor.h.

References N.

template<class T>
template<class X>
const T& casa::ArrayAccessor_RT< T, AxisN >::prev (  )  const [inline]

Definition at line 561 of file ArrayAccessor.h.

References N.

template<class T>
template<class X>
T& casa::ArrayAccessor_RT< T, AxisN >::prev (  )  [inline]

Definition at line 564 of file ArrayAccessor.h.

References N.

template<class T>
const T& casa::ArrayAccessor_RT< T, AxisN >::next ( const AxisN  ax  )  const [inline]

Definition at line 565 of file ArrayAccessor.h.

template<class T>
T& casa::ArrayAccessor_RT< T, AxisN >::next ( const AxisN  ax  )  [inline]

Definition at line 567 of file ArrayAccessor.h.

template<class T>
const T& casa::ArrayAccessor_RT< T, AxisN >::prev ( const AxisN  ax  )  const [inline]

Definition at line 569 of file ArrayAccessor.h.

template<class T>
T& casa::ArrayAccessor_RT< T, AxisN >::prev ( const AxisN  ax  )  [inline]

Definition at line 571 of file ArrayAccessor.h.

template<class T>
template<class X>
const T& casa::ArrayAccessor_RT< T, AxisN >::index ( const Int  ix  )  const [inline]

Definition at line 574 of file ArrayAccessor.h.

References N.

template<class T>
template<class X>
T& casa::ArrayAccessor_RT< T, AxisN >::index ( const Int  ix  )  [inline]

Definition at line 577 of file ArrayAccessor.h.

References N.

template<class T>
const T& casa::ArrayAccessor_RT< T, AxisN >::index ( const Int  ix,
const   AxisN(ax) 
) const [inline]

Definition at line 579 of file ArrayAccessor.h.

template<class T>
T& casa::ArrayAccessor_RT< T, AxisN >::index ( const Int  ix,
const   AxisN(ax) 
) [inline]

Definition at line 581 of file ArrayAccessor.h.

template<class T>
Bool casa::ArrayAccessor_RT< T, AxisN >::operator== ( const ArrayAccessor_RT< T, AxisN > &  other  )  const [inline]

Comparisons.

Definition at line 587 of file ArrayAccessor.h.

template<class T>
Bool casa::ArrayAccessor_RT< T, AxisN >::operator!= ( const ArrayAccessor_RT< T, AxisN > &  other  )  const [inline]

Definition at line 589 of file ArrayAccessor.h.

template<class T>
Bool casa::ArrayAccessor_RT< T, AxisN >::operator== ( const T *  other  )  const [inline]

Definition at line 591 of file ArrayAccessor.h.

template<class T>
Bool casa::ArrayAccessor_RT< T, AxisN >::operator!= ( const T *  other  )  const [inline]

Definition at line 592 of file ArrayAccessor.h.

template<class T>
Int casa::ArrayAccessor_RT< T, AxisN >::initOff ( Int  x,
uInt  ax 
) [inline, private]

Get proper offset.

Definition at line 597 of file ArrayAccessor.h.

template<class T>
void casa::ArrayAccessor_RT< T, AxisN >::initStep (  )  [inline, private]

Initialize some internal values.

Definition at line 601 of file ArrayAccessor.h.


The documentation for this class was generated from the following file:
Generated on Tue Aug 26 22:31:52 2008 for NRAOCASA by  doxygen 1.5.1