20 return road->UpperBound(
_s) -
_s;
32 auto search =
_lanes.find(
id);
33 if (search !=
_lanes.end()) {
34 return &search->second;
40 auto search =
_lanes.find(
id);
41 if (search !=
_lanes.end()) {
42 return &search->second;
56 std::vector<Lane *> drivable_lanes;
57 for (
auto &&lane :
_lanes) {
58 if ((
static_cast<uint32_t
>(lane.second.GetType()) &
static_cast<uint32_t
>(lane_type)) > 0) {
59 drivable_lanes.emplace_back(&lane.second);
62 return drivable_lanes;
#define DEBUG_ASSERT(predicate)
double GetDistance() const
Lane * GetLane(const LaneId id)
std::map< LaneId, Lane > _lanes
std::vector< Lane * > GetLanesOfType(Lane::LaneType type)
std::map< LaneId, Lane > & GetLanes()
LaneType
Can be used as flags
This file contains definitions of common data structures used in traffic manager.