Added thirdparty: boost library

This commit is contained in:
Viacheslav Demydiuk
2024-01-06 19:55:56 +02:00
parent bf49f439e1
commit bccd1e7051
15683 changed files with 3239840 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
// Boost.Geometry
// Copyright (c) 2020-2021, Oracle and/or its affiliates.
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
// Licensed under the Boost Software License version 1.0.
// http://www.boost.org/users/license.html
#ifndef BOOST_GEOMETRY_STRATEGIES_INDEX_CARTESIAN_HPP
#define BOOST_GEOMETRY_STRATEGIES_INDEX_CARTESIAN_HPP
#include <boost/geometry/strategies/distance/cartesian.hpp>
#include <boost/geometry/strategies/index/services.hpp>
namespace boost { namespace geometry { namespace strategies { namespace index
{
template <typename CalculationType = void>
class cartesian
: public distance::cartesian<CalculationType>
{};
namespace services
{
template <typename Geometry>
struct default_strategy<Geometry, cartesian_tag>
{
using type = strategies::index::cartesian<>;
};
} // namespace services
}}}} // namespace boost::geometry::strategy::index
#endif // BOOST_GEOMETRY_STRATEGIES_INDEX_CARTESIAN_HPP
+56
View File
@@ -0,0 +1,56 @@
// Boost.Geometry
// Copyright (c) 2020-2021, Oracle and/or its affiliates.
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
// Licensed under the Boost Software License version 1.0.
// http://www.boost.org/users/license.html
#ifndef BOOST_GEOMETRY_STRATEGIES_INDEX_GEOGRAPHIC_HPP
#define BOOST_GEOMETRY_STRATEGIES_INDEX_GEOGRAPHIC_HPP
#include <boost/geometry/strategies/distance/geographic.hpp>
#include <boost/geometry/strategies/index/services.hpp>
namespace boost { namespace geometry { namespace strategies { namespace index
{
template
<
typename FormulaPolicy = strategy::andoyer,
typename Spheroid = srs::spheroid<double>,
typename CalculationType = void
>
class geographic
: public distance::geographic<FormulaPolicy, Spheroid, CalculationType>
{
typedef distance::geographic<FormulaPolicy, Spheroid, CalculationType> base_t;
public:
geographic() = default;
explicit geographic(Spheroid const& spheroid)
: base_t(spheroid)
{}
};
namespace services
{
template <typename Geometry>
struct default_strategy<Geometry, geographic_tag>
{
using type = strategies::index::geographic<>;
};
} // namespace services
}}}} // namespace boost::geometry::strategy::index
#endif // BOOST_GEOMETRY_STRATEGIES_INDEX_GEOGRAPHIC_HPP
+50
View File
@@ -0,0 +1,50 @@
// Boost.Geometry
// Copyright (c) 2020, Oracle and/or its affiliates.
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
// Licensed under the Boost Software License version 1.0.
// http://www.boost.org/users/license.html
#ifndef BOOST_GEOMETRY_STRATEGIES_INDEX_SERVICES_HPP
#define BOOST_GEOMETRY_STRATEGIES_INDEX_SERVICES_HPP
#include <boost/geometry/core/cs.hpp>
#include <boost/geometry/core/static_assert.hpp>
namespace boost { namespace geometry
{
namespace strategies { namespace index { namespace services
{
template
<
typename Geometry,
typename CSTag = typename geometry::cs_tag<Geometry>::type
>
struct default_strategy
{
BOOST_GEOMETRY_STATIC_ASSERT_FALSE(
"Not implemented for this coordinate system.",
Geometry, CSTag);
};
template <typename Strategy>
struct strategy_converter
{
BOOST_GEOMETRY_STATIC_ASSERT_FALSE(
"Not implemented for this Strategy.",
Strategy);
};
}}} // namespace strategy::index::services
}} // namespace boost::geometry
#endif // BOOST_GEOMETRY_STRATEGIES_INDEX_SERVICES_HPP
+81
View File
@@ -0,0 +1,81 @@
// Boost.Geometry
// Copyright (c) 2020-2021, Oracle and/or its affiliates.
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
// Licensed under the Boost Software License version 1.0.
// http://www.boost.org/users/license.html
#ifndef BOOST_GEOMETRY_STRATEGIES_INDEX_SPHERICAL_HPP
#define BOOST_GEOMETRY_STRATEGIES_INDEX_SPHERICAL_HPP
#include <boost/geometry/strategies/distance/spherical.hpp>
#include <boost/geometry/strategies/index/services.hpp>
namespace boost { namespace geometry
{
namespace strategies { namespace index
{
#ifndef DOXYGEN_NO_DETAIL
namespace detail
{
template <typename RadiusTypeOrSphere, typename CalculationType>
class spherical
: public strategies::distance::detail::spherical<RadiusTypeOrSphere, CalculationType>
{
using base_t = strategies::distance::detail::spherical<RadiusTypeOrSphere, CalculationType>;
public:
spherical() = default;
template <typename RadiusOrSphere>
explicit spherical(RadiusOrSphere const& radius_or_sphere)
: base_t(radius_or_sphere)
{}
};
} // namespace detail
#endif // DOXYGEN_NO_DETAIL
template <typename CalculationType = void>
class spherical
: public strategies::index::detail::spherical<void, CalculationType>
{};
namespace services
{
template <typename Geometry>
struct default_strategy<Geometry, spherical_tag>
{
using type = strategies::index::spherical<>;
};
template <typename Geometry>
struct default_strategy<Geometry, spherical_equatorial_tag>
{
using type = strategies::index::spherical<>;
};
template <typename Geometry>
struct default_strategy<Geometry, spherical_polar_tag>
{
using type = strategies::index::spherical<>;
};
} // namespace services
}}}} // namespace boost::geometry::strategy::index
#endif // BOOST_GEOMETRY_STRATEGIES_INDEX_SPHERICAL_HPP