osrm-backend/include/extractor/extraction_node.hpp

34 lines
666 B
C++
Raw Normal View History

#ifndef EXTRACTION_NODE_HPP
#define EXTRACTION_NODE_HPP
2014-08-26 11:02:05 -04:00
#include "traffic_lights.hpp"
2022-10-27 15:13:57 -04:00
#include <cstdint>
2016-01-05 10:51:13 -05:00
namespace osrm
{
namespace extractor
{
2022-10-27 15:13:57 -04:00
2014-08-26 11:02:05 -04:00
struct ExtractionNode
{
ExtractionNode() : traffic_lights(TrafficLightClass::NONE), barrier(false) {}
void clear()
{
traffic_lights = TrafficLightClass::NONE;
2022-10-27 15:13:57 -04:00
stop_sign = StopSign::Direction::NONE;
give_way = GiveWay::Direction::NONE;
barrier = false;
}
TrafficLightClass::Direction traffic_lights;
2014-08-26 11:02:05 -04:00
bool barrier;
2022-10-27 15:13:57 -04:00
StopSign::Direction stop_sign;
GiveWay::Direction give_way;
2014-08-26 11:02:05 -04:00
};
} // namespace extractor
} // namespace osrm
2016-01-05 10:51:13 -05:00
#endif // EXTRACTION_NODE_HPP