casa
$Rev:20696$
|
Axis independent base for the ArrayAccessor classes. More...
#include <ArrayAccessor.h>
Public Member Functions | |
void | operator+= (const uInt ix) |
void | operator-= (const uInt ix) |
void | operator++ () |
void | operator++ (int) |
void | operator-- () |
void | operator-- (int) |
const T & | operator* () const |
Dereferencing. | |
T & | operator* () |
T * | data () |
const Array< T > & | baseArray () |
uInt | step () |
const T & | operator[] (const Int ix) const |
Index along current axis. | |
T & | operator[] (const Int ix) |
const T * | end () |
End of index on line. | |
const T * | end (const Int n) |
const T * | begin () |
Start of index on line. | |
const T * | begin (const Int n) |
const T * | rend () |
End when reverse indexing. | |
const T * | rend (const Int n) |
const T * | rbegin () |
Begin when reverse indexing. | |
const T * | rbegin (const Int n) |
Protected Member Functions | |
ArrayBaseAccessor () | |
Default constructor (for use in e.g. | |
ArrayBaseAccessor (const Array< T > &arr) | |
Construct from an Array. | |
ArrayBaseAccessor (const Array< T > &arr, const uInt ax) | |
ArrayBaseAccessor (const ArrayBaseAccessor< T > &other) | |
Copy constructor (copy semantics) | |
ArrayBaseAccessor (const ArrayBaseAccessor< T > &other, const uInt ax) | |
~ArrayBaseAccessor () | |
Destructor. | |
ArrayBaseAccessor & | operator= (const ArrayBaseAccessor< T > &other) |
Assignment (copy semantics) | |
void | init (const Array< T > &arr) |
(Re-)initialize from Array | |
void | init (const Array< T > &arr, const uInt ax) |
void | init (const uInt ax) |
Protected Attributes | |
const Array< T > * | arrayPtr_p |
uInt | axis_p |
Current run-time axis. | |
T * | ptr_p |
Current access pointer. | |
Int | step_p |
The increment to go from one point along an axis, to the next. | |
const T * | begin_p |
The start element of array. | |
const T * | end_p |
The one element beyond last on line. |
Axis independent base for the ArrayAccessor classes.
Internal
The ArrayBaseAccessor class implements the axis independent parts of the ArrayAccessor class. It can only be used from the ArrayAccessor class.
Definition at line 69 of file ArrayAccessor.h.
casa::ArrayBaseAccessor< T >::ArrayBaseAccessor | ( | ) | [inline, protected] |
casa::ArrayBaseAccessor< T >::ArrayBaseAccessor | ( | const Array< T > & | arr | ) | [inline, explicit, protected] |
Construct from an Array.
Definition at line 78 of file ArrayAccessor.h.
casa::ArrayBaseAccessor< T >::ArrayBaseAccessor | ( | const Array< T > & | arr, |
const uInt | ax | ||
) | [inline, protected] |
Definition at line 81 of file ArrayAccessor.h.
casa::ArrayBaseAccessor< T >::ArrayBaseAccessor | ( | const ArrayBaseAccessor< T > & | other | ) | [inline, protected] |
Copy constructor (copy semantics)
Definition at line 87 of file ArrayAccessor.h.
casa::ArrayBaseAccessor< T >::ArrayBaseAccessor | ( | const ArrayBaseAccessor< T > & | other, |
const uInt | ax | ||
) | [inline, protected] |
Definition at line 90 of file ArrayAccessor.h.
casa::ArrayBaseAccessor< T >::~ArrayBaseAccessor | ( | ) | [inline, protected] |
Destructor.
Definition at line 97 of file ArrayAccessor.h.
const Array<T>& casa::ArrayBaseAccessor< T >::baseArray | ( | ) | [inline] |
Definition at line 131 of file ArrayAccessor.h.
References casa::ArrayBaseAccessor< T >::arrayPtr_p.
const T* casa::ArrayBaseAccessor< T >::begin | ( | ) | [inline] |
Start of index on line.
Definition at line 149 of file ArrayAccessor.h.
References casa::ArrayBaseAccessor< T >::begin_p.
const T* casa::ArrayBaseAccessor< T >::begin | ( | const Int | n | ) | [inline] |
Definition at line 150 of file ArrayAccessor.h.
References casa::ArrayBaseAccessor< T >::begin_p, and casa::ArrayBaseAccessor< T >::step_p.
T* casa::ArrayBaseAccessor< T >::data | ( | ) | [inline] |
Definition at line 130 of file ArrayAccessor.h.
References casa::ArrayBaseAccessor< T >::ptr_p.
const T* casa::ArrayBaseAccessor< T >::end | ( | ) | [inline] |
End of index on line.
Definition at line 143 of file ArrayAccessor.h.
References casa::ArrayBaseAccessor< T >::end_p.
const T* casa::ArrayBaseAccessor< T >::end | ( | const Int | n | ) | [inline] |
Definition at line 144 of file ArrayAccessor.h.
References casa::ArrayBaseAccessor< T >::end_p, and casa::ArrayBaseAccessor< T >::step_p.
void casa::ArrayBaseAccessor< T >::init | ( | const Array< T > & | arr | ) | [inline, protected] |
(Re-)initialize from Array
Reimplemented in casa::ArrayAccessor< T, Axis< U > >.
Definition at line 107 of file ArrayAccessor.h.
References casa::ArrayBaseAccessor< T >::arrayPtr_p, and casa::ArrayBaseAccessor< T >::ptr_p.
void casa::ArrayBaseAccessor< T >::init | ( | const Array< T > & | arr, |
const uInt | ax | ||
) | [inline, protected] |
Definition at line 109 of file ArrayAccessor.h.
References casa::ArrayBaseAccessor< T >::arrayPtr_p, casa::ArrayBaseAccessor< T >::axis_p, and casa::ArrayBaseAccessor< T >::ptr_p.
void casa::ArrayBaseAccessor< T >::init | ( | const uInt | ax | ) | [inline, protected] |
Definition at line 111 of file ArrayAccessor.h.
References casa::ArrayBaseAccessor< T >::arrayPtr_p, casa::ArrayBaseAccessor< T >::axis_p, and casa::ArrayBaseAccessor< T >::ptr_p.
const T& casa::ArrayBaseAccessor< T >::operator* | ( | ) | const [inline] |
Dereferencing.
Definition at line 128 of file ArrayAccessor.h.
References casa::ArrayBaseAccessor< T >::ptr_p.
T& casa::ArrayBaseAccessor< T >::operator* | ( | ) | [inline] |
Definition at line 129 of file ArrayAccessor.h.
References casa::ArrayBaseAccessor< T >::ptr_p.
void casa::ArrayBaseAccessor< T >::operator++ | ( | ) | [inline] |
Definition at line 120 of file ArrayAccessor.h.
References casa::ArrayBaseAccessor< T >::ptr_p, and casa::ArrayBaseAccessor< T >::step_p.
void casa::ArrayBaseAccessor< T >::operator++ | ( | int | ) | [inline] |
Definition at line 121 of file ArrayAccessor.h.
References casa::ArrayBaseAccessor< T >::ptr_p, and casa::ArrayBaseAccessor< T >::step_p.
void casa::ArrayBaseAccessor< T >::operator+= | ( | const uInt | ix | ) | [inline] |
Iterator-like operations.
Definition at line 118 of file ArrayAccessor.h.
References casa::ArrayBaseAccessor< T >::ptr_p, and casa::ArrayBaseAccessor< T >::step_p.
void casa::ArrayBaseAccessor< T >::operator-- | ( | ) | [inline] |
Definition at line 122 of file ArrayAccessor.h.
References casa::ArrayBaseAccessor< T >::ptr_p, and casa::ArrayBaseAccessor< T >::step_p.
void casa::ArrayBaseAccessor< T >::operator-- | ( | int | ) | [inline] |
Definition at line 123 of file ArrayAccessor.h.
References casa::ArrayBaseAccessor< T >::ptr_p, and casa::ArrayBaseAccessor< T >::step_p.
void casa::ArrayBaseAccessor< T >::operator-= | ( | const uInt | ix | ) | [inline] |
Definition at line 119 of file ArrayAccessor.h.
References casa::ArrayBaseAccessor< T >::ptr_p, and casa::ArrayBaseAccessor< T >::step_p.
ArrayBaseAccessor& casa::ArrayBaseAccessor< T >::operator= | ( | const ArrayBaseAccessor< T > & | other | ) | [inline, protected] |
Assignment (copy semantics)
Definition at line 101 of file ArrayAccessor.h.
References casa::ArrayBaseAccessor< T >::arrayPtr_p, and casa::ArrayBaseAccessor< T >::ptr_p.
const T& casa::ArrayBaseAccessor< T >::operator[] | ( | const Int | ix | ) | const [inline] |
Index along current axis.
Definition at line 137 of file ArrayAccessor.h.
References casa::ArrayBaseAccessor< T >::ptr_p, and casa::ArrayBaseAccessor< T >::step_p.
T& casa::ArrayBaseAccessor< T >::operator[] | ( | const Int | ix | ) | [inline] |
Definition at line 138 of file ArrayAccessor.h.
References casa::ArrayBaseAccessor< T >::ptr_p, and casa::ArrayBaseAccessor< T >::step_p.
const T* casa::ArrayBaseAccessor< T >::rbegin | ( | ) | [inline] |
Begin when reverse indexing.
Definition at line 161 of file ArrayAccessor.h.
References casa::ArrayBaseAccessor< T >::end_p, and casa::ArrayBaseAccessor< T >::step_p.
const T* casa::ArrayBaseAccessor< T >::rbegin | ( | const Int | n | ) | [inline] |
Definition at line 162 of file ArrayAccessor.h.
References casa::ArrayBaseAccessor< T >::end_p, and casa::ArrayBaseAccessor< T >::step_p.
const T* casa::ArrayBaseAccessor< T >::rend | ( | ) | [inline] |
End when reverse indexing.
Definition at line 155 of file ArrayAccessor.h.
References casa::ArrayBaseAccessor< T >::begin_p, and casa::ArrayBaseAccessor< T >::step_p.
const T* casa::ArrayBaseAccessor< T >::rend | ( | const Int | n | ) | [inline] |
Definition at line 156 of file ArrayAccessor.h.
References casa::ArrayBaseAccessor< T >::begin_p, and casa::ArrayBaseAccessor< T >::step_p.
uInt casa::ArrayBaseAccessor< T >::step | ( | ) | [inline] |
Definition at line 132 of file ArrayAccessor.h.
References casa::ArrayBaseAccessor< T >::step_p.
const Array<T>* casa::ArrayBaseAccessor< T >::arrayPtr_p [protected] |
The pointer to belonging array
Definition at line 168 of file ArrayAccessor.h.
Referenced by casa::ArrayBaseAccessor< T >::baseArray(), casa::ArrayBaseAccessor< T >::init(), and casa::ArrayBaseAccessor< T >::operator=().
uInt casa::ArrayBaseAccessor< T >::axis_p [protected] |
Current run-time axis.
Definition at line 170 of file ArrayAccessor.h.
Referenced by casa::ArrayBaseAccessor< T >::init().
const T* casa::ArrayBaseAccessor< T >::begin_p [protected] |
The start element of array.
Definition at line 176 of file ArrayAccessor.h.
Referenced by casa::ArrayBaseAccessor< T >::begin(), and casa::ArrayBaseAccessor< T >::rend().
const T* casa::ArrayBaseAccessor< T >::end_p [protected] |
The one element beyond last on line.
Definition at line 178 of file ArrayAccessor.h.
Referenced by casa::ArrayBaseAccessor< T >::end(), and casa::ArrayBaseAccessor< T >::rbegin().
T* casa::ArrayBaseAccessor< T >::ptr_p [protected] |
Current access pointer.
Definition at line 172 of file ArrayAccessor.h.
Referenced by casa::ArrayBaseAccessor< T >::data(), casa::ArrayBaseAccessor< T >::init(), casa::ArrayAccessor_RT< T, AxisN >::operator!=(), casa::ArrayBaseAccessor< T >::operator*(), casa::ArrayBaseAccessor< T >::operator++(), casa::ArrayBaseAccessor< T >::operator+=(), casa::ArrayBaseAccessor< T >::operator--(), casa::ArrayBaseAccessor< T >::operator-=(), casa::ArrayBaseAccessor< T >::operator=(), casa::ArrayAccessor_RT< T, AxisN >::operator==(), and casa::ArrayBaseAccessor< T >::operator[]().
Int casa::ArrayBaseAccessor< T >::step_p [protected] |
The increment to go from one point along an axis, to the next.
Definition at line 174 of file ArrayAccessor.h.
Referenced by casa::ArrayBaseAccessor< T >::begin(), casa::ArrayBaseAccessor< T >::end(), casa::ArrayBaseAccessor< T >::operator++(), casa::ArrayBaseAccessor< T >::operator+=(), casa::ArrayBaseAccessor< T >::operator--(), casa::ArrayBaseAccessor< T >::operator-=(), casa::ArrayBaseAccessor< T >::operator[](), casa::ArrayBaseAccessor< T >::rbegin(), casa::ArrayBaseAccessor< T >::rend(), and casa::ArrayBaseAccessor< T >::step().