-
Notifications
You must be signed in to change notification settings - Fork 0
/
domain.cpp
22 lines (16 loc) · 893 Bytes
/
domain.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "domain.h"
namespace domain
{
StopStat::StopStat(const std::string_view stop_name, const std::set<std::string_view>& buses)
: stop_name(stop_name), buses(buses) {}
BusStat::BusStat(const std::string_view bus_num, const int stops_on_route, const int unique_stops, const int64_t route_length, const double curvature)
: bus_num(bus_num), stops_on_route(stops_on_route), unique_stops(unique_stops), route_length(route_length), curvature(curvature) {}
Stop::Stop(const std::string_view stop_name, const double lat, const double lng)
: stop_name(stop_name)
{
coodinates.lat = lat;
coodinates.lng = lng;
}
Bus::Bus(const std::string_view bus_num, const std::vector<StopPtr>& stops, const std::unordered_set<StopPtr>& unique_stops, const bool is_circular)
: bus_num(bus_num), stops(stops), unique_stops(unique_stops), is_circular(is_circular) {}
} // namespace domain