cgv
Loading...
Searching...
No Matches
cgv::utils::count_iterator< iterator_type > Class Template Reference
Inheritance diagram for cgv::utils::count_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
 
- 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

 count_iterator (iterator iter, index_type start)
 
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::count_iterator< iterator_type >

Definition at line 45 of file enumerate.h.

Member Typedef Documentation

◆ index_type

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

Definition at line 49 of file enumerate.h.

◆ iterator

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

Definition at line 48 of file enumerate.h.

◆ super

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

Definition at line 47 of file enumerate.h.

Constructor & Destructor Documentation

◆ count_iterator()

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

Definition at line 51 of file enumerate.h.

Member Function Documentation

◆ operator*()

template<typename iterator_type >
index_type cgv::utils::count_iterator< iterator_type >::operator* ( ) const
inline

Definition at line 53 of file enumerate.h.


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