stabilize build system: depends, installer, boost/bdb fixes, cross targets groundwork
This commit is contained in:
@@ -0,0 +1,90 @@
|
||||
// Boost.Geometry
|
||||
|
||||
// Copyright (c) 2017, Oracle and/or its affiliates.
|
||||
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
|
||||
|
||||
// Use, modification and distribution is subject to the Boost Software License,
|
||||
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#ifndef BOOST_GEOMETRY_STRATEGIES_DISJOINT_HPP
|
||||
#define BOOST_GEOMETRY_STRATEGIES_DISJOINT_HPP
|
||||
|
||||
|
||||
#include <boost/mpl/assert.hpp>
|
||||
#include <boost/type_traits/is_same.hpp>
|
||||
|
||||
#include <boost/geometry/core/cs.hpp>
|
||||
#include <boost/geometry/core/point_type.hpp>
|
||||
#include <boost/geometry/core/topological_dimension.hpp>
|
||||
|
||||
#include <boost/geometry/strategies/covered_by.hpp>
|
||||
#include <boost/geometry/strategies/default_strategy.hpp>
|
||||
#include <boost/geometry/strategies/relate.hpp>
|
||||
|
||||
|
||||
namespace boost { namespace geometry { namespace strategy { namespace disjoint
|
||||
{
|
||||
|
||||
#ifndef DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
|
||||
namespace services
|
||||
{
|
||||
|
||||
template
|
||||
<
|
||||
typename Geometry1,
|
||||
typename Geometry2,
|
||||
typename Tag1 = typename geometry::tag<Geometry1>::type,
|
||||
typename Tag2 = typename geometry::tag<Geometry2>::type,
|
||||
int TopDim1 = geometry::topological_dimension<Geometry1>::value,
|
||||
int TopDim2 = geometry::topological_dimension<Geometry2>::value
|
||||
>
|
||||
struct default_strategy
|
||||
: relate::services::default_strategy
|
||||
<
|
||||
Geometry1, Geometry2
|
||||
>
|
||||
{};
|
||||
|
||||
template <typename Point, typename Box>
|
||||
struct default_strategy<Point, Box, point_tag, box_tag, 0, 2>
|
||||
: strategy::covered_by::services::default_strategy<Point, Box>
|
||||
{};
|
||||
|
||||
template <typename Box, typename Point>
|
||||
struct default_strategy<Box, Point, box_tag, point_tag, 2, 0>
|
||||
: strategy::covered_by::services::default_strategy<Point, Box>
|
||||
{};
|
||||
|
||||
template <typename MultiPoint, typename Box>
|
||||
struct default_strategy<MultiPoint, Box, multi_point_tag, box_tag, 0, 2>
|
||||
: strategy::covered_by::services::default_strategy
|
||||
<
|
||||
typename point_type<MultiPoint>::type,
|
||||
Box
|
||||
>
|
||||
{};
|
||||
|
||||
template <typename Box, typename MultiPoint>
|
||||
struct default_strategy<Box, MultiPoint, box_tag, multi_point_tag, 2, 0>
|
||||
: strategy::covered_by::services::default_strategy
|
||||
<
|
||||
typename point_type<MultiPoint>::type,
|
||||
Box
|
||||
>
|
||||
{};
|
||||
|
||||
template <typename Box1, typename Box2>
|
||||
struct default_strategy<Box1, Box2, box_tag, box_tag, 2, 2>
|
||||
{
|
||||
// dummy strategy which will be ignored
|
||||
typedef geometry::default_strategy type;
|
||||
};
|
||||
|
||||
} // namespace services
|
||||
#endif // DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
|
||||
|
||||
}}}} // namespace boost::geometry::strategy::disjoint
|
||||
|
||||
|
||||
#endif // BOOST_GEOMETRY_STRATEGIES_DISJOINT_HPP
|
||||
Reference in New Issue
Block a user