casacore
Public Types | Public Member Functions | List of all members
casacore::Array< T, Alloc >::ConstIteratorSTL Class Reference

#include <Array.h>

Public Types

typedef T value_type
 
More...
 
typedef const value_typepointer
 
typedef const value_typereference
 
typedef std::size_t size_type
 
typedef ptrdiff_t difference_type
 
typedef std::forward_iterator_tag iterator_category
 

Public Member Functions

 ConstIteratorSTL (const Array< T, Alloc > &arr)
 Create the begin const_iterator object for an Array. More...
 
 ConstIteratorSTL (const T *end=0)
 Create the end const_iterator object for an Array. More...
 
 ConstIteratorSTL (const IteratorSTL &iter)
 Create from a non-const iterator. More...
 
const ConstIteratorSTLoperator++ ()
 
ConstIteratorSTL operator++ (int)
 
const T & operator* () const
 
const T * operator-> ()
 
const T * pos () const
 
- Public Member Functions inherited from casacore::Array< T, Alloc >::BaseIteratorSTL
 BaseIteratorSTL (const Array< T, Alloc > &)
 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 ()
 

Additional Inherited Members

- Protected Member Functions inherited from casacore::Array< T, Alloc >::BaseIteratorSTL
void increment ()
 Increment iterator for a non-contiguous array. More...
 
- Protected Attributes inherited from casacore::Array< T, Alloc >::BaseIteratorSTL
const T * itsPos
 
const T * itsLineEnd
 
size_t itsLineIncr
 
size_t itsLineAxis
 
IPosition itsCurPos
 
IPosition itsLastPos
 
const Array< T, Alloc > * itsArray
 
bool itsContig
 

Detailed Description

template<typename T, typename Alloc>
class casacore::Array< T, Alloc >::ConstIteratorSTL

Definition at line 770 of file Array.h.

Member Typedef Documentation

◆ difference_type

template<typename T , typename Alloc >
typedef ptrdiff_t casacore::Array< T, Alloc >::ConstIteratorSTL::difference_type

Definition at line 779 of file Array.h.

◆ iterator_category

template<typename T , typename Alloc >
typedef std::forward_iterator_tag casacore::Array< T, Alloc >::ConstIteratorSTL::iterator_category

Definition at line 780 of file Array.h.

◆ pointer

template<typename T , typename Alloc >
typedef const value_type* casacore::Array< T, Alloc >::ConstIteratorSTL::pointer

Definition at line 776 of file Array.h.

◆ reference

template<typename T , typename Alloc >
typedef const value_type& casacore::Array< T, Alloc >::ConstIteratorSTL::reference

Definition at line 777 of file Array.h.

◆ size_type

template<typename T , typename Alloc >
typedef std::size_t casacore::Array< T, Alloc >::ConstIteratorSTL::size_type

Definition at line 778 of file Array.h.

◆ value_type

template<typename T , typename Alloc >
typedef T casacore::Array< T, Alloc >::ConstIteratorSTL::value_type


Definition at line 775 of file Array.h.

Constructor & Destructor Documentation

◆ ConstIteratorSTL() [1/3]

template<typename T , typename Alloc >
casacore::Array< T, Alloc >::ConstIteratorSTL::ConstIteratorSTL ( const Array< T, Alloc > &  arr)
inlineexplicit

Create the begin const_iterator object for an Array.

Definition at line 783 of file Array.h.

◆ ConstIteratorSTL() [2/3]

template<typename T , typename Alloc >
casacore::Array< T, Alloc >::ConstIteratorSTL::ConstIteratorSTL ( const T *  end = 0)
inlineexplicit

Create the end const_iterator object for an Array.

It also acts as the default constructor.

Definition at line 787 of file Array.h.

◆ ConstIteratorSTL() [3/3]

template<typename T , typename Alloc >
casacore::Array< T, Alloc >::ConstIteratorSTL::ConstIteratorSTL ( const IteratorSTL iter)
inline

Create from a non-const iterator.

Definition at line 790 of file Array.h.

Member Function Documentation

◆ operator*()

template<typename T , typename Alloc >
const T& casacore::Array< T, Alloc >::ConstIteratorSTL::operator* ( ) const
inline

Definition at line 805 of file Array.h.

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

◆ operator++() [1/2]

template<typename T , typename Alloc >
const ConstIteratorSTL& casacore::Array< T, Alloc >::ConstIteratorSTL::operator++ ( )
inline

Definition at line 793 of file Array.h.

References casacore::Array< T, Alloc >::BaseIteratorSTL::nextElem().

◆ operator++() [2/2]

template<typename T , typename Alloc >
ConstIteratorSTL casacore::Array< T, Alloc >::ConstIteratorSTL::operator++ ( int  )
inline

Definition at line 798 of file Array.h.

References casacore::Array< T, Alloc >::BaseIteratorSTL::nextElem().

◆ operator->()

template<typename T , typename Alloc >
const T* casacore::Array< T, Alloc >::ConstIteratorSTL::operator-> ( )
inline

Definition at line 807 of file Array.h.

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

◆ pos()

template<typename T , typename Alloc >
const T* casacore::Array< T, Alloc >::ConstIteratorSTL::pos ( ) const
inline

Definition at line 810 of file Array.h.

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


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