@@ -69,45 +69,4 @@ using RouteLocks = std::vector<LockChain>;
6969using Pickups = NewType<Vector<NodeIndex>, struct PickupsTag >::Type;
7070using Deliveries = NewType<Vector<NodeIndex>, struct DeliveriesTag >::Type;
7171
72- // Bytes in our type used for internal caching
73-
74- template <typename T> struct Bytes ;
75-
76- template <> struct Bytes <CostMatrix> {
77- std::int32_t operator ()(const CostMatrix& v) const { return v.size () * sizeof (CostMatrix::Value); }
78- };
79-
80- template <> struct Bytes <DurationMatrix> {
81- std::int32_t operator ()(const DurationMatrix& v) const { return v.size () * sizeof (DurationMatrix::Value); }
82- };
83-
84- template <> struct Bytes <DemandMatrix> {
85- std::int32_t operator ()(const DemandMatrix& v) const { return v.size () * sizeof (DemandMatrix::Value); }
86- };
87-
88- template <> struct Bytes <TimeWindows> {
89- std::int32_t operator ()(const TimeWindows& v) const { return v.size () * sizeof (TimeWindows::Value); }
90- };
91-
92- template <> struct Bytes <RouteLocks> {
93- std::int32_t operator ()(const RouteLocks& v) const {
94- std::int32_t bytes = 0 ;
95-
96- for (const auto & lockChain : v)
97- bytes += lockChain.size () * sizeof (LockChain::value_type);
98-
99- return bytes;
100- }
101- };
102-
103- template <> struct Bytes <Pickups> {
104- std::int32_t operator ()(const Pickups& v) const { return v.size () * sizeof (Pickups::Value); }
105- };
106-
107- template <> struct Bytes <Deliveries> {
108- std::int32_t operator ()(const Deliveries& v) const { return v.size () * sizeof (Deliveries::Value); }
109- };
110-
111- template <typename T> std::int32_t getBytes (const T& v) { return Bytes<T>{}(v); }
112-
11372#endif
0 commit comments