MeVisLab Toolbox Reference
boost::ml_ug_edge Class Reference

Simple wrapper to store an ml::VesselEdge together with a ml::VesselNode, so that the source() function and the out_edge_iterator will always be able to return an edge which points away from a vertex. More...

#include <mlGraphToBoostUndirectedGraph.h>

Public Member Functions

 ml_ug_edge ()
 
 ml_ug_edge (ml::VesselNode *vertex, ml::VesselEdge *edge)
 
ml::VesselNode * source ()
 
ml::VesselNode * target ()
 
double weight () const
 

Protected Attributes

ml::VesselNode * _vertex
 
ml::VesselEdge * _edge
 

Friends

bool operator== (const self &a, const self &b)
 
bool operator!= (const self &a, const self &b)
 

Detailed Description

Simple wrapper to store an ml::VesselEdge together with a ml::VesselNode, so that the source() function and the out_edge_iterator will always be able to return an edge which points away from a vertex.

Definition at line 144 of file mlGraphToBoostUndirectedGraph.h.

Constructor & Destructor Documentation

◆ ml_ug_edge() [1/2]

boost::ml_ug_edge::ml_ug_edge ( )
inline

Definition at line 151 of file mlGraphToBoostUndirectedGraph.h.

◆ ml_ug_edge() [2/2]

boost::ml_ug_edge::ml_ug_edge ( ml::VesselNode * vertex,
ml::VesselEdge * edge )
inline

Definition at line 152 of file mlGraphToBoostUndirectedGraph.h.

Member Function Documentation

◆ source()

ml::VesselNode * boost::ml_ug_edge::source ( )
inline

Definition at line 156 of file mlGraphToBoostUndirectedGraph.h.

References _vertex.

◆ target()

ml::VesselNode * boost::ml_ug_edge::target ( )
inline

Definition at line 161 of file mlGraphToBoostUndirectedGraph.h.

References _edge, and _vertex.

◆ weight()

double boost::ml_ug_edge::weight ( ) const
inline

Definition at line 169 of file mlGraphToBoostUndirectedGraph.h.

References _edge.

Referenced by boost::ml_ug_edge_weight_map::operator[]().

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( const self & a,
const self & b )
friend

Definition at line 175 of file mlGraphToBoostUndirectedGraph.h.

◆ operator==

bool operator== ( const self & a,
const self & b )
friend

Definition at line 171 of file mlGraphToBoostUndirectedGraph.h.

Member Data Documentation

◆ _edge

ml::VesselEdge* boost::ml_ug_edge::_edge
protected

Definition at line 181 of file mlGraphToBoostUndirectedGraph.h.

Referenced by target(), and weight().

◆ _vertex

ml::VesselNode* boost::ml_ug_edge::_vertex
protected

Definition at line 180 of file mlGraphToBoostUndirectedGraph.h.

Referenced by source(), and target().


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