ROSE
0.11.96.11
|
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 <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) | |
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. More... | |
EdgeValueIterator | operator++ (int) |
Increment. More... | |
EdgeValueIterator & | operator-- () |
Decrement. More... | |
EdgeValueIterator | operator-- (int) |
Decrement. More... | |
bool | operator== (const OtherIter &other) const |
Equality predicate. More... | |
bool | operator!= (const OtherIter &other) const |
Equality predicate. More... | |
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 |