MeVisLab Toolbox Reference
ml_ug_out_edge_iterator Class Reference

Iterator class to iterate over all out edges of a vertex (out_edge_iterator). More...

#include <mlGraphToBoostUndirectedGraph.h>

Inheritance diagram for ml_ug_out_edge_iterator:

Public Member Functions

 ml_ug_out_edge_iterator ()
 
 ml_ug_out_edge_iterator (ml::VesselNode *vertex, std::vector< ml::VesselEdge * >::iterator edgeIter)
 
boost::ml_ug_edge operator* ()
 
selfoperator++ ()
 

Protected Attributes

ml::VesselNode * _vertex
 
std::vector< ml::VesselEdge * >::iterator _edgeIter
 

Friends

bool operator== (const self &x, const self &y)
 

Detailed Description

Iterator class to iterate over all out edges of a vertex (out_edge_iterator).

Since we want an undirected graph, we must wrap the ml::GraphEdges in a boost::ml_ug_edge object, so we get a default direction (always away from vertex).

Definition at line 189 of file mlGraphToBoostUndirectedGraph.h.

Constructor & Destructor Documentation

◆ ml_ug_out_edge_iterator() [1/2]

ml_ug_out_edge_iterator::ml_ug_out_edge_iterator ( )
inline

Definition at line 201 of file mlGraphToBoostUndirectedGraph.h.

◆ ml_ug_out_edge_iterator() [2/2]

ml_ug_out_edge_iterator::ml_ug_out_edge_iterator ( ml::VesselNode *  vertex,
std::vector< ml::VesselEdge * >::iterator  edgeIter 
)
inline

Definition at line 203 of file mlGraphToBoostUndirectedGraph.h.

Member Function Documentation

◆ operator*()

boost::ml_ug_edge ml_ug_out_edge_iterator::operator* ( )
inline

Definition at line 209 of file mlGraphToBoostUndirectedGraph.h.

References _edgeIter, and _vertex.

◆ operator++()

self& ml_ug_out_edge_iterator::operator++ ( void  )
inline

Definition at line 211 of file mlGraphToBoostUndirectedGraph.h.

References _edgeIter.

Friends And Related Function Documentation

◆ operator==

bool operator== ( const self x,
const self y 
)
friend

Definition at line 217 of file mlGraphToBoostUndirectedGraph.h.

Member Data Documentation

◆ _edgeIter

std::vector<ml::VesselEdge*>::iterator ml_ug_out_edge_iterator::_edgeIter
protected

Definition at line 222 of file mlGraphToBoostUndirectedGraph.h.

Referenced by operator*(), and operator++().

◆ _vertex

ml::VesselNode* ml_ug_out_edge_iterator::_vertex
protected

Definition at line 221 of file mlGraphToBoostUndirectedGraph.h.

Referenced by operator*().


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