casacore
|
Axis independent base for the ArrayAccessor classes. More...
#include <ArrayAccessor.h>
Public Member Functions | |
void | operator+= (const size_t ix) |
Iterator-like operations. More... | |
void | operator-= (const size_t ix) |
void | operator++ () |
void | operator++ (int) |
void | operator-- () |
void | operator-- (int) |
const T & | operator* () const |
Dereferencing. More... | |
T & | operator* () |
T * | data () |
const Array< T > & | baseArray () |
size_t | step () |
const T & | operator[] (const int ix) const |
Index along current axis. More... | |
T & | operator[] (const int ix) |
const T * | end () |
End of index on line. More... | |
const T * | end (const int n) |
const T * | begin () |
Start of index on line. More... | |
const T * | begin (const int n) |
const T * | rend () |
End when reverse indexing. More... | |
const T * | rend (const int n) |
const T * | rbegin () |
Begin when reverse indexing. More... | |
const T * | rbegin (const int n) |
Protected Member Functions | |
ArrayBaseAccessor () | |
Default constructor (for use in e.g. More... | |
ArrayBaseAccessor (const Array< T > &arr) | |
Construct from an Array. More... | |
ArrayBaseAccessor (const Array< T > &arr, const size_t ax) | |
ArrayBaseAccessor (const ArrayBaseAccessor< T > &other) | |
Copy constructor (copy semantics) More... | |
ArrayBaseAccessor (const ArrayBaseAccessor< T > &other, const size_t ax) | |
~ArrayBaseAccessor () | |
Destructor. More... | |
ArrayBaseAccessor & | operator= (const ArrayBaseAccessor< T > &other) |
Assignment (copy semantics) More... | |
void | init (const Array< T > &arr) |
(Re-)initialize from Array More... | |
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. More... | |
size_t | axis_p |
Current run-time axis. More... | |
T * | ptr_p |
Current access pointer. More... | |
int | step_p |
The increment to go from one point along an axis, to the next. More... | |
const T * | begin_p |
The start element of array. More... | |
const T * | end_p |
The one element beyond last on line. More... | |
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 63 of file ArrayAccessor.h.
|
inlineprotected |
|
inlineexplicitprotected |
Construct from an Array.
Definition at line 72 of file ArrayAccessor.h.
|
inlineprotected |
Definition at line 75 of file ArrayAccessor.h.
|
inlineprotected |
Copy constructor (copy semantics)
Definition at line 81 of file ArrayAccessor.h.
|
inlineprotected |
Definition at line 84 of file ArrayAccessor.h.
|
inlineprotected |
Destructor.
Definition at line 91 of file ArrayAccessor.h.
|
inline |
Definition at line 125 of file ArrayAccessor.h.
References casacore::ArrayBaseAccessor< T >::arrayPtr_p.
|
inline |
Start of index on line.
Definition at line 143 of file ArrayAccessor.h.
References casacore::ArrayBaseAccessor< T >::begin_p.
|
inline |
Definition at line 144 of file ArrayAccessor.h.
References casacore::ArrayBaseAccessor< T >::begin_p, and casacore::ArrayBaseAccessor< T >::step_p.
|
inline |
Definition at line 124 of file ArrayAccessor.h.
References casacore::ArrayBaseAccessor< T >::ptr_p.
|
inline |
End of index on line.
Definition at line 137 of file ArrayAccessor.h.
References casacore::ArrayBaseAccessor< T >::end_p.
|
inline |
Definition at line 138 of file ArrayAccessor.h.
References casacore::ArrayBaseAccessor< T >::end_p, and casacore::ArrayBaseAccessor< T >::step_p.
|
inlineprotected |
(Re-)initialize from Array
Definition at line 101 of file ArrayAccessor.h.
References casacore::ArrayBaseAccessor< T >::arrayPtr_p, casacore::Array< T, Alloc >::data(), and casacore::ArrayBaseAccessor< T >::ptr_p.
Referenced by casacore::ArrayAccessor< T, Axis< U > >::init(), and casacore::ArrayAccessor< T, AxisN >::init().
|
inlineprotected |
Definition at line 103 of file ArrayAccessor.h.
References casacore::ArrayBaseAccessor< T >::arrayPtr_p, casacore::ArrayBaseAccessor< T >::axis_p, casacore::Array< T, Alloc >::data(), and casacore::ArrayBaseAccessor< T >::ptr_p.
|
inlineprotected |
Definition at line 105 of file ArrayAccessor.h.
References casacore::ArrayBaseAccessor< T >::arrayPtr_p, casacore::ArrayBaseAccessor< T >::axis_p, and casacore::ArrayBaseAccessor< T >::ptr_p.
|
inline |
Dereferencing.
Definition at line 122 of file ArrayAccessor.h.
References casacore::ArrayBaseAccessor< T >::ptr_p.
|
inline |
Definition at line 123 of file ArrayAccessor.h.
References casacore::ArrayBaseAccessor< T >::ptr_p.
|
inline |
Definition at line 114 of file ArrayAccessor.h.
References casacore::ArrayBaseAccessor< T >::ptr_p, and casacore::ArrayBaseAccessor< T >::step_p.
|
inline |
Definition at line 115 of file ArrayAccessor.h.
References casacore::ArrayBaseAccessor< T >::ptr_p, and casacore::ArrayBaseAccessor< T >::step_p.
|
inline |
Iterator-like operations.
Definition at line 112 of file ArrayAccessor.h.
References casacore::ArrayBaseAccessor< T >::ptr_p, and casacore::ArrayBaseAccessor< T >::step_p.
|
inline |
Definition at line 116 of file ArrayAccessor.h.
References casacore::ArrayBaseAccessor< T >::ptr_p, and casacore::ArrayBaseAccessor< T >::step_p.
|
inline |
Definition at line 117 of file ArrayAccessor.h.
References casacore::ArrayBaseAccessor< T >::ptr_p, and casacore::ArrayBaseAccessor< T >::step_p.
|
inline |
Definition at line 113 of file ArrayAccessor.h.
References casacore::ArrayBaseAccessor< T >::ptr_p, and casacore::ArrayBaseAccessor< T >::step_p.
|
inlineprotected |
Assignment (copy semantics)
Definition at line 95 of file ArrayAccessor.h.
References casacore::ArrayBaseAccessor< T >::arrayPtr_p, and casacore::ArrayBaseAccessor< T >::ptr_p.
Referenced by casacore::ArrayAccessor< T, Axis< U > >::operator=(), and casacore::ArrayAccessor< T, AxisN >::operator=().
|
inline |
Index along current axis.
Definition at line 131 of file ArrayAccessor.h.
References casacore::ArrayBaseAccessor< T >::ptr_p, and casacore::ArrayBaseAccessor< T >::step_p.
|
inline |
Definition at line 132 of file ArrayAccessor.h.
References casacore::ArrayBaseAccessor< T >::ptr_p, and casacore::ArrayBaseAccessor< T >::step_p.
|
inline |
Begin when reverse indexing.
Definition at line 155 of file ArrayAccessor.h.
References casacore::ArrayBaseAccessor< T >::end_p, and casacore::ArrayBaseAccessor< T >::step_p.
|
inline |
Definition at line 156 of file ArrayAccessor.h.
References casacore::ArrayBaseAccessor< T >::end_p, and casacore::ArrayBaseAccessor< T >::step_p.
|
inline |
End when reverse indexing.
Definition at line 149 of file ArrayAccessor.h.
References casacore::ArrayBaseAccessor< T >::begin_p, and casacore::ArrayBaseAccessor< T >::step_p.
|
inline |
Definition at line 150 of file ArrayAccessor.h.
References casacore::ArrayBaseAccessor< T >::begin_p, and casacore::ArrayBaseAccessor< T >::step_p.
|
inline |
Definition at line 126 of file ArrayAccessor.h.
References casacore::ArrayBaseAccessor< T >::step_p.
|
protected |
The pointer to belonging array.
Definition at line 162 of file ArrayAccessor.h.
Referenced by casacore::ArrayBaseAccessor< T >::baseArray(), casacore::ArrayBaseAccessor< T >::init(), and casacore::ArrayBaseAccessor< T >::operator=().
|
protected |
Current run-time axis.
Definition at line 164 of file ArrayAccessor.h.
Referenced by casacore::ArrayBaseAccessor< T >::init().
|
protected |
The start element of array.
Definition at line 170 of file ArrayAccessor.h.
Referenced by casacore::ArrayBaseAccessor< T >::begin(), and casacore::ArrayBaseAccessor< T >::rend().
|
protected |
The one element beyond last on line.
Definition at line 172 of file ArrayAccessor.h.
Referenced by casacore::ArrayBaseAccessor< T >::end(), and casacore::ArrayBaseAccessor< T >::rbegin().
|
protected |
Current access pointer.
Definition at line 166 of file ArrayAccessor.h.
Referenced by casacore::ArrayBaseAccessor< T >::data(), casacore::ArrayBaseAccessor< T >::init(), casacore::ArrayAccessor< T, AxisN >::operator!=(), casacore::ArrayBaseAccessor< T >::operator*(), casacore::ArrayBaseAccessor< T >::operator++(), casacore::ArrayBaseAccessor< T >::operator+=(), casacore::ArrayBaseAccessor< T >::operator--(), casacore::ArrayBaseAccessor< T >::operator-=(), casacore::ArrayBaseAccessor< T >::operator=(), casacore::ArrayAccessor< T, AxisN >::operator==(), and casacore::ArrayBaseAccessor< T >::operator[]().
|
protected |
The increment to go from one point along an axis, to the next.
Definition at line 168 of file ArrayAccessor.h.
Referenced by casacore::ArrayBaseAccessor< T >::begin(), casacore::ArrayBaseAccessor< T >::end(), casacore::ArrayBaseAccessor< T >::operator++(), casacore::ArrayBaseAccessor< T >::operator+=(), casacore::ArrayBaseAccessor< T >::operator--(), casacore::ArrayBaseAccessor< T >::operator-=(), casacore::ArrayBaseAccessor< T >::operator[](), casacore::ArrayBaseAccessor< T >::rbegin(), casacore::ArrayBaseAccessor< T >::rend(), and casacore::ArrayBaseAccessor< T >::step().