cgv
Loading...
Searching...
No Matches
cgv::utils::enumerate_iterator< iterator_type > Class Template Reference
Inheritance diagram for cgv::utils::enumerate_iterator< iterator_type >:
cgv::utils::indexed_iterator< iterator_type >

Public Types

typedef indexed_iterator< iterator_type > super
 
using iterator = typename super::iterator
 
using index_type = typename super::index_type
 
using reference = typename super::reference
 
- Public Types inherited from cgv::utils::indexed_iterator< iterator_type >
using iterator = iterator_type
 
using reference = typename std::iterator_traits< iterator >::reference
 
using index_type = typename std::iterator_traits< iterator >::difference_type
 

Public Member Functions

 enumerate_iterator (iterator iter, index_type start)
 
std::pair< reference, const index_type & > operator* () const
 
- Public Member Functions inherited from cgv::utils::indexed_iterator< iterator_type >
 indexed_iterator (iterator iter, index_type start)
 
indexed_iteratoroperator++ ()
 
bool operator== (const indexed_iterator &other) const
 
bool operator!= (const indexed_iterator &other) const
 
std::pair< reference, const index_type & > operator* () const
 

Additional Inherited Members

- Protected Attributes inherited from cgv::utils::indexed_iterator< iterator_type >
iterator iter
 
index_type index = 0
 

Detailed Description

template<typename iterator_type>
class cgv::utils::enumerate_iterator< iterator_type >

Definition at line 122 of file enumerate.h.

Member Typedef Documentation

◆ index_type

template<typename iterator_type >
using cgv::utils::enumerate_iterator< iterator_type >::index_type = typename super::index_type

Definition at line 126 of file enumerate.h.

◆ iterator

template<typename iterator_type >
using cgv::utils::enumerate_iterator< iterator_type >::iterator = typename super::iterator

Definition at line 125 of file enumerate.h.

◆ reference

template<typename iterator_type >
using cgv::utils::enumerate_iterator< iterator_type >::reference = typename super::reference

Definition at line 127 of file enumerate.h.

◆ super

template<typename iterator_type >
typedef indexed_iterator<iterator_type> cgv::utils::enumerate_iterator< iterator_type >::super

Definition at line 124 of file enumerate.h.

Constructor & Destructor Documentation

◆ enumerate_iterator()

template<typename iterator_type >
cgv::utils::enumerate_iterator< iterator_type >::enumerate_iterator ( iterator  iter,
index_type  start 
)
inlineexplicit

Definition at line 129 of file enumerate.h.

Member Function Documentation

◆ operator*()

template<typename iterator_type >
std::pair< reference, const index_type & > cgv::utils::enumerate_iterator< iterator_type >::operator* ( ) const
inline

Definition at line 131 of file enumerate.h.


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