graph_analysis
Public Types | Public Member Functions | Protected Member Functions | Friends | List of all members
graph_analysis::EdgeIterator Class Reference

EdgeIterator interface Allows to access all edges of a graph. Requires implementation to wrap the underlying graph library in use. More...

#include <EdgeIterator.hpp>

Inheritance diagram for graph_analysis::EdgeIterator:
Inheritance graph
[legend]

Public Types

typedef shared_ptr< EdgeIterator > Ptr
 
typedef function1< bool, const Edge::Ptr & > SkipFunction
 

Public Member Functions

virtual ~EdgeIterator ()
 
virtual bool next ()
 Test if there is a next item and if it is then updates the current to next. More...
 
const Edge::Ptr & current ()
 

Protected Member Functions

bool skip (const Edge::Ptr &edge) const
 Check if edge should be skipped. More...
 
void setNext (const Edge::Ptr &edge)
 Set next edge Should be applied by class implementing next() More...
 
void setSkipFunction (SkipFunction skipFunction)
 

Friends

class SubGraph
 

Detailed Description

EdgeIterator interface Allows to access all edges of a graph. Requires implementation to wrap the underlying graph library in use.

Member Typedef Documentation

◆ Ptr

◆ SkipFunction

typedef function1<bool, const Edge::Ptr&> graph_analysis::EdgeIterator::SkipFunction

Constructor & Destructor Documentation

◆ ~EdgeIterator()

virtual graph_analysis::EdgeIterator::~EdgeIterator ( )
inlinevirtual

Member Function Documentation

◆ current()

const Edge::Ptr& graph_analysis::EdgeIterator::current ( )
inline

Retrieve the current edge this iterator is pointing to

◆ next()

virtual bool graph_analysis::EdgeIterator::next ( )
inlinevirtual

◆ setNext()

void graph_analysis::EdgeIterator::setNext ( const Edge::Ptr &  edge)
inlineprotected

Set next edge Should be applied by class implementing next()

◆ setSkipFunction()

void graph_analysis::EdgeIterator::setSkipFunction ( SkipFunction  skipFunction)
inlineprotected

Allows to add a skip function – e.g. for the SubGraph which provides a 'view' onto the BaseGraph

◆ skip()

bool graph_analysis::EdgeIterator::skip ( const Edge::Ptr &  edge) const
protected

Check if edge should be skipped.

Returns
True if edge should be skipped, false otherwise

Friends And Related Function Documentation

◆ SubGraph

friend class SubGraph
friend

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