libMesh::IntRange< T >::iterator Class Reference

#include <int_range.h>

Public Member Functions

 iterator (T i)
 
operator* () const
 
const iteratoroperator++ ()
 
iterator operator++ (int)
 
bool operator== (const iterator &j) const
 
bool operator!= (const iterator &j) const
 

Private Attributes

_i
 

Detailed Description

template<typename T>
class libMesh::IntRange< T >::iterator

Definition at line 54 of file int_range.h.

Constructor & Destructor Documentation

◆ iterator()

template<typename T>
libMesh::IntRange< T >::iterator::iterator ( i)
inline

Definition at line 56 of file int_range.h.

Member Function Documentation

◆ operator!=()

template<typename T>
bool libMesh::IntRange< T >::iterator::operator!= ( const iterator j) const
inline

Definition at line 75 of file int_range.h.

75  {
76  return !(*this == j);
77  }

◆ operator*()

template<typename T>
T libMesh::IntRange< T >::iterator::operator* ( ) const
inline

Definition at line 58 of file int_range.h.

References libMesh::IntRange< T >::iterator::_i.

58 { return _i; }

◆ operator++() [1/2]

template<typename T>
const iterator& libMesh::IntRange< T >::iterator::operator++ ( )
inline

Definition at line 60 of file int_range.h.

References libMesh::IntRange< T >::iterator::_i.

60  {
61  ++_i;
62  return *this;
63  }

◆ operator++() [2/2]

template<typename T>
iterator libMesh::IntRange< T >::iterator::operator++ ( int  )
inline

Definition at line 65 of file int_range.h.

References libMesh::IntRange< T >::iterator::_i.

65  {
66  iterator returnval(*this);
67  ++_i;
68  return returnval;
69  }

◆ operator==()

template<typename T>
bool libMesh::IntRange< T >::iterator::operator== ( const iterator j) const
inline

Definition at line 71 of file int_range.h.

References libMesh::IntRange< T >::iterator::_i.

71  {
72  return ( _i == j._i );
73  }

Member Data Documentation

◆ _i


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