mirror of https://github.com/CGAL/cgal
rename clear_sequence_tree -> clear
This commit is contained in:
parent
37591853e3
commit
a2dc6f6ccc
|
|
@ -215,7 +215,7 @@ void run_benchmarks(CGAL::Random& rand, size_t numTrials, size_t numSources, siz
|
|||
sourcePoints.push_back(Face_location(sourceFace, sourceLocation));
|
||||
}
|
||||
|
||||
shortestPaths.clear_sequence_tree();
|
||||
shortestPaths.clear();
|
||||
shortestPaths.add_source_points(sourcePoints.begin(), sourcePoints.end());
|
||||
|
||||
timer.start();
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ public:
|
|||
\details An iterator becomes invalid if:
|
||||
- the corresponding point is removed (either with `Surface_mesh_shortest_path::remove_source_point()` or `Surface_mesh_shortest_path::remove_all_source_points()`).
|
||||
- the structure is re-built (triggered by a shortest path query or a call to `Surface_mesh_shortest_path::build_sequence_tree()`).
|
||||
- the structure is cleared (`Surface_mesh_shortest_path::clear_sequence_tree()`).
|
||||
- the structure is cleared (`Surface_mesh_shortest_path::clear()`).
|
||||
|
||||
Dereferencing this iterator yields a `const Surface_mesh_shortest_path::Face_location&`.
|
||||
|
||||
|
|
@ -2158,7 +2158,7 @@ public:
|
|||
\details No change to the internal shortest paths data structure occurs
|
||||
until either `Surface_mesh_shortest_path::build_sequence_tree()` or
|
||||
the first shortest path query is done.
|
||||
For a version which deletes all data immediately, use `clear_sequence_tree()` instead.
|
||||
For a version which deletes all data immediately, use `clear()` instead.
|
||||
*/
|
||||
void remove_all_source_points()
|
||||
{
|
||||
|
|
@ -2187,13 +2187,13 @@ public:
|
|||
}
|
||||
|
||||
/*!
|
||||
\brief Removes all source point from the sequence tree
|
||||
\brief Removes all data, the class is as if it was constructed.
|
||||
|
||||
\details The entire container is reset to its default state and any current
|
||||
sequence tree is deleted. For a version which defers deletion until
|
||||
\details All internal containers are cleared and the internal
|
||||
sequence tree is also cleared. For a version which defers deletion until
|
||||
it is necessary, use `Surface_mesh_shortest_path::remove_all_source_points()`.
|
||||
*/
|
||||
void clear_sequence_tree()
|
||||
void clear()
|
||||
{
|
||||
reset_algorithm();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ BOOST_AUTO_TEST_CASE( test_a_to_b_vs_b_t_a_distances )
|
|||
|
||||
//startToEndShortestPaths.m_debugOutput = true;
|
||||
|
||||
startToEndShortestPaths.clear_sequence_tree();
|
||||
startToEndShortestPaths.clear();
|
||||
startToEndShortestPaths.add_source_point(startVertex);
|
||||
startToEndShortestPaths.build_sequence_tree();
|
||||
|
||||
|
|
@ -132,7 +132,7 @@ BOOST_AUTO_TEST_CASE( test_a_to_b_vs_b_t_a_distances )
|
|||
|
||||
//endToStartShortestPaths.m_debugOutput = true;
|
||||
|
||||
endToStartShortestPaths.clear_sequence_tree();
|
||||
endToStartShortestPaths.clear();
|
||||
endToStartShortestPaths.add_source_point(endVertex);
|
||||
endToStartShortestPaths.build_sequence_tree();
|
||||
|
||||
|
|
@ -210,7 +210,7 @@ BOOST_AUTO_TEST_CASE( test_a_to_b_vs_b_t_a_distances )
|
|||
|
||||
//shortestPaths.m_debugOutput = true;
|
||||
|
||||
startToEndShortestPaths.clear_sequence_tree();
|
||||
startToEndShortestPaths.clear();
|
||||
startToEndShortestPaths.add_source_point(startFace, startLocation);
|
||||
startToEndShortestPaths.build_sequence_tree();
|
||||
|
||||
|
|
@ -219,7 +219,7 @@ BOOST_AUTO_TEST_CASE( test_a_to_b_vs_b_t_a_distances )
|
|||
CGAL::test::Edge_sequence_collector<Traits> startToEndCollector(vertexIndexMap, halfedgeIndexMap, faceIndexMap);
|
||||
startToEndShortestPaths.shortest_path_sequence_to_source_points(endFace, endLocation, startToEndCollector);
|
||||
|
||||
endToStartShortestPaths.clear_sequence_tree();
|
||||
endToStartShortestPaths.clear();
|
||||
endToStartShortestPaths.add_source_point(endFace, endLocation);
|
||||
endToStartShortestPaths.build_sequence_tree();
|
||||
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@ struct TestMeshProgramInstance
|
|||
std::cout << "STE(location): " << faceIndexMap[startLocation.first] << " , " << startLocation.second[0] << " " << startLocation.second[1] << " " << startLocation.second[2] << " " << std::endl;
|
||||
std::cout << "ETS(location): " << faceIndexMap[endLocation.first] << " , " << endLocation.second[0] << " " << endLocation.second[1] << " " << endLocation.second[2] << " " << std::endl;
|
||||
|
||||
startToEndShortestPaths.clear_sequence_tree();
|
||||
startToEndShortestPaths.clear();
|
||||
startToEndShortestPaths.add_source_point(startLocation.first, startLocation.second);
|
||||
startToEndShortestPaths.build_sequence_tree();
|
||||
|
||||
|
|
@ -210,7 +210,7 @@ struct TestMeshProgramInstance
|
|||
|
||||
FT startToEnd = startToEndShortestPaths.shortest_distance_to_source_points(endLocation.first, endLocation.second).first;
|
||||
|
||||
endToStartShortestPaths.clear_sequence_tree();
|
||||
endToStartShortestPaths.clear();
|
||||
endToStartShortestPaths.add_source_point(endLocation.first, endLocation.second);
|
||||
endToStartShortestPaths.build_sequence_tree();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue