GClasses
|
Iterates over the edges that connect to the specified node.
#include <GGraph.h>
Public Member Functions | |
GGraphEdgeIterator (GGraphCut *pGraph, size_t nNode) | |
~GGraphEdgeIterator () | |
bool | next (size_t *pNode, float *pEdgeWeight, bool *pOutgoing) |
Gets the next edge. Returns false if there isn't one left to get. If it returns true, pNode, pEdgeWeight, and pOutgoing will contain the values of the edge. (Note that pOutgoing tells you which direction the edge is going, even though my implementation of graph-cut treats them as undirected edges.) More... | |
void | reset (size_t nNode) |
Starts over with a new node. More... | |
Protected Attributes | |
size_t | m_nNode |
struct GGraphCutEdge * | m_pCurrentEdge |
GGraphCut * | m_pGraph |
GClasses::GGraphEdgeIterator::GGraphEdgeIterator | ( | GGraphCut * | pGraph, |
size_t | nNode | ||
) |
GClasses::GGraphEdgeIterator::~GGraphEdgeIterator | ( | ) |
bool GClasses::GGraphEdgeIterator::next | ( | size_t * | pNode, |
float * | pEdgeWeight, | ||
bool * | pOutgoing | ||
) |
Gets the next edge. Returns false if there isn't one left to get. If it returns true, pNode, pEdgeWeight, and pOutgoing will contain the values of the edge. (Note that pOutgoing tells you which direction the edge is going, even though my implementation of graph-cut treats them as undirected edges.)
void GClasses::GGraphEdgeIterator::reset | ( | size_t | nNode | ) |
Starts over with a new node.
|
protected |
|
protected |
|
protected |