Class VertexIterator

Inheritance Relationships

Base Type

  • public std::iterator< std::input_iterator_tag, const vertex_uid_t >

Class Documentation

class VertexIterator : public std::iterator<std::input_iterator_tag, const vertex_uid_t>

Iterator class for vertices.

Unnamed Group

template<EdgeOrientation Orientation>
VertexIterator(const GraphImpl<Orientation> &pimpl, size_t from)

Ctors and dtors.

Create an iterator over vertices

Parameters
  • pimpl: Pointer to implementation

  • from: Move iterator at specified index

VertexIterator(const VertexIterator &other)

Copy constructor

Parameters
  • other: Other iterator

Public Types

using VertexIteratorImpl_ptr = std::shared_ptr<VertexIteratorImpl>

Public Functions

VertexIterator &operator++()

Move iterator to next element.

Return

this instance

const VertexIterator operator++(int)

Advance the iterator by specified element positions.

Return

copy of the iterator before the operation

bool operator==(const VertexIterator &other) const

compare 2 vertex iterators.

bool operator!=(const VertexIterator &other) const

compare 2 vertex iterators.

const value_type &operator*()

Get vertex at the current iterator position

Return

constant reference to element