![]() |
OR-Tools
9.6
|
Public Member Functions | |
| TypeIncompatibilityChecker (const RoutingModel &model, bool check_hard_incompatibilities) | |
| ~TypeIncompatibilityChecker () override=default | |
| bool | CheckVehicle (int vehicle, const std::function< int64_t(int64_t)> &next_accessor) |
Protected Types | |
| using | VisitTypePolicy = RoutingModel::VisitTypePolicy |
Protected Member Functions | |
| bool | TypeOccursOnRoute (int type) const |
| Returns true iff any occurrence of the given type was seen on the route, i.e. More... | |
| bool | TypeCurrentlyOnRoute (int type, int pos) const |
| 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'. More... | |
| void | InitializeCheck (int vehicle, const std::function< int64_t(int64_t)> &next_accessor) |
| virtual void | OnInitializeCheck () |
| virtual bool | FinalizeCheck () const |
Protected Attributes | |
| const RoutingModel & | model_ |
|
protectedinherited |
| TypeIncompatibilityChecker | ( | const RoutingModel & | model, |
| bool | check_hard_incompatibilities | ||
| ) |
Definition at line 6869 of file routing.cc.
|
overridedefault |
|
inherited |
Definition at line 6787 of file routing.cc.
|
inlineprotectedvirtualinherited |
|
protectedinherited |
Definition at line 6831 of file routing.cc.
|
inlineprotectedvirtualinherited |
|
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'.
Definition at line 6862 of file routing.cc.
|
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).
Definition at line 6856 of file routing.cc.
|
protectedinherited |