MCPcopy Index your code
hub / github.com/PyVRP/PyVRP / size

Method size

pyvrp/cpp/Route.cpp:347–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345bool Route::empty() const { return size() == 0; }
346
347size_t Route::size() const
348{
349 return std::accumulate(trips_.begin(),
350 trips_.end(),
351 0,
352 [](size_t count, auto const &trip)
353 { return count + trip.size(); });
354}
355
356size_t Route::numTrips() const { return trips_.size(); }
357

Callers 8

IteratorMethod · 0.45
operator*Method · 0.45
Route.cppFile · 0.45
validateMethod · 0.45
makeScheduleMethod · 0.45
RouteMethod · 0.45
numTripsMethod · 0.45
operator[]Method · 0.45

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected