MCPcopy Create free account
hub / github.com/comaps/comaps / CheckInRect

Function CheckInRect

libs/geometry/geometry_tests/tree_test.cpp:108–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106namespace
107{
108void CheckInRect(R const * arr, size_t count, R const & searchR, size_t expected)
109{
110 Tree theTree;
111
112 for (size_t i = 0; i < count; ++i)
113 theTree.Add(arr[i], arr[i]);
114
115 vector<R> test;
116 theTree.ForEachInRect(searchR, base::MakeBackInsertFunctor(test));
117
118 TEST_EQUAL(test.size(), expected, ());
119}
120} // namespace
121
122UNIT_TEST(Tree4D_ForEachInRect)

Callers 1

UNIT_TESTFunction · 0.85

Calls 4

MakeBackInsertFunctorFunction · 0.85
AddMethod · 0.45
ForEachInRectMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected