![]() |
MapLink Pro 11.2
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
This class represents the cost of traversing a link in the network. The default implementation of operator() simply return the length of the link augmented by any associated turn relation. Clients should provide derived classes in order to provide their own problem-specific cost definition.
Public Types | |
typedef double | distance_type |
Public Member Functions | |
virtual distance_type | operator() (const TSLOptLink &link, const TSLOptTurn &turn, distance_type cost) const |
Static Public Attributes | |
static const distance_type | infinity |
static const distance_type | zero |
typedef double TSLOptPathCost::distance_type |
|
virtual |
Computes the cost of traversing the supplied link (incluing negotiating the turn).
link | A reference to the current link. |
turn | A reference to the associated turn. |
cost | The current cost of getting to the link's source node. |
|
static |
Represents an infinite distance.
|
static |
Represents zero distance.