|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Distance totalizer class for path copying. More...
#include <shortest_path_common.H>
Public Member Functions | |
| Total ()=default | |
Builds the totalizer with a distance accessor built by Distance(). | |
| Total (Distance __distance) | |
| Builds the totalizer with a distance accessor. | |
| bool | operator() (typename GT::Arc *a) |
Adds the weight of an arc to dist. | |
Public Attributes | |
| Distance::Distance_Type | dist = 0 |
| Distance | distance {} |
| Distance accessor for the arc weights. | |
Distance totalizer class for path copying.
It keeps a copy of its distance accessor, which may have state, or no default constructor.
Definition at line 798 of file shortest_path_common.H.
|
default |
Builds the totalizer with a distance accessor built by Distance().
|
inlineexplicit |
Builds the totalizer with a distance accessor.
| [in] | __distance | Distance accessor for the arc weights. |
Definition at line 814 of file shortest_path_common.H.
|
inline |
Adds the weight of an arc to dist.
| [in] | a | The arc. |
| anything | that the distance throws; dist is then unchanged. |
Definition at line 822 of file shortest_path_common.H.
References Aleph::Shortest_Path_Base< GT, Distance, Itor, SA, HeapT >::Total::dist, and Aleph::Shortest_Path_Base< GT, Distance, Itor, SA, HeapT >::Total::distance.
| Distance::Distance_Type Aleph::Shortest_Path_Base< GT, Distance, Itor, SA, HeapT >::Total::dist = 0 |
Definition at line 800 of file shortest_path_common.H.
Referenced by Aleph::Shortest_Path_Base< GT, Distance, Itor, SA, HeapT >::Total::operator()().
| Distance Aleph::Shortest_Path_Base< GT, Distance, Itor, SA, HeapT >::Total::distance {} |
Distance accessor for the arc weights.
Definition at line 803 of file shortest_path_common.H.
Referenced by Aleph::Shortest_Path_Base< GT, Distance, Itor, SA, HeapT >::Total::operator()().