PGROUTING  2.6-dev
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 243 of file pgr_astar.hpp.

Constructor & Destructor Documentation

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

Member Function Documentation

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 247 of file pgr_astar.hpp.

247  {
248  if (u == m_goal)
249  throw found_goals();
250  // using g, otherwise is throws a warning
251  num_edges(g);
252  }

Member Data Documentation

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

Definition at line 254 of file pgr_astar.hpp.


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