ROSE 0.11.145.147
|
Bidirectional edge value iterator.
Iterates over the edge values in a list, returning the user-defined value (type EdgeValue) when dereferenced. Edge iterators are stable across insert and erase operations. The difference between EdgeValueIterator and ConstEdgeValueIterator is that the latter returns const references when dereferenced. An EdgeValueIterator can be impliciatly converted to a ConstEdgeValueIterator.
#include <Sawyer/Graph.h>
Public Types | |
typedef EdgeValue & | Reference |
typedef EdgeValue * | Pointer |
Public Types inherited from Sawyer::Container::Graph< V, E, VKey, EKey, Alloc >::EdgeBaseIterator< EdgeValueIterator, EdgeValue, Edge, EdgeList::NodeIterator, VirtualList< Edge > > | |
using | iterator_category = std::bidirectional_iterator_tag |
using | value_type = EdgeValue |
using | difference_type = std::ptrdiff_t |
using | pointer = EdgeValue * |
using | reference = EdgeValue & |
Public Member Functions | |
EdgeValueIterator (const EdgeValueIterator &other) | |
EdgeValueIterator (const EdgeIterator &other) | |
EdgeValueIterator & | operator= (const EdgeValueIterator &other) |
EdgeValue & | operator* () const |
EdgeValue * | operator-> () const |
Public Member Functions inherited from Sawyer::Container::Graph< V, E, VKey, EKey, Alloc >::EdgeBaseIterator< EdgeValueIterator, EdgeValue, Edge, EdgeList::NodeIterator, VirtualList< Edge > > | |
EdgeValueIterator & | operator= (const EdgeValueIterator &other) |
Assignment. | |
bool | isEmpty () const |
True if iterator doesn't point to anything. | |
EdgeValueIterator & | operator++ () |
Increment. | |
EdgeValueIterator | operator++ (int) |
Increment. | |
EdgeValueIterator & | operator-- () |
Decrement. | |
EdgeValueIterator | operator-- (int) |
Decrement. | |
bool | operator== (const OtherIter &other) const |
Equality predicate. | |
bool | operator!= (const OtherIter &other) const |
Equality predicate. | |
Additional Inherited Members | |
Protected Member Functions inherited from Sawyer::Container::Graph< V, E, VKey, EKey, Alloc >::EdgeBaseIterator< EdgeValueIterator, EdgeValue, Edge, EdgeList::NodeIterator, VirtualList< Edge > > | |
EdgeBaseIterator (const EdgeBaseIterator &other) | |
EdgeBaseIterator (const EdgeList::NodeIterator &iter) | |
EdgeBaseIterator (EdgePhase phase, VirtualList< Edge > *vlist) | |
EdgeBaseIterator (EdgePhase phase, const BaseIter2 &iter, VirtualList< Edge > *vlist) | |
Edge & | dereference () const |
typedef EdgeValue& Sawyer::Container::Graph< V, E, VKey, EKey, Alloc >::EdgeValueIterator::Reference |
typedef EdgeValue* Sawyer::Container::Graph< V, E, VKey, EKey, Alloc >::EdgeValueIterator::Pointer |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |