![]() |
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 returns 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 TSLLink &link, const TSLTurn &turn) const |
Static Public Attributes | |
static const distance_type | infinity |
static const distance_type | zero |
typedef double TSLPathCost::distance_type |
This type describes the distance object (double).
|
virtual |
Computes the cost of traversing the supplied link (including negotiating the turn).
link | A reference to the current link. |
turn | A reference to the associated turn. |
|
static |
Represents an infinite distance.
|
static |
Represents zero distance.