DUDS
Distributed Update of Data from Something
duds::general::IntegerBiDirIterator< Int > Class Template Reference

A bidirectional iterator intended to work with sequential integers. More...

#include <IntegerBiDirIterator.hpp>

Public Types

typedef int difference_type
 
typedef std::bidirectional_iterator_tag iterator_category
 
typedef value_typepointer
 
typedef value_typereference
 
typedef Int value_type
 

Public Member Functions

 IntegerBiDirIterator ()=default
 
 IntegerBiDirIterator (Int i)
 
bool operator!= (const IntegerBiDirIterator &i) const
 
Int operator* () const
 
IntegerBiDirIteratoroperator++ ()
 
IntegerBiDirIterator operator++ (int)
 
IntegerBiDirIteratoroperator-- ()
 
IntegerBiDirIterator operator-- (int)
 

Private Attributes

Int val
 

Detailed Description

template<typename Int>
class duds::general::IntegerBiDirIterator< Int >

A bidirectional iterator intended to work with sequential integers.

Template Parameters
IntThe integer type.
Author
Jeff Jackowski
Examples:
textdisplay.cpp.

Definition at line 23 of file IntegerBiDirIterator.hpp.

Member Typedef Documentation

◆ difference_type

template<typename Int >
typedef int duds::general::IntegerBiDirIterator< Int >::difference_type

Definition at line 28 of file IntegerBiDirIterator.hpp.

◆ iterator_category

template<typename Int >
typedef std::bidirectional_iterator_tag duds::general::IntegerBiDirIterator< Int >::iterator_category

Definition at line 26 of file IntegerBiDirIterator.hpp.

◆ pointer

template<typename Int >
typedef value_type* duds::general::IntegerBiDirIterator< Int >::pointer

Definition at line 29 of file IntegerBiDirIterator.hpp.

◆ reference

template<typename Int >
typedef value_type& duds::general::IntegerBiDirIterator< Int >::reference

Definition at line 30 of file IntegerBiDirIterator.hpp.

◆ value_type

template<typename Int >
typedef Int duds::general::IntegerBiDirIterator< Int >::value_type

Definition at line 27 of file IntegerBiDirIterator.hpp.

Constructor & Destructor Documentation

◆ IntegerBiDirIterator() [1/2]

◆ IntegerBiDirIterator() [2/2]

template<typename Int >
duds::general::IntegerBiDirIterator< Int >::IntegerBiDirIterator ( Int  i)
inline

Definition at line 32 of file IntegerBiDirIterator.hpp.

Member Function Documentation

◆ operator!=()

template<typename Int >
bool duds::general::IntegerBiDirIterator< Int >::operator!= ( const IntegerBiDirIterator< Int > &  i) const
inline

Definition at line 50 of file IntegerBiDirIterator.hpp.

◆ operator*()

template<typename Int >
Int duds::general::IntegerBiDirIterator< Int >::operator* ( ) const
inline

Definition at line 47 of file IntegerBiDirIterator.hpp.

◆ operator++() [1/2]

template<typename Int >
IntegerBiDirIterator& duds::general::IntegerBiDirIterator< Int >::operator++ ( )
inline

Definition at line 33 of file IntegerBiDirIterator.hpp.

◆ operator++() [2/2]

template<typename Int >
IntegerBiDirIterator duds::general::IntegerBiDirIterator< Int >::operator++ ( int  )
inline

Definition at line 37 of file IntegerBiDirIterator.hpp.

◆ operator--() [1/2]

template<typename Int >
IntegerBiDirIterator& duds::general::IntegerBiDirIterator< Int >::operator-- ( )
inline

Definition at line 40 of file IntegerBiDirIterator.hpp.

◆ operator--() [2/2]

template<typename Int >
IntegerBiDirIterator duds::general::IntegerBiDirIterator< Int >::operator-- ( int  )
inline

Definition at line 44 of file IntegerBiDirIterator.hpp.

Member Data Documentation

◆ val


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