casacore
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
casacore::Array< T >::BaseIteratorSTL Class Reference


More...

#include <Array.h>

Public Member Functions

 BaseIteratorSTL (const Array< T > &)
 Create the begin const_iterator object for an Array. More...
 
 BaseIteratorSTL (const T *end=0)
 Create the end const_iterator object for an Array. More...
 
void nextElem ()
 
void nextLine ()
 
bool operator== (const BaseIteratorSTL &other) const
 
bool operator!= (const BaseIteratorSTL &other) const
 
T * getPos ()
 

Protected Member Functions

void increment ()
 Increment iterator for a non-contiguous array. More...
 

Protected Attributes

const T * itsPos
 
const T * itsLineEnd
 
size_t itsLineIncr
 
uInt itsLineAxis
 
IPosition itsCurPos
 
IPosition itsLastPos
 
const Array< T > * itsArray
 
Bool itsContig
 

Friends

ostream & operator<< (ostream &os, const BaseIteratorSTL &iter)
 

Detailed Description

template<class T>
class casacore::Array< T >::BaseIteratorSTL


See the function begin() and end() for a detailed description of the STL iterator capability.

Definition at line 691 of file Array.h.

Constructor & Destructor Documentation

◆ BaseIteratorSTL() [1/2]

template<class T >
casacore::Array< T >::BaseIteratorSTL::BaseIteratorSTL ( const Array< T > &  )
explicit

Create the begin const_iterator object for an Array.

◆ BaseIteratorSTL() [2/2]

template<class T >
casacore::Array< T >::BaseIteratorSTL::BaseIteratorSTL ( const T *  end = 0)
inlineexplicit

Create the end const_iterator object for an Array.

It also acts as the default constructor.

Definition at line 698 of file Array.h.

Member Function Documentation

◆ getPos()

template<class T >
T* casacore::Array< T >::BaseIteratorSTL::getPos ( )
inline

◆ increment()

template<class T >
void casacore::Array< T >::BaseIteratorSTL::increment ( )
protected

Increment iterator for a non-contiguous array.

Referenced by casacore::Array< T >::BaseIteratorSTL::nextElem(), and casacore::Array< T >::BaseIteratorSTL::nextLine().

◆ nextElem()

template<class T >
void casacore::Array< T >::BaseIteratorSTL::nextElem ( )
inline

◆ nextLine()

template<class T >
void casacore::Array< T >::BaseIteratorSTL::nextLine ( )
inline

◆ operator!=()

template<class T >
bool casacore::Array< T >::BaseIteratorSTL::operator!= ( const BaseIteratorSTL other) const
inline

Definition at line 718 of file Array.h.

References casacore::Array< T >::BaseIteratorSTL::itsPos.

◆ operator==()

template<class T >
bool casacore::Array< T >::BaseIteratorSTL::operator== ( const BaseIteratorSTL other) const
inline

Definition at line 715 of file Array.h.

References casacore::Array< T >::BaseIteratorSTL::itsPos.

Friends And Related Function Documentation

◆ operator<<

template<class T >
ostream& operator<< ( ostream &  os,
const BaseIteratorSTL iter 
)
friend

Definition at line 724 of file Array.h.

Member Data Documentation

◆ itsArray

template<class T >
const Array<T>* casacore::Array< T >::BaseIteratorSTL::itsArray
protected

Definition at line 737 of file Array.h.

◆ itsContig

template<class T >
Bool casacore::Array< T >::BaseIteratorSTL::itsContig
protected

Definition at line 738 of file Array.h.

Referenced by casacore::Array< T >::BaseIteratorSTL::nextElem().

◆ itsCurPos

template<class T >
IPosition casacore::Array< T >::BaseIteratorSTL::itsCurPos
protected

Definition at line 735 of file Array.h.

◆ itsLastPos

template<class T >
IPosition casacore::Array< T >::BaseIteratorSTL::itsLastPos
protected

Definition at line 736 of file Array.h.

◆ itsLineAxis

template<class T >
uInt casacore::Array< T >::BaseIteratorSTL::itsLineAxis
protected

Definition at line 734 of file Array.h.

◆ itsLineEnd

template<class T >
const T* casacore::Array< T >::BaseIteratorSTL::itsLineEnd
protected

◆ itsLineIncr

template<class T >
size_t casacore::Array< T >::BaseIteratorSTL::itsLineIncr
protected

Definition at line 733 of file Array.h.

Referenced by casacore::Array< T >::BaseIteratorSTL::nextElem().

◆ itsPos

template<class T >
const T* casacore::Array< T >::BaseIteratorSTL::itsPos
protected

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