ROSE 0.11.145.147
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 1103 of file Graph.h.

#include <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.
 
VertexBaseIteratoroperator= (const VertexBaseIterator &other)
 
bool isEmpty () const
 True if iterator doesn't point to anything.
 
ConstVertexValueIteratoroperator++ ()
 Increment.
 
ConstVertexValueIterator operator++ (int)
 Increment.
 
ConstVertexValueIteratoroperator-- ()
 Decrement.
 
ConstVertexValueIterator 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< ConstVertexValueIterator, const VertexValue, const Vertex, VertexList::ConstNodeIterator >
 VertexBaseIterator (const VertexBaseIterator &other)
 
 VertexBaseIterator (const VertexList::ConstNodeIterator &base)
 
const Vertexdereference () const
 

Member Typedef Documentation

◆ Reference

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

Definition at line 1108 of file Graph.h.

◆ Pointer

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

Definition at line 1109 of file Graph.h.

Constructor & Destructor Documentation

◆ ConstVertexValueIterator() [1/5]

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

Definition at line 1110 of file Graph.h.

◆ ConstVertexValueIterator() [2/5]

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

Definition at line 1111 of file Graph.h.

◆ ConstVertexValueIterator() [3/5]

template<class V = Nothing, class E = Nothing, class VKey = GraphVertexNoKey<V>, class EKey = GraphEdgeNoKey<E>, class Alloc = DefaultAllocator>
Sawyer::Container::Graph< V, E, VKey, EKey, Alloc >::ConstVertexValueIterator::ConstVertexValueIterator ( const VertexValueIterator other)
inline

Definition at line 1112 of file Graph.h.

◆ ConstVertexValueIterator() [4/5]

template<class V = Nothing, class E = Nothing, class VKey = GraphVertexNoKey<V>, class EKey = GraphEdgeNoKey<E>, class Alloc = DefaultAllocator>
Sawyer::Container::Graph< V, E, VKey, EKey, Alloc >::ConstVertexValueIterator::ConstVertexValueIterator ( const VertexIterator other)
inline

Definition at line 1113 of file Graph.h.

◆ ConstVertexValueIterator() [5/5]

template<class V = Nothing, class E = Nothing, class VKey = GraphVertexNoKey<V>, class EKey = GraphEdgeNoKey<E>, class Alloc = DefaultAllocator>
Sawyer::Container::Graph< V, E, VKey, EKey, Alloc >::ConstVertexValueIterator::ConstVertexValueIterator ( const ConstVertexIterator other)
inline

Definition at line 1114 of file Graph.h.

Member Function Documentation

◆ operator=()

template<class V = Nothing, class E = Nothing, class VKey = GraphVertexNoKey<V>, class EKey = GraphEdgeNoKey<E>, class Alloc = DefaultAllocator>
ConstVertexValueIterator & Sawyer::Container::Graph< V, E, VKey, EKey, Alloc >::ConstVertexValueIterator::operator= ( const ConstVertexValueIterator other)
inline

Definition at line 1115 of file Graph.h.

◆ operator*()

template<class V = Nothing, class E = Nothing, class VKey = GraphVertexNoKey<V>, class EKey = GraphEdgeNoKey<E>, class Alloc = DefaultAllocator>
const VertexValue & Sawyer::Container::Graph< V, E, VKey, EKey, Alloc >::ConstVertexValueIterator::operator* ( ) const
inline

Definition at line 1116 of file Graph.h.

◆ operator->()

template<class V = Nothing, class E = Nothing, class VKey = GraphVertexNoKey<V>, class EKey = GraphEdgeNoKey<E>, class Alloc = DefaultAllocator>
const VertexValue * Sawyer::Container::Graph< V, E, VKey, EKey, Alloc >::ConstVertexValueIterator::operator-> ( ) const
inline

Definition at line 1117 of file Graph.h.


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