untangle includes using iwyu
This commit is contained in:
parent
88c8d73a94
commit
f67eeb66aa
@ -28,13 +28,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include "douglas_peucker.hpp"
|
#include "douglas_peucker.hpp"
|
||||||
|
|
||||||
#include "../data_structures/segment_information.hpp"
|
#include "../data_structures/segment_information.hpp"
|
||||||
#include "../util/integer_range.hpp"
|
|
||||||
|
|
||||||
#include <boost/assert.hpp>
|
#include <boost/assert.hpp>
|
||||||
#include <osrm/coordinate.hpp>
|
#include <osrm/coordinate.hpp>
|
||||||
|
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
#include <iterator>
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
@ -28,9 +28,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#ifndef DOUGLAS_PEUCKER_HPP_
|
#ifndef DOUGLAS_PEUCKER_HPP_
|
||||||
#define DOUGLAS_PEUCKER_HPP_
|
#define DOUGLAS_PEUCKER_HPP_
|
||||||
|
|
||||||
#include <stack>
|
#include "../data_structures/segment_information.hpp"
|
||||||
#include <vector>
|
|
||||||
#include <array>
|
#include <array>
|
||||||
|
#include <stack>
|
||||||
|
#include <utility>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
|
|
||||||
/* This class object computes the bitvector of indicating generalized input
|
/* This class object computes the bitvector of indicating generalized input
|
||||||
* points according to the (Ramer-)Douglas-Peucker algorithm.
|
* points according to the (Ramer-)Douglas-Peucker algorithm.
|
||||||
@ -39,8 +43,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
* bit indicating if the points is present in the generalization.
|
* bit indicating if the points is present in the generalization.
|
||||||
* Note: points may also be pre-selected*/
|
* Note: points may also be pre-selected*/
|
||||||
|
|
||||||
struct SegmentInformation;
|
|
||||||
|
|
||||||
static const std::array<int, 19> DOUGLAS_PEUCKER_THRESHOLDS {{
|
static const std::array<int, 19> DOUGLAS_PEUCKER_THRESHOLDS {{
|
||||||
512440, // z0
|
512440, // z0
|
||||||
256720, // z1
|
256720, // z1
|
||||||
|
@ -27,15 +27,11 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
#include "coordinate_calculation.hpp"
|
#include "coordinate_calculation.hpp"
|
||||||
|
|
||||||
#include "../util/mercator.hpp"
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
#include "../util/simple_logger.hpp"
|
#include "../util/simple_logger.hpp"
|
||||||
#endif
|
#endif
|
||||||
#include <boost/assert.hpp>
|
|
||||||
#include <osrm/coordinate.hpp>
|
#include <osrm/coordinate.hpp>
|
||||||
|
|
||||||
#include <cmath>
|
|
||||||
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
#include <bitset>
|
#include <bitset>
|
||||||
#endif
|
#endif
|
||||||
|
@ -32,6 +32,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
#include <boost/assert.hpp>
|
#include <boost/assert.hpp>
|
||||||
|
|
||||||
|
#include <osrm/coordinate.hpp>
|
||||||
|
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
@ -28,9 +28,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#ifndef COORDINATE_CALCULATION
|
#ifndef COORDINATE_CALCULATION
|
||||||
#define COORDINATE_CALCULATION
|
#define COORDINATE_CALCULATION
|
||||||
|
|
||||||
#include <osrm/coordinate.hpp>
|
struct FixedPointCoordinate;
|
||||||
|
|
||||||
#include <iosfwd> //for std::ostream
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "external_memory_node.hpp"
|
#include "external_memory_node.hpp"
|
||||||
|
#include "query_node.hpp"
|
||||||
|
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
#include "query_node.hpp"
|
#include "query_node.hpp"
|
||||||
|
|
||||||
#include <string>
|
#include "../typedefs.h"
|
||||||
|
|
||||||
struct ExternalMemoryNode : QueryNode
|
struct ExternalMemoryNode : QueryNode
|
||||||
{
|
{
|
||||||
|
@ -27,7 +27,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
#include "import_edge.hpp"
|
#include "import_edge.hpp"
|
||||||
|
|
||||||
#include <boost/assert.hpp>
|
#include "travel_mode.hpp"
|
||||||
|
#include "../typedefs.h"
|
||||||
|
|
||||||
bool NodeBasedEdge::operator<(const NodeBasedEdge &other) const
|
bool NodeBasedEdge::operator<(const NodeBasedEdge &other) const
|
||||||
{
|
{
|
||||||
|
@ -27,6 +27,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
#include "phantom_node.hpp"
|
#include "phantom_node.hpp"
|
||||||
|
|
||||||
|
#include "../typedefs.h"
|
||||||
|
#include "travel_mode.hpp"
|
||||||
|
|
||||||
|
#include <osrm/coordinate.hpp>
|
||||||
|
|
||||||
|
#include <limits>
|
||||||
|
|
||||||
PhantomNode::PhantomNode(NodeID forward_node_id, NodeID reverse_node_id, unsigned name_id,
|
PhantomNode::PhantomNode(NodeID forward_node_id, NodeID reverse_node_id, unsigned name_id,
|
||||||
int forward_weight, int reverse_weight, int forward_offset, int reverse_offset,
|
int forward_weight, int reverse_weight, int forward_offset, int reverse_offset,
|
||||||
unsigned packed_geometry_id, unsigned component_id, FixedPointCoordinate &location,
|
unsigned packed_geometry_id, unsigned component_id, FixedPointCoordinate &location,
|
||||||
|
@ -34,6 +34,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include <osrm/coordinate.hpp>
|
#include <osrm/coordinate.hpp>
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <utility>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
struct PhantomNode
|
struct PhantomNode
|
||||||
|
@ -28,10 +28,12 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include "data_structures/original_edge_data.hpp"
|
#include "data_structures/original_edge_data.hpp"
|
||||||
#include "data_structures/range_table.hpp"
|
#include "data_structures/range_table.hpp"
|
||||||
#include "data_structures/query_edge.hpp"
|
#include "data_structures/query_edge.hpp"
|
||||||
|
#include "data_structures/query_node.hpp"
|
||||||
#include "data_structures/shared_memory_factory.hpp"
|
#include "data_structures/shared_memory_factory.hpp"
|
||||||
#include "data_structures/shared_memory_vector_wrapper.hpp"
|
#include "data_structures/shared_memory_vector_wrapper.hpp"
|
||||||
#include "data_structures/static_graph.hpp"
|
#include "data_structures/static_graph.hpp"
|
||||||
#include "data_structures/static_rtree.hpp"
|
#include "data_structures/static_rtree.hpp"
|
||||||
|
#include "data_structures/travel_mode.hpp"
|
||||||
#include "data_structures/turn_instructions.hpp"
|
#include "data_structures/turn_instructions.hpp"
|
||||||
#include "server/data_structures/datafacade_base.hpp"
|
#include "server/data_structures/datafacade_base.hpp"
|
||||||
#include "server/data_structures/shared_datatype.hpp"
|
#include "server/data_structures/shared_datatype.hpp"
|
||||||
@ -44,6 +46,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include "typedefs.h"
|
#include "typedefs.h"
|
||||||
|
|
||||||
#include <osrm/coordinate.hpp>
|
#include <osrm/coordinate.hpp>
|
||||||
|
#include <osrm/server_paths.hpp>
|
||||||
|
|
||||||
using RTreeLeaf = BaseDataFacade<QueryEdge::EdgeData>::RTreeLeaf;
|
using RTreeLeaf = BaseDataFacade<QueryEdge::EdgeData>::RTreeLeaf;
|
||||||
using RTreeNode = StaticRTree<RTreeLeaf, ShM<FixedPointCoordinate, true>::vector, true>::TreeNode;
|
using RTreeNode = StaticRTree<RTreeLeaf, ShM<FixedPointCoordinate, true>::vector, true>::TreeNode;
|
||||||
@ -58,6 +61,7 @@ using QueryGraph = StaticGraph<QueryEdge::EdgeData>;
|
|||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
@ -29,6 +29,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include "extractor/extractor_options.hpp"
|
#include "extractor/extractor_options.hpp"
|
||||||
#include "util/simple_logger.hpp"
|
#include "util/simple_logger.hpp"
|
||||||
|
|
||||||
|
#include <boost/filesystem.hpp>
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
@ -28,7 +28,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#ifndef EXTRACTOR_OPTIONS_HPP
|
#ifndef EXTRACTOR_OPTIONS_HPP
|
||||||
#define EXTRACTOR_OPTIONS_HPP
|
#define EXTRACTOR_OPTIONS_HPP
|
||||||
|
|
||||||
#include <boost/filesystem.hpp>
|
#include <boost/filesystem/path.hpp>
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
|
||||||
enum class return_code : unsigned
|
enum class return_code : unsigned
|
||||||
{
|
{
|
||||||
|
@ -26,8 +26,12 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "contractor/processing_chain.hpp"
|
#include "contractor/processing_chain.hpp"
|
||||||
|
#include "util/simple_logger.hpp"
|
||||||
|
|
||||||
#include <boost/program_options.hpp>
|
#include <boost/program_options/errors.hpp>
|
||||||
|
|
||||||
|
#include <exception>
|
||||||
|
#include <ostream>
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
@ -27,10 +27,16 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
#include "request_parser.hpp"
|
#include "request_parser.hpp"
|
||||||
|
|
||||||
|
#include "http/compression_type.hpp"
|
||||||
|
#include "http/header.hpp"
|
||||||
#include "http/request.hpp"
|
#include "http/request.hpp"
|
||||||
|
|
||||||
|
#include "../data_structures/tribool.hpp"
|
||||||
|
|
||||||
#include <boost/algorithm/string/predicate.hpp>
|
#include <boost/algorithm/string/predicate.hpp>
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
|
||||||
namespace http
|
namespace http
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -31,6 +31,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
#include <boost/uuid/name_generator.hpp>
|
#include <boost/uuid/name_generator.hpp>
|
||||||
|
|
||||||
|
#include <cstring>
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
@ -26,13 +26,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "simple_logger.hpp"
|
#include "simple_logger.hpp"
|
||||||
|
|
||||||
#include "osrm_exception.hpp"
|
|
||||||
|
|
||||||
#include <boost/assert.hpp>
|
|
||||||
|
|
||||||
#include <cstdio>
|
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
#define isatty _isatty
|
#define isatty _isatty
|
||||||
@ -40,10 +33,11 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#else
|
#else
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
#include <cstdio>
|
||||||
|
#include <iostream>
|
||||||
|
#include <mutex>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
#include <ostream>
|
|
||||||
#include <iostream>
|
|
||||||
#include <mutex>
|
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user