casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
casacore::ArrayBaseAccessor< T > Class Template Reference

Axis independent base for the ArrayAccessor classes. More...

#include <ArrayAccessor.h>

Inheritance diagram for casacore::ArrayBaseAccessor< T >:
casacore::ArrayAccessor< T, Axis< U > > casacore::ArrayAccessor_RT< T, AxisN >

Public Member Functions

void operator+= (const uInt ix)
 Iterator-like operations. More...
 
void operator-= (const uInt 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 ()
 
uInt 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 uInt ax)
 
 ArrayBaseAccessor (const ArrayBaseAccessor< T > &other)
 Copy constructor (copy semantics) More...
 
 ArrayBaseAccessor (const ArrayBaseAccessor< T > &other, const uInt ax)
 
 ~ArrayBaseAccessor ()
 Destructor. More...
 
ArrayBaseAccessoroperator= (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 uInt ax)
 
void init (const uInt ax)
 

Protected Attributes

const Array< T > * arrayPtr_p
 The pointer to belonging array. More...
 
uInt 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...
 

Detailed Description

template<class T>
class casacore::ArrayBaseAccessor< T >

Axis independent base for the ArrayAccessor classes.

Intended use:

Internal

Synopsis

The ArrayBaseAccessor class implements the axis independent parts of the ArrayAccessor class. It can only be used from the ArrayAccessor class.

Definition at line 39 of file ArrayAccessor.h.

Constructor & Destructor Documentation

template<class T >
casacore::ArrayBaseAccessor< T >::ArrayBaseAccessor ( )
inlineprotected

Default constructor (for use in e.g.

containers)

Definition at line 74 of file ArrayAccessor.h.

template<class T >
casacore::ArrayBaseAccessor< T >::ArrayBaseAccessor ( const Array< T > &  arr)
inlineexplicitprotected

Construct from an Array.

Definition at line 78 of file ArrayAccessor.h.

template<class T >
casacore::ArrayBaseAccessor< T >::ArrayBaseAccessor ( const Array< T > &  arr,
const uInt  ax 
)
inlineprotected

Definition at line 81 of file ArrayAccessor.h.

template<class T >
casacore::ArrayBaseAccessor< T >::ArrayBaseAccessor ( const ArrayBaseAccessor< T > &  other)
inlineprotected

Copy constructor (copy semantics)

Definition at line 87 of file ArrayAccessor.h.

template<class T >
casacore::ArrayBaseAccessor< T >::ArrayBaseAccessor ( const ArrayBaseAccessor< T > &  other,
const uInt  ax 
)
inlineprotected

Definition at line 90 of file ArrayAccessor.h.

template<class T >
casacore::ArrayBaseAccessor< T >::~ArrayBaseAccessor ( )
inlineprotected

Destructor.

Definition at line 97 of file ArrayAccessor.h.

Member Function Documentation

template<class T >
const Array<T>& casacore::ArrayBaseAccessor< T >::baseArray ( )
inline

Definition at line 131 of file ArrayAccessor.h.

References casacore::ArrayBaseAccessor< T >::arrayPtr_p.

template<class T >
const T* casacore::ArrayBaseAccessor< T >::begin ( )
inline

Start of index on line.

Definition at line 149 of file ArrayAccessor.h.

References casacore::ArrayBaseAccessor< T >::begin_p.

template<class T >
const T* casacore::ArrayBaseAccessor< T >::begin ( const Int  n)
inline
template<class T >
T* casacore::ArrayBaseAccessor< T >::data ( )
inline

Definition at line 130 of file ArrayAccessor.h.

References casacore::ArrayBaseAccessor< T >::ptr_p.

template<class T >
const T* casacore::ArrayBaseAccessor< T >::end ( )
inline

End of index on line.

Definition at line 143 of file ArrayAccessor.h.

References casacore::ArrayBaseAccessor< T >::end_p.

template<class T >
const T* casacore::ArrayBaseAccessor< T >::end ( const Int  n)
inline
template<class T >
void casacore::ArrayBaseAccessor< T >::init ( const Array< T > &  arr)
inlineprotected
template<class T >
void casacore::ArrayBaseAccessor< T >::init ( const Array< T > &  arr,
const uInt  ax 
)
inlineprotected
template<class T >
void casacore::ArrayBaseAccessor< T >::init ( const uInt  ax)
inlineprotected
template<class T >
const T& casacore::ArrayBaseAccessor< T >::operator* ( ) const
inline

