-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: include changes and tests changes
- Loading branch information
1 parent
cda90e5
commit 7b53735
Showing
22 changed files
with
566 additions
and
77 deletions.
There are no files selected for viewing
69 changes: 69 additions & 0 deletions
69
include/boost/geometry/algorithms/detail/overlay/debug_traverse.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
// Boost.Geometry (aka GGL, Generic Geometry Library) | ||
|
||
// Copyright (c) 2007-2024 Barend Gehrels, Amsterdam, the Netherlands. | ||
// Copyright (c) 2023-2024 Adam Wulkiewicz, Lodz, Poland. | ||
|
||
// This file was modified by Oracle on 2017-2024. | ||
// Modifications copyright (c) 2017-2024 Oracle and/or its affiliates. | ||
// Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle | ||
// 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_ALGORITHMS_DETAIL_DEBUG_TRAVERSE_HPP | ||
#define BOOST_GEOMETRY_ALGORITHMS_DETAIL_DEBUG_TRAVERSE_HPP | ||
|
||
#include <boost/geometry/algorithms/detail/overlay/turn_info.hpp> | ||
|
||
#if defined(BOOST_GEOMETRY_DEBUG_INTERSECTION) \ | ||
|| defined(BOOST_GEOMETRY_OVERLAY_REPORT_WKT) \ | ||
|| defined(BOOST_GEOMETRY_DEBUG_TRAVERSE) | ||
# include <string> | ||
# include <boost/geometry/algorithms/detail/overlay/debug_turn_info.hpp> | ||
# include <boost/geometry/io/wkt/wkt.hpp> | ||
#endif | ||
|
||
namespace boost { namespace geometry | ||
{ | ||
|
||
#ifndef DOXYGEN_NO_DETAIL | ||
namespace detail { namespace overlay | ||
{ | ||
|
||
template <typename Turn, typename Operation> | ||
#ifdef BOOST_GEOMETRY_DEBUG_TRAVERSE | ||
inline void debug_traverse(Turn const& turn, Operation op, | ||
std::string const& header, bool condition = true) | ||
{ | ||
if (! condition) | ||
{ | ||
return; | ||
} | ||
std::cout << " " << header | ||
<< " at " << op.seg_id | ||
<< " meth: " << method_char(turn.method) | ||
<< " op: " << operation_char(op.operation) | ||
<< " of: " << operation_char(turn.operations[0].operation) | ||
<< operation_char(turn.operations[1].operation) | ||
<< " " << geometry::wkt(turn.point) | ||
<< std::endl; | ||
|
||
if (boost::contains(header, "Finished")) | ||
{ | ||
std::cout << std::endl; | ||
} | ||
} | ||
#else | ||
inline void debug_traverse(Turn const& , Operation, const char*, bool = true) | ||
{ | ||
} | ||
#endif | ||
|
||
}} // namespace detail::overlay | ||
#endif // DOXYGEN_NO_DETAIL | ||
|
||
}} // namespace boost::geometry | ||
|
||
#endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_DEBUG_TRAVERSE_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.