Checker for type incompatibilities.
Definition at line 2012 of file routing.h.
◆ VisitTypePolicy
◆ TypeIncompatibilityChecker()
◆ ~TypeIncompatibilityChecker()
◆ CheckVehicle()
bool CheckVehicle |
( |
int |
vehicle, |
|
|
const std::function< int64(int64)> & |
next_accessor |
|
) |
| |
|
inherited |
◆ FinalizeCheck()
virtual bool FinalizeCheck |
( |
| ) |
const |
|
inlineprotectedvirtualinherited |
◆ InitializeCheck()
void InitializeCheck |
( |
int |
vehicle, |
|
|
const std::function< int64(int64)> & |
next_accessor |
|
) |
| |
|
protectedinherited |
◆ OnInitializeCheck()
virtual void OnInitializeCheck |
( |
| ) |
|
|
inlineprotectedvirtualinherited |
◆ TypeCurrentlyOnRoute()
bool TypeCurrentlyOnRoute |
( |
int |
type, |
|
|
int |
pos |
|
) |
| const |
|
protectedinherited |
Returns true iff there's at least one instance of the given type on the route when scanning the route at the given position 'pos'.
This is the case iff we have at least one added but non-removed instance of the type, or if occurrences_of_type_[type].last_type_on_vehicle_up_to_visit is greater than 'pos'.
◆ TypeOccursOnRoute()
bool TypeOccursOnRoute |
( |
int |
type | ) |
const |
|
protectedinherited |
Returns true iff any occurrence of the given type was seen on the route, i.e.
iff the added count for this type is positive, or if a node of this type and policy TYPE_ON_VEHICLE_UP_TO_VISIT is visited on the route (see TypePolicyOccurrence.last_type_on_vehicle_up_to_visit).
◆ model_
The documentation for this class was generated from the following file: