3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Public Member Functions | List of all members
Dumux::IntRange Class Reference

This class generates a IntRange [a,b) which can be used in a for loop, e.g. for(auto i : IntRange(3) { ... i = 0, 1, 2 } or for(auto i : IntRange(5, 8) { ... i = 5, 6, 7 } see: https://en.wikipedia.org/wiki/Generator_(computer_programming) More...

#include <dumux/common/intrange.hh>

Description

This class generates a IntRange [a,b) which can be used in a for loop, e.g. for(auto i : IntRange(3) { ... i = 0, 1, 2 } or for(auto i : IntRange(5, 8) { ... i = 5, 6, 7 } see: https://en.wikipedia.org/wiki/Generator_(computer_programming)

Public Member Functions

 IntRange (int end)
 
 IntRange (int begin, int end)
 
 IntRange ()=delete
 
const IntRangebegin () const
 
const IntRangeend () const
 
bool operator!= (const IntRange &) const
 
void operator++ ()
 
int operator* () const
 

Constructor & Destructor Documentation

◆ IntRange() [1/3]

Dumux::IntRange::IntRange ( int  end)
inline

◆ IntRange() [2/3]

Dumux::IntRange::IntRange ( int  begin,
int  end 
)
inline

◆ IntRange() [3/3]

Dumux::IntRange::IntRange ( )
delete

Member Function Documentation

◆ begin()

const IntRange & Dumux::IntRange::begin ( ) const
inline

◆ end()

const IntRange & Dumux::IntRange::end ( ) const
inline

◆ operator!=()

bool Dumux::IntRange::operator!= ( const IntRange ) const
inline

◆ operator*()

int Dumux::IntRange::operator* ( ) const
inline

◆ operator++()

void Dumux::IntRange::operator++ ( )
inline

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