ROSE 0.11.145.147
Public Member Functions | Public Attributes | List of all members
Sawyer::Container::Algorithm::IdAccumulator< Graph > Class Template Reference

Description

template<class Graph>
class Sawyer::Container::Algorithm::IdAccumulator< Graph >

Accumulates vertex or edge IDs.

This is a vertex or edge visitor that accumulates the IDs of the vertices or edges that are visited. It can be passed as the functor for any of the functor-calling traversal functions.

Definition at line 1402 of file GraphTraversal.h.

#include <Sawyer/GraphTraversal.h>

Collaboration diagram for Sawyer::Container::Algorithm::IdAccumulator< Graph >:
Collaboration graph
[legend]

Public Member Functions

 IdAccumulator (size_t n)
 
void operator() (typename GraphTraits< Graph >::VertexIterator v)
 
void operator() (typename GraphTraits< Graph >::VertexIterator v, typename GraphTraits< Graph >::VertexIterator)
 
void operator() (typename GraphTraits< Graph >::EdgeIterator e)
 
void operator() (typename GraphTraits< Graph >::EdgeIterator e, typename GraphTraits< Graph >::EdgeIterator)
 

Public Attributes

std::vector< size_t > ids
 

Constructor & Destructor Documentation

◆ IdAccumulator()

template<class Graph >
Sawyer::Container::Algorithm::IdAccumulator< Graph >::IdAccumulator ( size_t  n)
inlineexplicit

Definition at line 1406 of file GraphTraversal.h.

Member Function Documentation

◆ operator()() [1/4]

template<class Graph >
void Sawyer::Container::Algorithm::IdAccumulator< Graph >::operator() ( typename GraphTraits< Graph >::VertexIterator  v)
inline

Definition at line 1408 of file GraphTraversal.h.

◆ operator()() [2/4]

template<class Graph >
void Sawyer::Container::Algorithm::IdAccumulator< Graph >::operator() ( typename GraphTraits< Graph >::VertexIterator  v,
typename GraphTraits< Graph >::VertexIterator   
)
inline

Definition at line 1411 of file GraphTraversal.h.

◆ operator()() [3/4]

template<class Graph >
void Sawyer::Container::Algorithm::IdAccumulator< Graph >::operator() ( typename GraphTraits< Graph >::EdgeIterator  e)
inline

Definition at line 1414 of file GraphTraversal.h.

◆ operator()() [4/4]

template<class Graph >
void Sawyer::Container::Algorithm::IdAccumulator< Graph >::operator() ( typename GraphTraits< Graph >::EdgeIterator  e,
typename GraphTraits< Graph >::EdgeIterator   
)
inline

Definition at line 1417 of file GraphTraversal.h.

Member Data Documentation

◆ ids

template<class Graph >
std::vector<size_t> Sawyer::Container::Algorithm::IdAccumulator< Graph >::ids

Definition at line 1404 of file GraphTraversal.h.


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