All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
Public Types | Public Member Functions | List of all members
paal::data_structures::vertex_to_edge_iterator< vertex_iterator > Class Template Reference

transforms collection to collection of pairs consecutive elements of the input collection. The last element and the first element are considered consecutive. More...

#include <vertex_to_edge_iterator.hpp>

Public Types

typedef std::iterator_traits
< vertex_iterator >
::value_type 
Vertex
 
typedef std::pair< Vertex, Vertex > Edge
 
typedef std::forward_iterator_tag iterator_category
 
typedef Edge value_type
 
typedef ptrdiff_t difference_type
 
typedef Edge * pointer
 
typedef const Edge & reference
 

Public Member Functions

 vertex_to_edge_iterator (vertex_iterator b, vertex_iterator e)
 constructor More...
 
vertex_to_edge_iteratoroperator++ ()
 operator++ post increment More...
 
vertex_to_edge_iterator operator++ (int)
 operator++ pre increment More...
 
bool operator!= (vertex_to_edge_iterator ei) const
 operator != More...
 
bool operator== (vertex_to_edge_iterator ei) const
 operator== More...
 
const Edge *const operator-> () const
 operator-> More...
 
const Edge & operator* () const
 operator* More...
 

Detailed Description

template<typename vertex_iterator>
class paal::data_structures::vertex_to_edge_iterator< vertex_iterator >

transforms collection to collection of pairs consecutive elements of the input collection. The last element and the first element are considered consecutive.

Template Parameters
vertex_iterator

Definition at line 32 of file vertex_to_edge_iterator.hpp.

Constructor & Destructor Documentation

template<typename vertex_iterator>
paal::data_structures::vertex_to_edge_iterator< vertex_iterator >::vertex_to_edge_iterator ( vertex_iterator  b,
vertex_iterator  e 
)
inline

constructor

Parameters
b
e

Definition at line 49 of file vertex_to_edge_iterator.hpp.

Member Function Documentation

template<typename vertex_iterator>
bool paal::data_structures::vertex_to_edge_iterator< vertex_iterator >::operator!= ( vertex_to_edge_iterator< vertex_iterator >  ei) const
inline

operator !=

Parameters
ei
Returns

Definition at line 86 of file vertex_to_edge_iterator.hpp.

template<typename vertex_iterator>
const Edge& paal::data_structures::vertex_to_edge_iterator< vertex_iterator >::operator* ( ) const
inline

operator*

Returns

Definition at line 113 of file vertex_to_edge_iterator.hpp.

template<typename vertex_iterator>
vertex_to_edge_iterator& paal::data_structures::vertex_to_edge_iterator< vertex_iterator >::operator++ ( )
inline

operator++ post increment

Returns

Definition at line 61 of file vertex_to_edge_iterator.hpp.

template<typename vertex_iterator>
vertex_to_edge_iterator paal::data_structures::vertex_to_edge_iterator< vertex_iterator >::operator++ ( int  )
inline

operator++ pre increment

Returns

Definition at line 73 of file vertex_to_edge_iterator.hpp.

template<typename vertex_iterator>
const Edge* const paal::data_structures::vertex_to_edge_iterator< vertex_iterator >::operator-> ( ) const
inline

operator->

Returns

Definition at line 106 of file vertex_to_edge_iterator.hpp.

template<typename vertex_iterator>
bool paal::data_structures::vertex_to_edge_iterator< vertex_iterator >::operator== ( vertex_to_edge_iterator< vertex_iterator >  ei) const
inline

operator==

Parameters
ei
Returns

Definition at line 97 of file vertex_to_edge_iterator.hpp.


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