Volume Cartographer 2.27.0
|
Public Types | |
using | difference_type = std::size_t |
using | value_type = std::pair< std::size_t, decltype(*std::declval< T & >())& > |
using | pointer = value_type * |
using | reference = value_type |
using | iterator_category = std::input_iterator_tag |
Public Member Functions | |
EnumerateIterator (std::size_t idx, T &&it) | |
value_type | operator* () const |
bool | operator== (const EnumerateIterator &other) const |
bool | operator!= (const EnumerateIterator &other) const |
EnumerateIterator & | operator++ () |
Private Attributes | |
std::size_t | idx_ |
T | it_ |
enumerate iterator class. Tracks the iterator and index of the item
Definition at line 406 of file Iteration.hpp.
using volcart::EnumerateIterable< Iterable >::EnumerateIterator< T >::difference_type = std::size_t |
Iterator type traits
Definition at line 414 of file Iteration.hpp.
using volcart::EnumerateIterable< Iterable >::EnumerateIterator< T >::iterator_category = std::input_iterator_tag |
Definition at line 419 of file Iteration.hpp.
using volcart::EnumerateIterable< Iterable >::EnumerateIterator< T >::pointer = value_type* |
Definition at line 417 of file Iteration.hpp.
using volcart::EnumerateIterable< Iterable >::EnumerateIterator< T >::reference = value_type |
Definition at line 418 of file Iteration.hpp.
using volcart::EnumerateIterable< Iterable >::EnumerateIterator< T >::value_type = std::pair<std::size_t, decltype(*std::declval<T&>())&> |
Definition at line 415 of file Iteration.hpp.
|
inlineexplicit |
Constructor for the iterator
Definition at line 423 of file Iteration.hpp.
|
inline |
Inequality comparison
Definition at line 438 of file Iteration.hpp.
|
inline |
Get the underlying referenced object
Definition at line 429 of file Iteration.hpp.
|
inline |
Increment the index and the wrapped iterator
Definition at line 444 of file Iteration.hpp.
|
inline |
Equality comparison: defer to wrapped iterators
Definition at line 432 of file Iteration.hpp.
|
private |
Definition at line 409 of file Iteration.hpp.
|
private |
Definition at line 410 of file Iteration.hpp.