graph_analysis
Public Member Functions | Protected Attributes | List of all members
graph_analysis::snap::InOutEdgeIterator< T > Class Template Reference

#include <EdgeIterator.hpp>

Inheritance diagram for graph_analysis::snap::InOutEdgeIterator< T >:
Inheritance graph
[legend]
Collaboration diagram for graph_analysis::snap::InOutEdgeIterator< T >:
Collaboration graph
[legend]

Public Member Functions

 InOutEdgeIterator (const T &graph, Vertex::Ptr vertex)
 
bool next ()
 Test if there is a next item and if it is then updates the current to next. More...
 
- Public Member Functions inherited from graph_analysis::EdgeIterator
virtual ~EdgeIterator ()
 
const Edge::Ptr & current ()
 

Protected Attributes

const T & mGraph
 
InEdgeIterator< T > mInEdgeIterator
 
OutEdgeIterator< T > mOutEdgeIterator
 

Additional Inherited Members

- Public Types inherited from graph_analysis::EdgeIterator
typedef shared_ptr< EdgeIterator > Ptr
 
typedef function1< bool, const Edge::Ptr & > SkipFunction
 
- Protected Member Functions inherited from graph_analysis::EdgeIterator
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)
 

Constructor & Destructor Documentation

◆ InOutEdgeIterator()

template<typename T >
graph_analysis::snap::InOutEdgeIterator< T >::InOutEdgeIterator ( const T &  graph,
Vertex::Ptr  vertex 
)
inline

Member Function Documentation

◆ next()

template<typename T >
bool graph_analysis::snap::InOutEdgeIterator< T >::next ( )
inlinevirtual

Test if there is a next item and if it is then updates the current to next.

Exceptions
std::runtime_errorif not implemented by subclass

Reimplemented from graph_analysis::EdgeIterator.

Member Data Documentation

◆ mGraph

template<typename T >
const T& graph_analysis::snap::InOutEdgeIterator< T >::mGraph
protected

◆ mInEdgeIterator

template<typename T >
InEdgeIterator<T> graph_analysis::snap::InOutEdgeIterator< T >::mInEdgeIterator
protected

◆ mOutEdgeIterator

template<typename T >
OutEdgeIterator<T> graph_analysis::snap::InOutEdgeIterator< T >::mOutEdgeIterator
protected

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