PGROUTING  3.2
pgrouting::algorithms::Pgr_astar< G >::astar_one_goal_visitor Class Reference

visitor that terminates when we find the goal More...

Inheritance diagram for pgrouting::algorithms::Pgr_astar< G >::astar_one_goal_visitor:
Collaboration diagram for pgrouting::algorithms::Pgr_astar< G >::astar_one_goal_visitor:

Public Member Functions

 astar_one_goal_visitor (V goal)
 
template<class B_G >
void examine_vertex (V u, B_G &g)
 

Private Attributes

V m_goal
 

Detailed Description

template<class G>
class pgrouting::algorithms::Pgr_astar< G >::astar_one_goal_visitor

visitor that terminates when we find the goal

Definition at line 287 of file pgr_astar.hpp.

Constructor & Destructor Documentation

◆ astar_one_goal_visitor()

template<class G >
pgrouting::algorithms::Pgr_astar< G >::astar_one_goal_visitor::astar_one_goal_visitor ( V  goal)
inlineexplicit

Definition at line 289 of file pgr_astar.hpp.

289 : m_goal(goal) {}

Member Function Documentation

◆ examine_vertex()

template<class G >
template<class B_G >
void pgrouting::algorithms::Pgr_astar< G >::astar_one_goal_visitor::examine_vertex ( V  u,
B_G g 
)
inline

Definition at line 291 of file pgr_astar.hpp.

291  {
292  if (u == m_goal)
293  throw found_goals();
294  // using g, otherwise is throws a warning
295  num_edges(g);
296  }

References pgrouting::algorithms::Pgr_astar< G >::astar_one_goal_visitor::m_goal.

Member Data Documentation

◆ m_goal

template<class G >
V pgrouting::algorithms::Pgr_astar< G >::astar_one_goal_visitor::m_goal
private

The documentation for this class was generated from the following file:
pgrouting::algorithms::Pgr_astar::astar_one_goal_visitor::m_goal
V m_goal
Definition: pgr_astar.hpp:298