Easy3D 2.6.1
Loading...
Searching...
No Matches
Graph::EdgeIterator Class Reference

This class iterates linearly over all edges. More...

#include <graph.h>

Public Member Functions

 EdgeIterator (Edge e=Edge(), const Graph *g=nullptr)
 Default constructor.
 
Edge operator* () const
 Get the edge the iterator refers to.
 
bool operator== (const EdgeIterator &rhs) const
 Equality operator.
 
bool operator!= (const EdgeIterator &rhs) const
 Inequality operator.
 
EdgeIteratoroperator++ ()
 Pre-increment iterator.
 
EdgeIteratoroperator-- ()
 Pre-decrement iterator.
 

Detailed Description

This class iterates linearly over all edges.

See also
edges_begin(), edges_end()
VertexIterator

Member Function Documentation

◆ operator!=()

bool operator!= ( const EdgeIterator & rhs) const
inline

Inequality operator.

Parameters
rhsThe other iterator to compare with.
Returns
True if the iterators are different, false otherwise.

◆ operator*()

Edge operator* ( ) const
inline

Get the edge the iterator refers to.

Returns
The edge.

◆ operator++()

EdgeIterator & operator++ ( )
inline

Pre-increment iterator.

Returns
A reference to the incremented iterator.

◆ operator--()

EdgeIterator & operator-- ( )
inline

Pre-decrement iterator.

Returns
A reference to the decremented iterator.

◆ operator==()

bool operator== ( const EdgeIterator & rhs) const
inline

Equality operator.

Parameters
rhsThe other iterator to compare with.
Returns
True if the iterators are equal, false otherwise.

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