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

This class circulates through all one-ring neighbors of a vertex. It also acts as a container-concept for C++11 range-based for loops. More...

#include <graph.h>

Public Member Functions

 VertexAroundVertexCirculator (const Graph *g, Vertex v=Vertex())
 default constructor
 
bool operator== (const VertexAroundVertexCirculator &rhs) const
 Equality operator.
 
bool operator!= (const VertexAroundVertexCirculator &rhs) const
 Inequality operator.
 
VertexAroundVertexCirculator & operator++ ()
 Pre-increment circulator.
 
VertexAroundVertexCirculator & operator-- ()
 Pre-decrement circulator.
 
Vertex operator* () const
 Get the vertex the circulator refers to.
 
 operator bool () const
 Cast to bool: true if vertex is not isolated.
 
Vertex vertex () const
 Return current vertex.
 
VertexAroundVertexCirculator & begin ()
 Helper for C++11 range-based for-loops.
 
VertexAroundVertexCirculator & end ()
 Helper for C++11 range-based for-loops.
 

Detailed Description

This class circulates through all one-ring neighbors of a vertex. It also acts as a container-concept for C++11 range-based for loops.

See also
EdgeAroundVertexCirculator, vertices(Vertex)
Examples
Tutorial_109_Graph_Connectivity/main.cpp.

Member Function Documentation

◆ operator bool()

operator bool ( ) const
inline

Cast to bool: true if vertex is not isolated.

Returns
True if vertex is not isolated, false otherwise.

◆ operator!=()

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

Inequality operator.

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

◆ operator*()

Vertex operator* ( ) const
inline

Get the vertex the circulator refers to.

Returns
The vertex.

◆ operator++()

VertexAroundVertexCirculator & operator++ ( )
inline

Pre-increment circulator.

Returns
A reference to the incremented circulator.

◆ operator--()

VertexAroundVertexCirculator & operator-- ( )
inline

Pre-decrement circulator.

Returns
A reference to the decremented circulator.

◆ operator==()

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

Equality operator.

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

◆ vertex()

Vertex vertex ( ) const
inline

Return current vertex.

Returns
The vertex.

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