Dereferencing.

Definition at line 128 of file ArrayAccessor.h.

References casacore::ArrayBaseAccessor< T >::ptr_p.

template<class T >
T& casacore::ArrayBaseAccessor< T >::operator* ( )
inline

Definition at line 129 of file ArrayAccessor.h.

References casacore::ArrayBaseAccessor< T >::ptr_p.

template<class T >
void casacore::ArrayBaseAccessor< T >::operator++ ( )
inline
template<class T >
void casacore::ArrayBaseAccessor< T >::operator++ ( int  )
inline
template<class T >
void casacore::ArrayBaseAccessor< T >::operator+= ( const uInt  ix)
inline

Iterator-like operations.

Definition at line 118 of file ArrayAccessor.h.

References casacore::ArrayBaseAccessor< T >::ptr_p, and casacore::ArrayBaseAccessor< T >::step_p.

template<class T >
void casacore::ArrayBaseAccessor< T >::operator-- ( )
inline
template<class T >
void casacore::ArrayBaseAccessor< T >::operator-- ( int  )
inline
template<class T >
void casacore::ArrayBaseAccessor< T >::operator-= ( const uInt  ix)
inline
template<class T >
ArrayBaseAccessor& casacore::ArrayBaseAccessor< T >::operator= ( const ArrayBaseAccessor< T > &  other)
inlineprotected
template<class T >
const T& casacore::ArrayBaseAccessor< T >::operator[] ( const Int  ix) const
inline

Index along current axis.

Definition at line 137 of file ArrayAccessor.h.

References casacore::ArrayBaseAccessor< T >::ptr_p, and casacore::ArrayBaseAccessor< T >::step_p.

template<class T >
T& casacore::ArrayBaseAccessor< T >::operator[] ( const Int  ix)
inline
template<class T >
const T* casacore::ArrayBaseAccessor< T >::rbegin ( )
inline

Begin when reverse indexing.

Definition at line 161 of file ArrayAccessor.h.

References casacore::ArrayBaseAccessor< T >::end_p, and casacore::ArrayBaseAccessor< T >::step_p.

template<class T >
const T* casacore::ArrayBaseAccessor< T >::rbegin ( const Int  n)
inline
template<class T >
const T* casacore::ArrayBaseAccessor< T >::rend ( )
inline

End when reverse indexing.

Definition at line 155 of file ArrayAccessor.h.

References casacore::ArrayBaseAccessor< T >::begin_p, and casacore::ArrayBaseAccessor< T >::step_p.

template<class T >
const T* casacore::ArrayBaseAccessor< T >::rend ( const Int  n)
inline
template<class T >
uInt casacore::ArrayBaseAccessor< T >::step ( )
inline

Definition at line 132 of file ArrayAccessor.h.

References casacore::ArrayBaseAccessor< T >::step_p.

Member Data Documentation

template<class T >
const Array<T>* casacore::ArrayBaseAccessor< T >::arrayPtr_p
protected
template<class T >
uInt casacore::ArrayBaseAccessor< T >::axis_p
protected

Current run-time axis.

Definition at line 170 of file ArrayAccessor.h.

Referenced by casacore::ArrayBaseAccessor< T >::init().

template<class T >
const T* casacore::ArrayBaseAccessor< T >::begin_p
protected

The start element of array.

Definition at line 176 of file ArrayAccessor.h.

Referenced by casacore::ArrayBaseAccessor< T >::begin(), and casacore::ArrayBaseAccessor< T >::rend().

template<class T >
const T* casacore::ArrayBaseAccessor< T >::end_p
protected

The one element beyond last on line.

Definition at line 178 of file ArrayAccessor.h.

Referenced by casacore::ArrayBaseAccessor< T >::end(), and casacore::ArrayBaseAccessor< T >::rbegin().

template<class T >
T* casacore::ArrayBaseAccessor< T >::ptr_p
protected
template<class T >
Int casacore::ArrayBaseAccessor< T >::step_p
protected

The documentation for this class was generated from the following file: