casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Protected Attributes | Friends
casa::Array< T >::BaseIteratorSTL Class Reference

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

#include <Array.h>

Inheritance diagram for casa::Array< T >::BaseIteratorSTL:
casa::Array< T >::ConstIteratorSTL casa::Array< T >::IteratorSTL

List of all members.

Public Member Functions

 BaseIteratorSTL (const Array< T > &)
 Create the begin const_iterator object for an Array.
 BaseIteratorSTL (const T *end=0)
 Create the end const_iterator object for an Array.
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.

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 casa::Array< T >::BaseIteratorSTL

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

Definition at line 555 of file Array.h.


Constructor & Destructor Documentation

template<class T>
casa::Array< T >::BaseIteratorSTL::BaseIteratorSTL ( const Array< T > &  ) [explicit]

Create the begin const_iterator object for an Array.

template<class T>
casa::Array< T >::BaseIteratorSTL::BaseIteratorSTL ( const T *  end = 0) [inline, explicit]

Create the end const_iterator object for an Array.

It also acts as the default constructor.

Definition at line 562 of file Array.h.


Member Function Documentation

template<class T>
T* casa::Array< T >::BaseIteratorSTL::getPos ( ) [inline]
template<class T>
void casa::Array< T >::BaseIteratorSTL::increment ( ) [protected]

Increment iterator for a non-contiguous array.

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

template<class T>
void casa::Array< T >::BaseIteratorSTL::nextElem ( ) [inline]
template<class T>
void casa::Array< T >::BaseIteratorSTL::nextLine ( ) [inline]
template<class T>
bool casa::Array< T >::BaseIteratorSTL::operator!= ( const BaseIteratorSTL other) const [inline]

Definition at line 582 of file Array.h.

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

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

Definition at line 579 of file Array.h.

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


Friends And Related Function Documentation

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

Definition at line 588 of file Array.h.


Member Data Documentation

template<class T>
const Array<T>* casa::Array< T >::BaseIteratorSTL::itsArray [protected]

Definition at line 601 of file Array.h.

template<class T>
Bool casa::Array< T >::BaseIteratorSTL::itsContig [protected]

Definition at line 602 of file Array.h.

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

template<class T>
IPosition casa::Array< T >::BaseIteratorSTL::itsCurPos [protected]

Definition at line 599 of file Array.h.

template<class T>
IPosition casa::Array< T >::BaseIteratorSTL::itsLastPos [protected]

Definition at line 600 of file Array.h.

template<class T>
uInt casa::Array< T >::BaseIteratorSTL::itsLineAxis [protected]

Definition at line 598 of file Array.h.

template<class T>
const T* casa::Array< T >::BaseIteratorSTL::itsLineEnd [protected]
template<class T>
size_t casa::Array< T >::BaseIteratorSTL::itsLineIncr [protected]

Definition at line 597 of file Array.h.

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

template<class T>
const T* casa::Array< T >::BaseIteratorSTL::itsPos [protected]

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