PGROUTING  2.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Pgr_dijkstra< G >::dijkstra_distance_visitor Class Reference

class for stopping when a distance/cost has being surpassed More...

Inheritance diagram for Pgr_dijkstra< G >::dijkstra_distance_visitor:
Collaboration diagram for Pgr_dijkstra< G >::dijkstra_distance_visitor:

Public Member Functions

 dijkstra_distance_visitor (double distance_goal, std::deque< V > &nodesInDistance, std::vector< double > &distances)
 
template<class B_G >
void examine_vertex (V u, B_G &)
 

Private Attributes

std::vector< double > & m_dist
 
double m_distance_goal
 
std::deque< V > & m_nodes
 

Detailed Description

template<class G>
class Pgr_dijkstra< G >::dijkstra_distance_visitor

class for stopping when a distance/cost has being surpassed

Definition at line 744 of file pgr_dijkstra.hpp.

Constructor & Destructor Documentation

template<class G>
Pgr_dijkstra< G >::dijkstra_distance_visitor::dijkstra_distance_visitor ( double  distance_goal,
std::deque< V > &  nodesInDistance,
std::vector< double > &  distances 
)
inlineexplicit

Definition at line 746 of file pgr_dijkstra.hpp.

References Pgr_dijkstra< G >::dijkstra_distance_visitor::m_distance_goal, Pgr_dijkstra< G >::dijkstra_distance_visitor::m_nodes, and pgassert.

749  :
750  m_distance_goal(distance_goal),
751  m_nodes(nodesInDistance),
752  m_dist(distances) {
753  pgassert(m_nodes.empty());
755  }
#define pgassert(expr)
Uses the standard assert syntax.
Definition: pgr_assert.h:81

Member Function Documentation

template<class G>
template<class B_G >
void Pgr_dijkstra< G >::dijkstra_distance_visitor::examine_vertex ( V  u,
B_G &   
)
inline

Member Data Documentation

template<class G>
std::vector< double >& Pgr_dijkstra< G >::dijkstra_distance_visitor::m_dist
private
template<class G>
double Pgr_dijkstra< G >::dijkstra_distance_visitor::m_distance_goal
private
template<class G>
std::deque< V >& Pgr_dijkstra< G >::dijkstra_distance_visitor::m_nodes
private

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