Visual Computing Library
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 value_type = uint
 
using reference = const uint &
 
using pointer = const uint *
 
using iterator_category = std::random_access_iterator_tag
 

Public Member Functions

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

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: