casacore
Public Member Functions | Private Member Functions | Private Attributes | List of all members
casacore::ReadOnlyVectorIterator< T, Alloc > Class Template Reference

Iterate a Vector cursor through another Array. More...

#include <VectorIter.h>

Public Member Functions

 ReadOnlyVectorIterator (const Array< T, Alloc > &a, size_t axis=0)
 
void next ()
 
void reset ()
 
void origin ()
 
const Array< T, Alloc > & array ()
 
const Vector< T, Alloc > & vector ()
 
bool atStart () const
 
bool pastEnd () const
 
const IPositionpos () const
 
IPosition endPos () const
 
size_t ndim () const
 

Private Member Functions

 ReadOnlyVectorIterator (const ReadOnlyVectorIterator< T, Alloc > &)=delete
 Not implemented. More...
 
ReadOnlyVectorIterator< T, Alloc > & operator= (const ReadOnlyVectorIterator< T, Alloc > &)=delete
 Not implemented. More...
 

Private Attributes

VectorIterator< T, Alloc > vi
 

Detailed Description

template<typename T, typename Alloc = std::allocator<T>>
class casacore::ReadOnlyVectorIterator< T, Alloc >

Iterate a Vector cursor through another Array.

Review Status

Reviewed By:
UNKNOWN
Date Reviewed:
before2004/08/25

ReadOnlyVectorIterator behaves exactly like VectorIterator (cf.) only it should be used on const Arrays.


Tip: Note that the R/O VectorIterator is not derived from R/O ArrayIterator;

Definition at line 102 of file VectorIter.h.

Constructor & Destructor Documentation

◆ ReadOnlyVectorIterator() [1/2]

template<typename T , typename Alloc = std::allocator<T>>
casacore::ReadOnlyVectorIterator< T, Alloc >::ReadOnlyVectorIterator ( const Array< T, Alloc > &  a,
size_t  axis = 0 
)
inlineexplicit

Definition at line 106 of file VectorIter.h.

◆ ReadOnlyVectorIterator() [2/2]

template<typename T , typename Alloc = std::allocator<T>>
casacore::ReadOnlyVectorIterator< T, Alloc >::ReadOnlyVectorIterator ( const ReadOnlyVectorIterator< T, Alloc > &  )
privatedelete

Not implemented.

Member Function Documentation

◆ array()

template<typename T , typename Alloc = std::allocator<T>>
const Array<T, Alloc>& casacore::ReadOnlyVectorIterator< T, Alloc >::array ( )
inline

Definition at line 113 of file VectorIter.h.

References casacore::ReadOnlyVectorIterator< T, Alloc >::vi.

◆ atStart()

template<typename T , typename Alloc = std::allocator<T>>
bool casacore::ReadOnlyVectorIterator< T, Alloc >::atStart ( ) const
inline

Definition at line 116 of file VectorIter.h.

References casacore::ReadOnlyVectorIterator< T, Alloc >::vi.

◆ endPos()

template<typename T , typename Alloc = std::allocator<T>>
IPosition casacore::ReadOnlyVectorIterator< T, Alloc >::endPos ( ) const
inline

Definition at line 119 of file VectorIter.h.

References casacore::ReadOnlyVectorIterator< T, Alloc >::vi.

◆ ndim()

template<typename T , typename Alloc = std::allocator<T>>
size_t casacore::ReadOnlyVectorIterator< T, Alloc >::ndim ( ) const
inline

Definition at line 120 of file VectorIter.h.

References casacore::ReadOnlyVectorIterator< T, Alloc >::vi.

◆ next()

template<typename T , typename Alloc = std::allocator<T>>
void casacore::ReadOnlyVectorIterator< T, Alloc >::next ( )
inline

Definition at line 109 of file VectorIter.h.

References casacore::ReadOnlyVectorIterator< T, Alloc >::vi.

◆ operator=()

template<typename T , typename Alloc = std::allocator<T>>
ReadOnlyVectorIterator<T, Alloc>& casacore::ReadOnlyVectorIterator< T, Alloc >::operator= ( const ReadOnlyVectorIterator< T, Alloc > &  )
privatedelete

Not implemented.

◆ origin()

template<typename T , typename Alloc = std::allocator<T>>
void casacore::ReadOnlyVectorIterator< T, Alloc >::origin ( )
inline

Definition at line 111 of file VectorIter.h.

References casacore::ReadOnlyVectorIterator< T, Alloc >::vi.

◆ pastEnd()

template<typename T , typename Alloc = std::allocator<T>>
bool casacore::ReadOnlyVectorIterator< T, Alloc >::pastEnd ( ) const
inline

Definition at line 117 of file VectorIter.h.

References casacore::ReadOnlyVectorIterator< T, Alloc >::vi.

◆ pos()

template<typename T , typename Alloc = std::allocator<T>>
const IPosition& casacore::ReadOnlyVectorIterator< T, Alloc >::pos ( ) const
inline

Definition at line 118 of file VectorIter.h.

References casacore::ReadOnlyVectorIterator< T, Alloc >::vi.

◆ reset()

template<typename T , typename Alloc = std::allocator<T>>
void casacore::ReadOnlyVectorIterator< T, Alloc >::reset ( )
inline

Definition at line 110 of file VectorIter.h.

References casacore::ReadOnlyVectorIterator< T, Alloc >::vi.

◆ vector()

template<typename T , typename Alloc = std::allocator<T>>
const Vector<T, Alloc>& casacore::ReadOnlyVectorIterator< T, Alloc >::vector ( )
inline

Definition at line 114 of file VectorIter.h.

References casacore::ReadOnlyVectorIterator< T, Alloc >::vi.

Member Data Documentation

◆ vi

template<typename T , typename Alloc = std::allocator<T>>
VectorIterator<T, Alloc> casacore::ReadOnlyVectorIterator< T, Alloc >::vi
private

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