ROSE  0.11.96.11
Public Member Functions | Public Attributes | 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 1087 of file Graph.h.

#include <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 Member Functions

 ConstVertexValueIterator (const ConstVertexValueIterator &other)
 
 ConstVertexValueIterator (const VertexValueIterator &other)
 
 ConstVertexValueIterator (const VertexIterator &other)
 
 ConstVertexValueIterator (const ConstVertexIterator &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.
 
bool isEmpty () const
 True if iterator doesn't point to anything.
 
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...
 

Public Attributes

const typedef VertexValueReference
 
const typedef VertexValuePointer
 

Additional Inherited Members

- 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 &
 
- 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: