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 54 of file int_range.h.

Constructor & Destructor Documentation

◆ iterator()

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

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

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

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++ ( )

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  )

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

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

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

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