vg
tools for working with variation graphs
|
Random access iterator. More...
#include <utility.hpp>
Public Types | |
using | iterator_category = std::random_access_iterator_tag |
using | value_type = const Item |
using | pointer = const Item * |
using | reference = const Item & |
using | difference_type = std::ptrdiff_t |
Public Member Functions | |
const_iterator & | operator++ () |
Advance the iterator. Pre-increment. More... | |
const_iterator & | operator-- () |
De-advance the iterator. Pre-decrement. More... | |
const_iterator & | operator+= (const difference_type &difference) |
Advance the iterator by a distance, in place. More... | |
const_iterator & | operator-= (const difference_type &difference) |
De-advance the iterator by a distance, in place. More... | |
const_iterator | operator++ (int) |
Advance the iterator. Post-increment. More... | |
const_iterator | operator-- (int) |
De-advance the iterator. Post-decrement. More... | |
const_iterator | operator+ (const difference_type &difference) const |
Advance the iterator by a distance, copying. More... | |
const_iterator | operator- (const difference_type &difference) const |
De-advance the iterator by a distance, copying. More... | |
difference_type | operator- (const const_iterator &other) const |
Get a difference of iterators on the same container. More... | |
bool | operator== (const const_iterator &other) const |
Check if two iterators on the same container are equal. More... | |
bool | operator!= (const const_iterator &other) const |
Check if two iterators on the same container are not equal. More... | |
const Item & | operator* () const |
Get the item pointed to by the iterator. More... | |
const Item * | operator-> () const |
Get a pointer to the item pointed to by the itarator. More... | |
Public Attributes | |
const VectorView< Item > & | parent |
size_t | offset = 0 |
Random access iterator.
using vg::VectorView< Item >::const_iterator::difference_type = std::ptrdiff_t |
using vg::VectorView< Item >::const_iterator::iterator_category = std::random_access_iterator_tag |
using vg::VectorView< Item >::const_iterator::pointer = const Item* |
using vg::VectorView< Item >::const_iterator::reference = const Item& |
using vg::VectorView< Item >::const_iterator::value_type = const Item |
|
inline |
Check if two iterators on the same container are not equal.
|
inline |
Get the item pointed to by the iterator.
|
inline |
Advance the iterator by a distance, copying.
|
inline |
Advance the iterator. Pre-increment.
|
inline |
Advance the iterator. Post-increment.
|
inline |
Advance the iterator by a distance, in place.
|
inline |
Get a difference of iterators on the same container.
|
inline |
De-advance the iterator by a distance, copying.
|
inline |
De-advance the iterator. Pre-decrement.
|
inline |
De-advance the iterator. Post-decrement.
|
inline |
De-advance the iterator by a distance, in place.
|
inline |
Get a pointer to the item pointed to by the itarator.
|
inline |
Check if two iterators on the same container are equal.
size_t vg::VectorView< Item >::const_iterator::offset = 0 |
const VectorView<Item>& vg::VectorView< Item >::const_iterator::parent |