CMR  1.3.0
Public Types | Public Member Functions | List of all members
tu::util::detail::vertex_writer< OutputIterator, EventTag > Struct Template Reference

#include <graph_utils.hpp>

Public Types

typedef EventTag event_filter
 

Public Member Functions

 vertex_writer (OutputIterator iterator)
 
template<typename Vertex , typename Graph >
void operator() (Vertex vertex, const Graph &graph)
 
OutputIterator iterator () const
 

Detailed Description

template<typename OutputIterator, typename EventTag>
struct tu::util::detail::vertex_writer< OutputIterator, EventTag >

BFS / DFS event filter to write vertices to an OutputIterator

Member Typedef Documentation

template<typename OutputIterator , typename EventTag >
typedef EventTag tu::util::detail::vertex_writer< OutputIterator, EventTag >::event_filter

Constructor & Destructor Documentation

template<typename OutputIterator , typename EventTag >
tu::util::detail::vertex_writer< OutputIterator, EventTag >::vertex_writer ( OutputIterator  iterator)
inline

Creates the filter

Parameters
iteratorIterator to write vertices to

Member Function Documentation

template<typename OutputIterator , typename EventTag >
OutputIterator tu::util::detail::vertex_writer< OutputIterator, EventTag >::iterator ( ) const
inline
Returns
The current iterator
template<typename OutputIterator , typename EventTag >
template<typename Vertex , typename Graph >
void tu::util::detail::vertex_writer< OutputIterator, EventTag >::operator() ( Vertex  vertex,
const Graph &  graph 
)
inline

Writes the given vertex into the OutputIterator

Parameters
vertexEvent-vertex
graph

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