|
ROSE 0.11.145.354
|
Bidirectional vertex value iterator.
Iterates over the vertex values in a list, returning the user-defined value (type VertexValue) when dereferenced. Vertex iterators are stable across insert and erase operations. The difference between VertexValueIterator and ConstVertexValueIterator is that the latter returns const references when dereferenced. A VertexValueIterator can be impliciatly converted to a ConstVertexValueIterator.
#include <Sawyer/Graph.h>


Public Types | |
| typedef VertexValue & | Reference |
| typedef VertexValue * | Pointer |
Public Types inherited from Sawyer::Container::Graph< V, E, VKey, EKey, Alloc >::VertexBaseIterator< VertexValueIterator, VertexValue, Vertex, VertexList::NodeIterator > | |
| using | iterator_category = std::bidirectional_iterator_tag |
| using | value_type = VertexValue |
| using | difference_type = std::ptrdiff_t |
| using | pointer = VertexValue * |
| using | reference = VertexValue & |
Public Member Functions | |
| VertexValueIterator (const VertexValueIterator &other) | |
| VertexValueIterator (const VertexIterator &other) | |
| VertexValueIterator & | operator= (const VertexValueIterator &other) |
| VertexValue & | operator* () const |
| VertexValue * | operator-> () const |
Public Member Functions inherited from Sawyer::Container::Graph< V, E, VKey, EKey, Alloc >::VertexBaseIterator< VertexValueIterator, VertexValue, Vertex, VertexList::NodeIterator > | |
| VertexValueIterator & | operator= (const VertexValueIterator &other) |
| Assignment. | |
| VertexBaseIterator & | operator= (const VertexBaseIterator &other) |
| bool | isEmpty () const |
| True if iterator doesn't point to anything. | |
| VertexValueIterator & | operator++ () |
| Increment. | |
| VertexValueIterator | operator++ (int) |
| Increment. | |
| VertexValueIterator & | operator-- () |
| Decrement. | |
| VertexValueIterator | 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 >::VertexBaseIterator< VertexValueIterator, VertexValue, Vertex, VertexList::NodeIterator > | |
| VertexBaseIterator (const VertexBaseIterator &other) | |
| VertexBaseIterator (const VertexList::NodeIterator &base) | |
| Vertex & | dereference () const |
| typedef VertexValue& Sawyer::Container::Graph< V, E, VKey, EKey, Alloc >::VertexValueIterator::Reference |
| typedef VertexValue* Sawyer::Container::Graph< V, E, VKey, EKey, Alloc >::VertexValueIterator::Pointer |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |