|
ad_map_access
|
namespace restriction More...
Classes | |
| struct | Restriction |
| DataType Restriction. More... | |
| struct | Restrictions |
| DataType Restrictions. More... | |
| struct | SpeedLimit |
| DataType SpeedLimit. More... | |
| struct | VehicleDescriptor |
| DataType VehicleDescriptor. More... | |
Typedefs | |
| typedef uint16_t | PassengerCount |
| DataType PassengerCount. | |
| typedef std::vector<::ad::map::restriction::Restriction > | RestrictionList |
| DataType RestrictionList. | |
| typedef std::vector<::ad::map::restriction::RoadUserType > | RoadUserTypeList |
| DataType RoadUserTypeList. | |
| typedef std::vector<::ad::map::restriction::SpeedLimit > | SpeedLimitList |
| DataType SpeedLimitList. | |
Enumerations | |
| enum | RoadUserType : int32_t { RoadUserType::INVALID = 0, RoadUserType::UNKNOWN = 1, RoadUserType::CAR = 2, RoadUserType::BUS = 3, RoadUserType::TRUCK = 4, RoadUserType::PEDESTRIAN = 5, RoadUserType::MOTORBIKE = 6, RoadUserType::BICYCLE = 7, RoadUserType::CAR_ELECTRIC = 8, RoadUserType::CAR_HYBRID = 9, RoadUserType::CAR_PETROL = 10, RoadUserType::CAR_DIESEL = 11 } |
| DataType RoadUserType. More... | |
Functions | |
| std::ostream & | operator<< (std::ostream &os, Restriction const &_value) |
| standard ostream operator More... | |
| std::ostream & | operator<< (std::ostream &os, Restrictions const &_value) |
| standard ostream operator More... | |
| std::ostream & | operator<< (std::ostream &os, RoadUserType const &value) |
| standard ostream operator More... | |
| std::ostream & | operator<< (std::ostream &os, SpeedLimit const &_value) |
| standard ostream operator More... | |
| std::ostream & | operator<< (std::ostream &os, VehicleDescriptor const &_value) |
| standard ostream operator More... | |
| bool | areAttributesEqual (SpeedLimit const &left, SpeedLimit const &right) |
| Compare two speed limit attributes for equality. More... | |
| template<typename RangeAttribute > | |
| bool | combineRangeAttributes (RangeAttribute &left, RangeAttribute const &right) |
| Tries to combine two RangeAttributes into one. More... | |
| template<typename RangeAttribute > | |
| bool | doesRangeAttributeOverlap (std::vector< RangeAttribute > const &attributeList, RangeAttribute const &attribute) |
| Checks if another attribute overlaps any existing element. More... | |
| template<typename RangeAttribute > | |
| void | insertRangeAttribute (std::vector< RangeAttribute > &attributeList, RangeAttribute const &attribute) |
| Insert attribute and preserve order. More... | |
| template<typename RangeAttribute > | |
| void | optimizeRangeAttributeList (std::vector< RangeAttribute > &attributeList) |
| Combines multiple elements into one - if possible. | |
| bool | isValid (VehicleDescriptor const &descriptor, bool const logErrors=true) |
| checks if the given VehicleDescriptor is valid More... | |
| bool | isValid (Restriction const &restriction, bool const logErrors=true) |
| checks if the given Restriction is valid More... | |
| bool | isValid (Restrictions const &restrictions, bool const logErrors=true) |
| checks if the given Restrictions is valid More... | |
| bool | isAccessOk (Restriction const &restriction, VehicleDescriptor const &vehicle) |
| Checks if restriction allows vehicle at this object. More... | |
| bool | isAccessOk (Restrictions const &restrictions, VehicleDescriptor const &vehicle) |
| Checks if vehicle fits the restriction criteria. More... | |
| PassengerCount | getHOV (Restrictions const &restrictions) |
namespace restriction
Handling of traffic restrictions
|
strong |
|
inline |
Compare two speed limit attributes for equality.
| [in] | left | SpeedLimit object. |
| [in] | right | SpeedLimit object. |
| bool ad::map::restriction::combineRangeAttributes | ( | RangeAttribute & | left, |
| RangeAttribute const & | right | ||
| ) |
Tries to combine two RangeAttributes into one.
| [in] | left | RangeAttributes object. |
| [in] | right | RangeAttributes object. |
| bool ad::map::restriction::doesRangeAttributeOverlap | ( | std::vector< RangeAttribute > const & | attributeList, |
| RangeAttribute const & | attribute | ||
| ) |
Checks if another attribute overlaps any existing element.
| [in] | attributeList | attribute list to check for overlap |
| [in] | attribute | another attribute. |
| PassengerCount ad::map::restriction::getHOV | ( | Restrictions const & | restrictions | ) |
| void ad::map::restriction::insertRangeAttribute | ( | std::vector< RangeAttribute > & | attributeList, |
| RangeAttribute const & | attribute | ||
| ) |
Insert attribute and preserve order.
| [in] | attributeList | attribute list |
| [in] | attribute | attribute to insert |
| bool ad::map::restriction::isAccessOk | ( | Restriction const & | restriction, |
| VehicleDescriptor const & | vehicle | ||
| ) |
Checks if restriction allows vehicle at this object.
| [in] | restriction | data. |
| [in] | vehicle | Vehicle data. |
| bool ad::map::restriction::isAccessOk | ( | Restrictions const & | restrictions, |
| VehicleDescriptor const & | vehicle | ||
| ) |
Checks if vehicle fits the restriction criteria.
| vehicle | Description of the vehicle. |
|
inline |
checks if the given Restriction is valid
The restriction is valid if it's within valid input range.
|
inline |
checks if the given Restrictions is valid
The restrictions is valid if it's within valid input range.
|
inline |
checks if the given VehicleDescriptor is valid
The descriptor is valid if it's within valid input range.
|
inline |
standard ostream operator
| [in] | os | The output stream to write to |
| [in] | _value | Restriction value |
|
inline |
standard ostream operator
| [in] | os | The output stream to write to |
| [in] | _value | Restrictions value |
|
inline |
standard ostream operator
| [in] | os | The output stream to write to |
| [in] | value | RoadUserType value |
|
inline |
standard ostream operator
| [in] | os | The output stream to write to |
| [in] | _value | SpeedLimit value |
|
inline |
standard ostream operator
| [in] | os | The output stream to write to |
| [in] | _value | VehicleDescriptor value |
1.8.17