OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
edge_iterator< Graph > Class Template Reference

Graph edge iterator. More...

Detailed Description

template<typename Graph>
class edge_iterator< Graph >

Graph edge iterator.

Definition at line 167 of file map_graph.hpp.

#include <map_graph.hpp>

Public Member Functions

 edge_iterator (const Graph &g)
 Constructor.
 
edge_iteratoroperator++ ()
 Get the next element.
 
bool isNext ()
 Check if there is the next element.
 
edge_key get ()
 Get the actual key.
 
size_t source ()
 Return the source node.
 
size_t target ()
 Return the target node.
 

Private Attributes

const Graph & g
 Graph.
 
edge_key ek
 

Constructor & Destructor Documentation

◆ edge_iterator()

template<typename Graph >
edge_iterator< Graph >::edge_iterator ( const Graph &  g)
inline

Constructor.

Parameters
gGraph on where iterate

Definition at line 183 of file map_graph.hpp.

Member Function Documentation

◆ get()

template<typename Graph >
edge_key edge_iterator< Graph >::get ( )
inline

Get the actual key.

Get the actual key

Returns
the actual key

Definition at line 247 of file map_graph.hpp.

◆ isNext()

template<typename Graph >
bool edge_iterator< Graph >::isNext ( )
inline

Check if there is the next element.

Check if there is the next element

Returns
true if there is the next, false otherwise

we did not reach the end of the node

we reach the end of the node

Definition at line 227 of file map_graph.hpp.

◆ operator++()

template<typename Graph >
edge_iterator & edge_iterator< Graph >::operator++ ( )
inline

Get the next element.

Returns
the next grid_key

Definition at line 195 of file map_graph.hpp.

◆ source()

template<typename Graph >
size_t edge_iterator< Graph >::source ( )
inline

Return the source node.

Returns
the source node

Definition at line 257 of file map_graph.hpp.

◆ target()

template<typename Graph >
size_t edge_iterator< Graph >::target ( )
inline

Return the target node.

Returns
the target node

Definition at line 267 of file map_graph.hpp.

Field Documentation

◆ ek

template<typename Graph >
edge_key edge_iterator< Graph >::ek
private

Definition at line 173 of file map_graph.hpp.

◆ g

template<typename Graph >
const Graph& edge_iterator< Graph >::g
private

Graph.

Definition at line 170 of file map_graph.hpp.


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