C++ Reference

C++ Reference: Routing

TypeRegulationsChecker::TypePolicyOccurrence

Detailed Description

Definition at line 1965 of file routing.h.

Public Attributes

int num_type_added_to_vehicle = 0
 Number of TYPE_ADDED_TO_VEHICLE and TYPE_SIMULTANEOUSLY_ADDED_AND_REMOVED node type policies seen on the route. More...
 
int num_type_removed_from_vehicle = 0
 Number of ADDED_TYPE_REMOVED_FROM_VEHICLE (effectively removing a type from the route) and TYPE_SIMULTANEOUSLY_ADDED_AND_REMOVED node type policies seen on the route. More...
 
int position_of_last_type_on_vehicle_up_to_visit = -1
 Position of the last node of policy TYPE_ON_VEHICLE_UP_TO_VISIT visited on the route. More...
 

Member Data Documentation

◆ num_type_added_to_vehicle

int num_type_added_to_vehicle = 0

Number of TYPE_ADDED_TO_VEHICLE and TYPE_SIMULTANEOUSLY_ADDED_AND_REMOVED node type policies seen on the route.

Definition at line 1969 of file routing.h.

◆ num_type_removed_from_vehicle

int num_type_removed_from_vehicle = 0

Number of ADDED_TYPE_REMOVED_FROM_VEHICLE (effectively removing a type from the route) and TYPE_SIMULTANEOUSLY_ADDED_AND_REMOVED node type policies seen on the route.

This number is always <= num_type_added_to_vehicle, as a type is only actually removed if it was on the route before.

Definition at line 1975 of file routing.h.

◆ position_of_last_type_on_vehicle_up_to_visit

int position_of_last_type_on_vehicle_up_to_visit = -1

Position of the last node of policy TYPE_ON_VEHICLE_UP_TO_VISIT visited on the route.

If positive, the type is considered on the vehicle from the start of the route until this position.

Definition at line 1980 of file routing.h.


The documentation for this struct was generated from the following file: