PGROUTING  2.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Pgr_allpairs< G >::inf_plus< T > Struct Template Reference

Public Member Functions

operator() (const T &a, const T &b) const
 

Detailed Description

template<class G>
template<typename T>
struct Pgr_allpairs< G >::inf_plus< T >

Definition at line 143 of file pgr_allpairs.hpp.

Member Function Documentation

template<class G>
template<typename T >
T Pgr_allpairs< G >::inf_plus< T >::operator() ( const T &  a,
const T &  b 
) const
inline

Definition at line 144 of file pgr_allpairs.hpp.

144  {
145  T inf = (std::numeric_limits<T>::max)();
146  if (a == inf || b == inf)
147  return inf;
148  return a + b;
149  }

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