Visual Computing Library  devel
Loading...
Searching...
No Matches
vcl::IndexFromPointerIterator< Iterator > Class Template Reference

This iterator is used to iterate over a container of pointers to elements and return the index of the element. More...

#include <vclib/mesh/iterators/components/index_from_pointer_iterator.h>

Public Types

using difference_type = ptrdiff_t
 
using iterator_category = std::random_access_iterator_tag
 
using pointer = const uint *
 
using reference = const uint &
 
using value_type = uint
 

Public Member Functions

 IndexFromPointerIterator (const Iterator &it)
 
bool operator!= (const IndexFromPointerIterator &oi) const
 
value_type operator* () const
 
IndexFromPointerIterator operator+ (difference_type n) const
 
IndexFromPointerIteratoroperator++ ()
 
IndexFromPointerIterator operator++ (int)
 
IndexFromPointerIteratoroperator+= (difference_type n)
 
difference_type operator- (const IndexFromPointerIterator &oi) const
 
IndexFromPointerIterator operator- (difference_type n) const
 
IndexFromPointerIteratoroperator-- ()
 
IndexFromPointerIterator operator-- (int)
 
IndexFromPointerIteratoroperator-= (difference_type n)
 
auto operator-> () const
 
bool operator< (const IndexFromPointerIterator &oi) const
 
bool operator<= (const IndexFromPointerIterator &oi) const
 
bool operator== (const IndexFromPointerIterator &oi) const
 
bool operator> (const IndexFromPointerIterator &oi) const
 
bool operator>= (const IndexFromPointerIterator &oi) const
 
value_type operator[] (difference_type i)
 

Private Attributes

Iterator mIt
 

Detailed Description

template<typename Iterator>
class vcl::IndexFromPointerIterator< Iterator >

This iterator is used to iterate over a container of pointers to elements and return the index of the element.

Template Parameters
IteratorThe iterator type of the container of pointers to elements.

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