PGROUTING  2.6
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 235 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 236 of file pgr_allpairs.hpp.

236  {
237  T inf = (std::numeric_limits<T>::max)();
238  if (a == inf || b == inf)
239  return inf;
240  return a + b;
241  }

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