concepts::MultiArray< dim, T >::Scanner Class Reference

Class for scanning (iterating) over the array in all dimensions. More...

#include <multiArray.hh>

Public Member Functions

Scannerclone () const
 
bool eos () const
 Returns true if the end of the scanned set is reached. More...
 
const MultiEntrance< dim, T > operator() () const
 
const MultiEntrance< dim, T > operator++ (int)
 
 Scanner (const MultiArray< dim, T > array)
 
 Scanner (const Scanner &scan)
 
virtual ~Scanner ()
 delete scanner, if there was one More...
 

Private Attributes

std::map< uint, MultiArray< dim-1, T > >::const_iterator end_
 Iterator for the end of the mapping. More...
 
std::map< uint, MultiArray< dim-1, T > >::const_iterator i_
 Iterator in current MultiArray, which holds the index and the array of smaller dimension. More...
 
MultiArray< dim-1, T >::Scannerj_
 Scanner of the entrances of smaller dimensions. More...
 

Detailed Description

template<uint dim, typename T>
class concepts::MultiArray< dim, T >::Scanner

Class for scanning (iterating) over the array in all dimensions.

Definition at line 173 of file multiArray.hh.

Constructor & Destructor Documentation

◆ Scanner() [1/2]

template<uint dim, typename T >
concepts::MultiArray< dim, T >::Scanner::Scanner ( const MultiArray< dim, T >  array)
inline

Definition at line 175 of file multiArray.hh.

◆ Scanner() [2/2]

template<uint dim, typename T >
concepts::MultiArray< dim, T >::Scanner::Scanner ( const Scanner scan)
inline

Definition at line 183 of file multiArray.hh.

◆ ~Scanner()

template<uint dim, typename T >
virtual concepts::MultiArray< dim, T >::Scanner::~Scanner ( )
inlinevirtual

delete scanner, if there was one

Definition at line 186 of file multiArray.hh.

Member Function Documentation

◆ clone()

template<uint dim, typename T >
Scanner* concepts::MultiArray< dim, T >::Scanner::clone ( ) const
inline

Definition at line 218 of file multiArray.hh.

◆ eos()

template<uint dim, typename T >
bool concepts::MultiArray< dim, T >::Scanner::eos ( ) const
inline

Returns true if the end of the scanned set is reached.

Definition at line 188 of file multiArray.hh.

◆ operator()()

template<uint dim, typename T >
const MultiEntrance<dim,T> concepts::MultiArray< dim, T >::Scanner::operator() ( ) const
inline

Definition at line 192 of file multiArray.hh.

◆ operator++()

template<uint dim, typename T >
const MultiEntrance<dim,T> concepts::MultiArray< dim, T >::Scanner::operator++ ( int  )
inline

Definition at line 196 of file multiArray.hh.

Member Data Documentation

◆ end_

template<uint dim, typename T >
std::map<uint, MultiArray<dim-1, T> >::const_iterator concepts::MultiArray< dim, T >::Scanner::end_
private

Iterator for the end of the mapping.

Definition at line 225 of file multiArray.hh.

◆ i_

template<uint dim, typename T >
std::map<uint, MultiArray<dim-1, T> >::const_iterator concepts::MultiArray< dim, T >::Scanner::i_
private

Iterator in current MultiArray, which holds the index and the array of smaller dimension.

Definition at line 223 of file multiArray.hh.

◆ j_

template<uint dim, typename T >
MultiArray<dim-1, T>::Scanner* concepts::MultiArray< dim, T >::Scanner::j_
private

Scanner of the entrances of smaller dimensions.

Definition at line 227 of file multiArray.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich