Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
CCHMetricFamily< E, V, K >::StaticMetric Struct Reference

per-(type, period) STATIC metric state. RoutingKit metrics BORROW their input-weight buffer, so buffer and metric live together in the map (std::map nodes are address-stable). More...

Data Fields

bool filled = false
 whether the first fill (which runs the patch) is done
 
std::unique_ptr< RoutingKit::CustomizableContractionHierarchyMetricmetric
 
std::vector< std::pair< unsigned, unsigned > > patched
 the (arc, weight) pairs the patch wrote on the first fill, re-applied on every refill
 
V * refVehicle = nullptr
 OWNED reference vehicle (nullptr when filling with the querying vehicle)
 
SUMOVehicleClass vClass = SVC_PASSENGER
 
std::vector< unsigned > weights
 

Detailed Description

template<class E, class V, class K>
struct CCHMetricFamily< E, V, K >::StaticMetric

per-(type, period) STATIC metric state. RoutingKit metrics BORROW their input-weight buffer, so buffer and metric live together in the map (std::map nodes are address-stable).

Definition at line 529 of file CCHMetricFamily.h.

Field Documentation

◆ filled

template<class E , class V , class K >
bool CCHMetricFamily< E, V, K >::StaticMetric::filled = false

whether the first fill (which runs the patch) is done

Definition at line 537 of file CCHMetricFamily.h.

Referenced by CCHMetricFamily< E, V, K >::fillStatic().

◆ metric

template<class E , class V , class K >
std::unique_ptr<RoutingKit::CustomizableContractionHierarchyMetric> CCHMetricFamily< E, V, K >::StaticMetric::metric

Definition at line 531 of file CCHMetricFamily.h.

Referenced by CCHMetricFamily< E, V, K >::get().

◆ patched

template<class E , class V , class K >
std::vector<std::pair<unsigned, unsigned> > CCHMetricFamily< E, V, K >::StaticMetric::patched

the (arc, weight) pairs the patch wrote on the first fill, re-applied on every refill

Definition at line 540 of file CCHMetricFamily.h.

Referenced by CCHMetricFamily< E, V, K >::fillStatic().

◆ refVehicle

template<class E , class V , class K >
V* CCHMetricFamily< E, V, K >::StaticMetric::refVehicle = nullptr

OWNED reference vehicle (nullptr when filling with the querying vehicle)

Definition at line 535 of file CCHMetricFamily.h.

Referenced by CCHMetricFamily< E, V, K >::get().

◆ vClass

template<class E , class V , class K >
SUMOVehicleClass CCHMetricFamily< E, V, K >::StaticMetric::vClass = SVC_PASSENGER

◆ weights

template<class E , class V , class K >
std::vector<unsigned> CCHMetricFamily< E, V, K >::StaticMetric::weights

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