DiaDes  0.1
DIAgnosis of Discrete-Event System
Public Types | Public Member Functions | Private Attributes | List of all members
Diades::Utils::Selection< Item >::IndexIterator Class Reference

#include <Selection.hh>

Public Types

typedef IndexIterator self
 
typedef std::ptrdiff_t difference_type
 
typedef std::forward_iterator_tag iterator_category
 
typedef unsigned value_type
 
typedef unsigned * pointer
 
typedef const unsigned & reference
 

Public Member Functions

 IndexIterator (const vector< unsigned > &unselectedItemPool, unsigned index)
 
reference operator* () const
 
pointer operator-> () const
 
selfoperator++ ()
 
self operator++ (int)
 
bool operator== (const self &it) const
 
bool operator!= (const self &it) const
 

Private Attributes

const vector< unsigned > & _unselectedItemPool
 
unsigned _index
 

Detailed Description

template<typename Item>
class Diades::Utils::Selection< Item >::IndexIterator

Definition at line 45 of file Selection.hh.

Member Typedef Documentation

◆ difference_type

template<typename Item>
typedef std::ptrdiff_t Diades::Utils::Selection< Item >::IndexIterator::difference_type

Definition at line 49 of file Selection.hh.

◆ iterator_category

template<typename Item>
typedef std::forward_iterator_tag Diades::Utils::Selection< Item >::IndexIterator::iterator_category

Definition at line 50 of file Selection.hh.

◆ pointer

template<typename Item>
typedef unsigned* Diades::Utils::Selection< Item >::IndexIterator::pointer

Definition at line 52 of file Selection.hh.

◆ reference

template<typename Item>
typedef const unsigned& Diades::Utils::Selection< Item >::IndexIterator::reference

Definition at line 53 of file Selection.hh.

◆ self

template<typename Item>
typedef IndexIterator Diades::Utils::Selection< Item >::IndexIterator::self

Definition at line 48 of file Selection.hh.

◆ value_type

template<typename Item>
typedef unsigned Diades::Utils::Selection< Item >::IndexIterator::value_type

Definition at line 51 of file Selection.hh.

Constructor & Destructor Documentation

◆ IndexIterator()

template<typename Item>
Diades::Utils::Selection< Item >::IndexIterator::IndexIterator ( const vector< unsigned > &  unselectedItemPool,
unsigned  index 
)
inline

Member Function Documentation

◆ operator!=()

template<typename Item>
bool Diades::Utils::Selection< Item >::IndexIterator::operator!= ( const self it) const
inline

Definition at line 95 of file Selection.hh.

◆ operator*()

template<typename Item>
reference Diades::Utils::Selection< Item >::IndexIterator::operator* ( ) const
inline

◆ operator++() [1/2]

template<typename Item>
self& Diades::Utils::Selection< Item >::IndexIterator::operator++ ( )
inline

◆ operator++() [2/2]

template<typename Item>
self Diades::Utils::Selection< Item >::IndexIterator::operator++ ( int  )
inline

◆ operator->()

template<typename Item>
pointer Diades::Utils::Selection< Item >::IndexIterator::operator-> ( ) const
inline

◆ operator==()

template<typename Item>
bool Diades::Utils::Selection< Item >::IndexIterator::operator== ( const self it) const
inline

Definition at line 90 of file Selection.hh.

Member Data Documentation

◆ _index

template<typename Item>
unsigned Diades::Utils::Selection< Item >::IndexIterator::_index
private

◆ _unselectedItemPool

template<typename Item>
const vector<unsigned>& Diades::Utils::Selection< Item >::IndexIterator::_unselectedItemPool
private

Definition at line 57 of file Selection.hh.


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