|
casacore
|
Axis independent base for the ArrayAccessor classes. More...
#include <ArrayAccessor.h>
Public Member Functions | |
| void | operator+= (const size_t ix) |
| Iterator-like operations. | |
| void | operator-= (const size_t ix) |
| void | operator++ () |
| void | operator++ (int) |
| void | operator-- () |
| void | operator-- (int) |
| const T & | operator* () const |
| Dereferencing. | |
| T & | operator* () |
| T * | data () |
| const Array< T > & | baseArray () |
| size_t | 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 size_t ax) | |
| ArrayBaseAccessor (const ArrayBaseAccessor< T > &other) | |
| Copy constructor (copy semantics). | |
| ArrayBaseAccessor (const ArrayBaseAccessor< T > &other, const size_t 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 size_t ax) |
| void | init (const size_t ax) |
Protected Attributes | |
| const Array< T > * | arrayPtr_p |
| The pointer to belonging array. | |
| size_t | 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 62 of file ArrayAccessor.h.
|
inlineprotected |
Default constructor (for use in e.g.
containers)
Definition at line 67 of file ArrayAccessor.h.
References arrayPtr_p, axis_p, begin_p, end_p, ptr_p, and step_p.
Referenced by casacore::ArrayAccessor< T, Axis< U > >::ArrayAccessor(), casacore::ArrayAccessor< T, Axis< U > >::ArrayAccessor(), casacore::ArrayAccessor< T, Axis< U > >::ArrayAccessor(), casacore::ArrayAccessor< T, Axis< U > >::ArrayAccessor(), casacore::ArrayAccessor< T, Axis< U > >::ArrayAccessor(), casacore::ArrayAccessor< T, AxisN >::ArrayAccessor(), casacore::ArrayAccessor< T, AxisN >::ArrayAccessor(), casacore::ArrayAccessor< T, AxisN >::ArrayAccessor(), casacore::ArrayAccessor< T, AxisN >::ArrayAccessor(), casacore::ArrayAccessor< T, AxisN >::ArrayAccessor(), ArrayBaseAccessor(), ArrayBaseAccessor(), and operator=().
|
inlineexplicitprotected |
Construct from an Array.
Definition at line 70 of file ArrayAccessor.h.
References arrayPtr_p, axis_p, begin_p, data(), end_p, ptr_p, and step_p.
|
inlineprotected |
Definition at line 79 of file ArrayAccessor.h.
References arrayPtr_p, axis_p, begin_p, data(), end_p, ptr_p, and step_p.
|
inlineprotected |
Copy constructor (copy semantics).
Definition at line 91 of file ArrayAccessor.h.
References ArrayBaseAccessor(), arrayPtr_p, axis_p, begin_p, end_p, ptr_p, and step_p.
|
inlineprotected |
Definition at line 100 of file ArrayAccessor.h.
References ArrayBaseAccessor(), arrayPtr_p, axis_p, begin_p, end_p, ptr_p, and step_p.
|
inlineprotected |
Destructor.
Definition at line 113 of file ArrayAccessor.h.
|
inline |
Definition at line 159 of file ArrayAccessor.h.
References arrayPtr_p.
|
inline |
|
inline |
Definition at line 178 of file ArrayAccessor.h.
|
inline |
Definition at line 158 of file ArrayAccessor.h.
References ptr_p.
Referenced by ArrayBaseAccessor(), and ArrayBaseAccessor().
|
inline |
|
inline |
Definition at line 172 of file ArrayAccessor.h.
|
inlineprotected |
(Re-)initialize from Array
Definition at line 126 of file ArrayAccessor.h.
References arrayPtr_p, and ptr_p.
Referenced by casacore::ArrayAccessor< T, Axis< U > >::init(), casacore::ArrayAccessor< T, AxisN >::init(), and casacore::ArrayAccessor< T, AxisN >::init().
|
inlineprotected |
Definition at line 130 of file ArrayAccessor.h.
References arrayPtr_p, axis_p, and ptr_p.
|
inlineprotected |
Definition at line 135 of file ArrayAccessor.h.
References arrayPtr_p, axis_p, and ptr_p.
|
inline |
Definition at line 157 of file ArrayAccessor.h.
References ptr_p.
|
inline |
|
inline |
Definition at line 148 of file ArrayAccessor.h.
|
inline |
Definition at line 149 of file ArrayAccessor.h.
|
inline |
Iterator-like operations.
Definition at line 146 of file ArrayAccessor.h.
|
inline |
Definition at line 150 of file ArrayAccessor.h.
|
inline |
Definition at line 151 of file ArrayAccessor.h.
|
inline |
Definition at line 147 of file ArrayAccessor.h.
|
inlineprotected |
Assignment (copy semantics).
Definition at line 117 of file ArrayAccessor.h.
References ArrayBaseAccessor(), arrayPtr_p, and ptr_p.
Referenced by casacore::ArrayAccessor< T, Axis< U > >::operator=(), casacore::ArrayAccessor< T, Axis< U > >::operator=(), casacore::ArrayAccessor< T, Axis< U > >::operator=(), casacore::ArrayAccessor< T, AxisN >::operator=(), and casacore::ArrayAccessor< T, AxisN >::operator=().
|
inline |
Definition at line 166 of file ArrayAccessor.h.
|
inline |
Index along current axis.
Definition at line 165 of file ArrayAccessor.h.
|
inline |
Begin when reverse indexing.
Definition at line 189 of file ArrayAccessor.h.
|
inline |
Definition at line 190 of file ArrayAccessor.h.
|
inline |
End when reverse indexing.
Definition at line 183 of file ArrayAccessor.h.
|
inline |
Definition at line 184 of file ArrayAccessor.h.
|
inline |
Definition at line 160 of file ArrayAccessor.h.
References step_p.
|
protected |
The pointer to belonging array.
Definition at line 196 of file ArrayAccessor.h.
Referenced by ArrayBaseAccessor(), ArrayBaseAccessor(), ArrayBaseAccessor(), ArrayBaseAccessor(), ArrayBaseAccessor(), baseArray(), casacore::ArrayAccessor< T, Axis< U > >::index(), casacore::ArrayAccessor< T, Axis< U > >::index(), casacore::ArrayAccessor< T, Axis< U > >::index(), casacore::ArrayAccessor< T, Axis< U > >::index(), casacore::ArrayAccessor< T, AxisN >::index(), casacore::ArrayAccessor< T, AxisN >::index(), casacore::ArrayAccessor< T, AxisN >::index(), casacore::ArrayAccessor< T, AxisN >::index(), init(), init(), init(), casacore::ArrayAccessor< T, Axis< U > >::initOff(), casacore::ArrayAccessor< T, AxisN >::initOff(), casacore::ArrayAccessor< T, Axis< U > >::initStep(), casacore::ArrayAccessor< T, AxisN >::initStep(), casacore::ArrayAccessor< T, Axis< U > >::next(), casacore::ArrayAccessor< T, Axis< U > >::next(), casacore::ArrayAccessor< T, Axis< U > >::next(), casacore::ArrayAccessor< T, Axis< U > >::next(), casacore::ArrayAccessor< T, AxisN >::next(), casacore::ArrayAccessor< T, AxisN >::next(), casacore::ArrayAccessor< T, AxisN >::next(), casacore::ArrayAccessor< T, AxisN >::next(), operator=(), casacore::ArrayAccessor< T, Axis< U > >::prev(), casacore::ArrayAccessor< T, Axis< U > >::prev(), casacore::ArrayAccessor< T, Axis< U > >::prev(), casacore::ArrayAccessor< T, Axis< U > >::prev(), casacore::ArrayAccessor< T, AxisN >::prev(), casacore::ArrayAccessor< T, AxisN >::prev(), casacore::ArrayAccessor< T, AxisN >::prev(), and casacore::ArrayAccessor< T, AxisN >::prev().
|
protected |
Current run-time axis.
Definition at line 198 of file ArrayAccessor.h.
Referenced by casacore::ArrayAccessor< T, AxisN >::ArrayAccessor(), ArrayBaseAccessor(), ArrayBaseAccessor(), ArrayBaseAccessor(), ArrayBaseAccessor(), ArrayBaseAccessor(), init(), init(), casacore::ArrayAccessor< T, AxisN >::initOff(), and casacore::ArrayAccessor< T, AxisN >::initStep().
|
protected |
The start element of array.
Definition at line 204 of file ArrayAccessor.h.
Referenced by ArrayBaseAccessor(), ArrayBaseAccessor(), ArrayBaseAccessor(), ArrayBaseAccessor(), ArrayBaseAccessor(), begin(), begin(), casacore::ArrayAccessor< T, Axis< U > >::initStep(), casacore::ArrayAccessor< T, AxisN >::initStep(), casacore::ArrayAccessor< T, Axis< U > >::operator=(), rend(), rend(), casacore::ArrayAccessor< T, Axis< U > >::reset(), and casacore::ArrayAccessor< T, AxisN >::reset().
|
protected |
The one element beyond last on line.
Definition at line 206 of file ArrayAccessor.h.
Referenced by ArrayBaseAccessor(), ArrayBaseAccessor(), ArrayBaseAccessor(), ArrayBaseAccessor(), ArrayBaseAccessor(), end(), end(), casacore::ArrayAccessor< T, Axis< U > >::initStep(), casacore::ArrayAccessor< T, AxisN >::initStep(), casacore::ArrayAccessor< T, Axis< U > >::operator=(), rbegin(), and rbegin().
|
protected |
Current access pointer.
Definition at line 200 of file ArrayAccessor.h.
Referenced by ArrayBaseAccessor(), ArrayBaseAccessor(), ArrayBaseAccessor(), ArrayBaseAccessor(), ArrayBaseAccessor(), data(), casacore::ArrayAccessor< T, Axis< U > >::index(), casacore::ArrayAccessor< T, Axis< U > >::index(), casacore::ArrayAccessor< T, Axis< U > >::index(), casacore::ArrayAccessor< T, Axis< U > >::index(), casacore::ArrayAccessor< T, AxisN >::index(), casacore::ArrayAccessor< T, AxisN >::index(), casacore::ArrayAccessor< T, AxisN >::index(), casacore::ArrayAccessor< T, AxisN >::index(), init(), init(), init(), casacore::ArrayAccessor< T, Axis< U > >::initStep(), casacore::ArrayAccessor< T, AxisN >::initStep(), casacore::ArrayAccessor< T, Axis< U > >::next(), casacore::ArrayAccessor< T, Axis< U > >::next(), casacore::ArrayAccessor< T, Axis< U > >::next(), casacore::ArrayAccessor< T, Axis< U > >::next(), casacore::ArrayAccessor< T, AxisN >::next(), casacore::ArrayAccessor< T, AxisN >::next(), casacore::ArrayAccessor< T, AxisN >::next(), casacore::ArrayAccessor< T, AxisN >::next(), casacore::ArrayAccessor< T, Axis< U > >::operator!=(), casacore::ArrayAccessor< T, Axis< U > >::operator!=(), casacore::ArrayAccessor< T, AxisN >::operator!=(), casacore::ArrayAccessor< T, AxisN >::operator!=(), operator*(), operator*(), operator++(), operator++(), operator+=(), operator--(), operator--(), operator-=(), operator=(), casacore::ArrayAccessor< T, Axis< U > >::operator==(), casacore::ArrayAccessor< T, Axis< U > >::operator==(), casacore::ArrayAccessor< T, AxisN >::operator==(), casacore::ArrayAccessor< T, AxisN >::operator==(), operator[](), operator[](), casacore::ArrayAccessor< T, Axis< U > >::prev(), casacore::ArrayAccessor< T, Axis< U > >::prev(), casacore::ArrayAccessor< T, Axis< U > >::prev(), casacore::ArrayAccessor< T, Axis< U > >::prev(), casacore::ArrayAccessor< T, AxisN >::prev(), casacore::ArrayAccessor< T, AxisN >::prev(), casacore::ArrayAccessor< T, AxisN >::prev(), casacore::ArrayAccessor< T, AxisN >::prev(), casacore::ArrayAccessor< T, Axis< U > >::reset(), casacore::ArrayAccessor< T, Axis< U > >::reset(), casacore::ArrayAccessor< T, AxisN >::reset(), and casacore::ArrayAccessor< T, AxisN >::reset().
|
protected |
The increment to go from one point along an axis, to the next.
Definition at line 202 of file ArrayAccessor.h.
Referenced by ArrayBaseAccessor(), ArrayBaseAccessor(), ArrayBaseAccessor(), ArrayBaseAccessor(), ArrayBaseAccessor(), begin(), end(), casacore::ArrayAccessor< T, Axis< U > >::initStep(), casacore::ArrayAccessor< T, AxisN >::initStep(), operator++(), operator++(), operator+=(), operator--(), operator--(), operator-=(), casacore::ArrayAccessor< T, Axis< U > >::operator=(), operator[](), operator[](), rbegin(), rbegin(), rend(), rend(), and step().