PGROUTING  3.1
bline.hpp
Go to the documentation of this file.
1 /*PGR-GNU*****************************************************************
2 File: bline.hpp
3 
4 Copyright (c) 2019 Celia Virginia Vergara Castillo
5 vicky_vergara@hotmail.com
6 
7 ------
8 
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
13 
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 
23  ********************************************************************PGR-GNU*/
24 
27 #ifndef INCLUDE_CPP_COMMON_BLINE_HPP_
28 #define INCLUDE_CPP_COMMON_BLINE_HPP_
29 #pragma once
30 
31 #if Boost_VERSION_MACRO >= 105600
32 #include <boost/geometry/geometries/multi_point.hpp>
33 #include <boost/geometry/geometries/linestring.hpp>
34 #include <boost/geometry/geometries/multi_linestring.hpp>
35 #include <boost/geometry/geometries/polygon.hpp>
36 #include <boost/geometry/geometries/multi_polygon.hpp>
37 #else
38 #include <boost/bgeometry/geometries/multi_point.hpp>
39 #include <boost/bgeometry/geometries/linestring.hpp>
40 #include <boost/bgeometry/geometries/multi_linestring.hpp>
41 #include <boost/bgeometry/geometries/polygon.hpp>
42 #include <boost/bgeometry/geometries/multi_polygon.hpp>
43 #endif
44 
45 namespace bg = boost::geometry;
46 namespace pgrouting {
47 
48 using Bpoint = bg::model::d2::point_xy<double>;
49 using Bpoints = bg::model::multi_point<Bpoint>;
50 
51 using Bline = bg::model::linestring<Bpoint>;
52 using Blines = bg::model::multi_linestring<Bline>;
53 
54 using Bpoly = bg::model::polygon<Bpoint>;
55 using Bpolys = bg::model::multi_polygon<Bpoly>;
56 
57 
58 } // namespace pgrouting
59 
60 #endif // INCLUDE_CPP_COMMON_BLINE_HPP_
bg::model::multi_linestring< Bline > Blines
Definition: bline.hpp:52
bg::model::polygon< Bpoint > Bpoly
Definition: bline.hpp:54
bg::model::multi_point< Bpoint > Bpoints
Definition: bline.hpp:49
bg::model::linestring< Bpoint > Bline
Definition: bline.hpp:51
bg::model::d2::point_xy< double > Bpoint
Definition: bline.hpp:48
Book keeping class for swapping orders between vehicles.
bg::model::multi_polygon< Bpoly > Bpolys
Definition: bline.hpp:55