ROSE  0.11.145.0
Public Types | Public Member Functions | List of all members
Sawyer::Container::Graph< V, E, VKey, EKey, Alloc >::ConstVertexValueIterator Class Reference

Description

template<class V = Nothing, class E = Nothing, class VKey = GraphVertexNoKey<V>, class EKey = GraphEdgeNoKey<E>, class Alloc = DefaultAllocator>
class Sawyer::Container::Graph< V, E, VKey, EKey, Alloc >::ConstVertexValueIterator

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.

Definition at line 1095 of file Graph.h.

#include <util/Sawyer/Graph.h>

Inheritance diagram for Sawyer::Container::Graph< V, E, VKey, EKey, Alloc >::ConstVertexValueIterator:
Inheritance graph
[legend]
Collaboration diagram for Sawyer::Container::Graph< V, E, VKey, EKey, Alloc >::ConstVertexValueIterator:
Collaboration graph
[legend]

Public Types

typedef const VertexValueReference
 
typedef const VertexValuePointer
 
- Public Types inherited from Sawyer::Container::Graph< V, E, VKey, EKey, Alloc >::VertexBaseIterator< ConstVertexValueIterator, const VertexValue, const Vertex, VertexList::ConstNodeIterator >
using iterator_category = std::bidirectional_iterator_tag
 
using value_type = const VertexValue
 
using difference_type = std::ptrdiff_t
 
using pointer = const VertexValue *
 
using reference = const VertexValue &
 

Public Member Functions

 ConstVertexValueIterator (const ConstVertexValueIterator &other)
 
 ConstVertexValueIterator (const VertexValueIterator &other)
 
 ConstVertexValueIterator (const VertexIterator &other)
 
 ConstVertexValueIterator (const ConstVertexIterator &other)
 
ConstVertexValueIteratoroperator= (const ConstVertexValueIterator &other)
 
const VertexValueoperator* () const
 
const VertexValueoperator-> () const
 
- Public Member Functions inherited from Sawyer::Container::Graph< V, E, VKey, EKey, Alloc >::VertexBaseIterator< ConstVertexValueIterator, const VertexValue, const Vertex, VertexList::ConstNodeIterator >
ConstVertexValueIteratoroperator= (const ConstVertexValueIterator &other)
 Assignment. More...
 
VertexBaseIteratoroperator= (const VertexBaseIterator &other)
 
bool isEmpty () const
 True if iterator doesn't point to anything. More...
 
ConstVertexValueIteratoroperator++ ()
 Increment. More...
 
ConstVertexValueIterator operator++ (int)
 Increment. More...
 
ConstVertexValueIteratoroperator-- ()
 Decrement. More...
 
ConstVertexValueIterator 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 >::VertexBaseIterator< ConstVertexValueIterator, const VertexValue, const Vertex, VertexList::ConstNodeIterator >
 VertexBaseIterator (const VertexBaseIterator &other)
 
 VertexBaseIterator (const VertexList::ConstNodeIterator &base)
 
const Vertexdereference () const
 

The documentation for this class was generated from the following file: