PGROUTING  3.2
pgrouting::visitors::Dfs_visitor_with_root< V, E > Class Template Reference

#include "dfs_visitor_with_root.hpp"

Inheritance diagram for pgrouting::visitors::Dfs_visitor_with_root< V, E >:
Collaboration diagram for pgrouting::visitors::Dfs_visitor_with_root< V, E >:

Public Member Functions

 Dfs_visitor_with_root (V root, std::vector< E > &data)
 
template<typename B_G >
void start_vertex (V v, const B_G &)
 
template<typename B_G >
void tree_edge (E e, const B_G &)
 

Private Attributes

std::vector< E > & m_data
 
m_roots
 

Detailed Description

template<typename V, typename E>
class pgrouting::visitors::Dfs_visitor_with_root< V, E >

Definition at line 42 of file dfs_visitor_with_root.hpp.

Constructor & Destructor Documentation

◆ Dfs_visitor_with_root()

template<typename V , typename E >
pgrouting::visitors::Dfs_visitor_with_root< V, E >::Dfs_visitor_with_root ( root,
std::vector< E > &  data 
)
inline

Definition at line 44 of file dfs_visitor_with_root.hpp.

46  :
47  m_data(data),
48  m_roots(root) {}

Member Function Documentation

◆ start_vertex()

template<typename V , typename E >
template<typename B_G >
void pgrouting::visitors::Dfs_visitor_with_root< V, E >::start_vertex ( v,
const B_G &   
)
inline

Definition at line 54 of file dfs_visitor_with_root.hpp.

54  {
55  if (v != m_roots) throw found_goals();
56  }

References pgrouting::visitors::Dfs_visitor_with_root< V, E >::m_roots.

◆ tree_edge()

template<typename V , typename E >
template<typename B_G >
void pgrouting::visitors::Dfs_visitor_with_root< V, E >::tree_edge ( e,
const B_G &   
)
inline

Definition at line 50 of file dfs_visitor_with_root.hpp.

50  {
51  m_data.push_back(e);
52  }

References pgrouting::visitors::Dfs_visitor_with_root< V, E >::m_data.

Member Data Documentation

◆ m_data

template<typename V , typename E >
std::vector<E>& pgrouting::visitors::Dfs_visitor_with_root< V, E >::m_data
private

◆ m_roots

template<typename V , typename E >
V pgrouting::visitors::Dfs_visitor_with_root< V, E >::m_roots
private

The documentation for this class was generated from the following file:
pgrouting::visitors::Dfs_visitor_with_root::m_data
std::vector< E > & m_data
Definition: dfs_visitor_with_root.hpp:59
pgrouting::visitors::Dfs_visitor_with_root::m_roots
V m_roots
Definition: dfs_visitor_with_root.hpp:60