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>

List of all members.

Public Member Functions

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

Protected Attributes

ml::GraphNode * _vertex
std::vector< ml::GraphEdge * >
::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 192 of file mlGraphToBoostUndirectedGraph.h.


Constructor & Destructor Documentation

ml_ug_out_edge_iterator::ml_ug_out_edge_iterator (  )  [inline]

Definition at line 204 of file mlGraphToBoostUndirectedGraph.h.

ml_ug_out_edge_iterator::ml_ug_out_edge_iterator ( ml::GraphNode *  vertex,
std::vector< ml::GraphEdge * >::iterator  edgeIter 
) [inline]

Definition at line 206 of file mlGraphToBoostUndirectedGraph.h.


Member Function Documentation

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

Definition at line 212 of file mlGraphToBoostUndirectedGraph.h.

References _edgeIter, and _vertex.

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

Definition at line 214 of file mlGraphToBoostUndirectedGraph.h.

References _edgeIter.


Friends And Related Function Documentation

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

Definition at line 220 of file mlGraphToBoostUndirectedGraph.h.


Member Data Documentation

std::vector<ml::GraphEdge*>::iterator ml_ug_out_edge_iterator::_edgeIter [protected]

Definition at line 225 of file mlGraphToBoostUndirectedGraph.h.

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

ml::GraphNode* ml_ug_out_edge_iterator::_vertex [protected]

Definition at line 224 of file mlGraphToBoostUndirectedGraph.h.

Referenced by operator*().


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

Generated on Sat Sep 3 18:39:32 2011 for MeVisLab Toolbox Reference by  doxygen 1.5.8