Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion index/test/rtree/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ foreach(item IN ITEMS
rtree_move_pack
rtree_non_cartesian
rtree_values
rtree_with_strategies
#compile-fail rtree_values_invalid
)
boost_geometry_add_unit_test("index" ${item})
endforeach()

add_subdirectory(exceptions)
add_subdirectory(generated)
add_subdirectory(strategies)
2 changes: 1 addition & 1 deletion index/test/rtree/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
build-project exceptions ;
build-project interprocess ;
build-project generated ;
build-project strategies ;

test-suite boost-geometry-index-rtree
:
Expand All @@ -19,6 +20,5 @@ test-suite boost-geometry-index-rtree
[ run rtree_move_pack.cpp ]
[ run rtree_non_cartesian.cpp ]
[ run rtree_values.cpp ]
[ compile rtree_with_strategies.cpp ]
[ compile-fail rtree_values_invalid.cpp ]
;
15 changes: 15 additions & 0 deletions index/test/rtree/exceptions/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Boost.Geometry
# Copyright (c) 2025 Adam Wulkiewicz, Lodz, Poland.
# Copyright (c) 2024, Oracle and/or its affiliates.
# Contributed and/or modified by Vissarion Fysikopoulos, 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)

foreach(item IN ITEMS
rtree_exceptions_lin
rtree_exceptions_qua
rtree_exceptions_rst
)
boost_geometry_add_unit_test("index" ${item})
endforeach()
7 changes: 7 additions & 0 deletions index/test/rtree/generated/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Boost.Geometry
# Copyright (c) 2025 Adam Wulkiewicz, Lodz, Poland.
# 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)

add_subdirectory(b2d)
19 changes: 19 additions & 0 deletions index/test/rtree/generated/b2d/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Boost.Geometry
# Copyright (c) 2025 Adam Wulkiewicz, Lodz, Poland.
# 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)

foreach(item IN ITEMS
rtree_lin_add_b2d
rtree_lin_mod_b2d
rtree_lin_que_b2d
rtree_qua_add_b2d
rtree_qua_mod_b2d
rtree_qua_que_b2d
rtree_rst_add_b2d
rtree_rst_mod_b2d
rtree_rst_que_b2d
)
boost_geometry_add_unit_test("index" ${item})
endforeach()
19 changes: 19 additions & 0 deletions index/test/rtree/strategies/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Boost.Geometry
# Copyright (c) 2025 Adam Wulkiewicz, Lodz, Poland.
# 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)

foreach(item IN ITEMS
rtree_with_strategies_b_l
rtree_with_strategies_b_q
rtree_with_strategies_b_r
rtree_with_strategies_p_l
rtree_with_strategies_p_q
rtree_with_strategies_p_r
rtree_with_strategies_s_l
rtree_with_strategies_s_q
rtree_with_strategies_s_r
)
boost_geometry_add_unit_test("index" ${item})
endforeach()
20 changes: 20 additions & 0 deletions index/test/rtree/strategies/Jamfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Boost.Geometry Index
#
# Copyright (c) 2025 Adam Wulkiewicz, Lodz, Poland.
#
# 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)

test-suite boost-geometry-index-rtree-strategies
:
[ compile rtree_with_strategies_b_l.cpp ]
[ compile rtree_with_strategies_b_q.cpp ]
[ compile rtree_with_strategies_b_r.cpp ]
[ compile rtree_with_strategies_p_l.cpp ]
[ compile rtree_with_strategies_p_q.cpp ]
[ compile rtree_with_strategies_p_r.cpp ]
[ compile rtree_with_strategies_s_l.cpp ]
[ compile rtree_with_strategies_s_q.cpp ]
[ compile rtree_with_strategies_s_r.cpp ]
;
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)

#ifndef BOOST_GEOMETRY_INDEX_TEST_RTREE_STRATEGIES_HPP
#define BOOST_GEOMETRY_INDEX_TEST_RTREE_STRATEGIES_HPP

#include <vector>

#define BOOST_GEOMETRY_INDEX_DETAIL_EXPERIMENTAL_PREDICATES
Expand Down Expand Up @@ -132,7 +135,7 @@ void test_strategies()
}

