libMesh
Public Member Functions | Private Attributes | List of all members
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 51 of file int_range.h.

Constructor & Destructor Documentation

◆ iterator()

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

Definition at line 53 of file int_range.h.

Member Function Documentation

◆ operator!=()

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

Definition at line 72 of file int_range.h.

72  {
73  return !(*this == j);
74  }

◆ operator*()

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

Definition at line 55 of file int_range.h.

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

55 { return _i; }

◆ operator++() [1/2]

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

Definition at line 57 of file int_range.h.

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

57  {
58  ++_i;
59  return *this;
60  }

◆ operator++() [2/2]

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

Definition at line 62 of file int_range.h.

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

62  {
63  iterator returnval(*this);
64  ++_i;
65  return returnval;
66  }

◆ operator==()

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

Definition at line 68 of file int_range.h.

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

68  {
69  return ( _i == j._i );
70  }

Member Data Documentation

◆ _i

template<typename T>
T libMesh::IntRange< T >::iterator::_i
private

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