template <typename Value, typename Params>
void test_params()
void test_rtree()
{
test_strategies<Value, Params, bg::strategies::index::cartesian<>>();
test_strategies<Value, Params, bg::strategies::cartesian<>>();
Expand All @@ -142,19 +145,4 @@ void test_params()
test_strategies<Value, Params, bg::strategies::geographic<>>();
}

template <typename Value>
void test_value()
{
test_params<Value, bgi::linear<4>>();
test_params<Value, bgi::quadratic<4>>();
test_params<Value, bgi::rstar<4>>();
}

int test_main(int, char* [])
{
test_value<point>();
test_value<box>();
test_value<segment>();

return 0;
}
#endif // BOOST_GEOMETRY_INDEX_TEST_RTREE_STRATEGIES_HPP
17 changes: 17 additions & 0 deletions index/test/rtree/strategies/rtree_with_strategies_b_l.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Boost.Geometry Index
// Unit Test

// Copyright (c) 2025 Adam Wulkiewicz, Lodz, Poland.

// 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)

#include "rtree_with_strategies.hpp"

int test_main(int, char* [])
{
test_rtree<box, bgi::linear<4>>();

return 0;
}
17 changes: 17 additions & 0 deletions index/test/rtree/strategies/rtree_with_strategies_b_q.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Boost.Geometry Index
// Unit Test

// Copyright (c) 2025 Adam Wulkiewicz, Lodz, Poland.

// 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)

#include "rtree_with_strategies.hpp"

int test_main(int, char* [])
{
test_rtree<box, bgi::quadratic<4>>();

return 0;
}
17 changes: 17 additions & 0 deletions index/test/rtree/strategies/rtree_with_strategies_b_r.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Boost.Geometry Index
// Unit Test

// Copyright (c) 2025 Adam Wulkiewicz, Lodz, Poland.

// 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)

#include "rtree_with_strategies.hpp"

int test_main(int, char* [])
{
test_rtree<box, bgi::rstar<4>>();

return 0;
}
17 changes: 17 additions & 0 deletions index/test/rtree/strategies/rtree_with_strategies_p_l.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Boost.Geometry Index
// Unit Test

// Copyright (c) 2025 Adam Wulkiewicz, Lodz, Poland.

// 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)

#include "rtree_with_strategies.hpp"

int test_main(int, char* [])
{
test_rtree<point, bgi::linear<4>>();

return 0;
}
17 changes: 17 additions & 0 deletions index/test/rtree/strategies/rtree_with_strategies_p_q.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Boost.Geometry Index
// Unit Test

// Copyright (c) 2025 Adam Wulkiewicz, Lodz, Poland.

// 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)

#include "rtree_with_strategies.hpp"

int test_main(int, char* [])
{
test_rtree<point, bgi::quadratic<4>>();

return 0;
}
17 changes: 17 additions & 0 deletions index/test/rtree/strategies/rtree_with_strategies_p_r.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Boost.Geometry Index
// Unit Test

// Copyright (c) 2025 Adam Wulkiewicz, Lodz, Poland.

// 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)

#include "rtree_with_strategies.hpp"

int test_main(int, char* [])
{
test_rtree<point, bgi::rstar<4>>();

return 0;
}
17 changes: 17 additions & 0 deletions index/test/rtree/strategies/rtree_with_strategies_s_l.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Boost.Geometry Index
// Unit Test

// Copyright (c) 2025 Adam Wulkiewicz, Lodz, Poland.

// 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)

#include "rtree_with_strategies.hpp"

int test_main(int, char* [])
{
test_rtree<segment, bgi::linear<4>>();

return 0;
}
17 changes: 17 additions & 0 deletions index/test/rtree/strategies/rtree_with_strategies_s_q.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Boost.Geometry Index
// Unit Test

// Copyright (c) 2025 Adam Wulkiewicz, Lodz, Poland.

// 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)

#include "rtree_with_strategies.hpp"

int test_main(int, char* [])
{
test_rtree<segment, bgi::quadratic<4>>();

return 0;
}
17 changes: 17 additions & 0 deletions index/test/rtree/strategies/rtree_with_strategies_s_r.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Boost.Geometry Index
// Unit Test

// Copyright (c) 2025 Adam Wulkiewicz, Lodz, Poland.

// 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)

#include "rtree_with_strategies.hpp"

int test_main(int, char* [])
{
test_rtree<segment, bgi::rstar<4>>();

return 0;
}
Loading