[Bf-blender-cvs] [e56e4896db8] temp-inplace-priority-queue: cleanup
Jacques Lucke
noreply at git.blender.org
Tue Dec 15 23:03:40 CET 2020
Commit: e56e4896db841559bab413b1500e62d81bbaa2a9
Author: Jacques Lucke
Date: Tue Dec 15 20:39:37 2020 +0100
Branches: temp-inplace-priority-queue
https://developer.blender.org/rBe56e4896db841559bab413b1500e62d81bbaa2a9
cleanup
===================================================================
M source/blender/blenlib/BLI_inplace_priority_queue.hh
M source/blender/blenlib/tests/BLI_inplace_priority_queue_test.cc
===================================================================
diff --git a/source/blender/blenlib/BLI_inplace_priority_queue.hh b/source/blender/blenlib/BLI_inplace_priority_queue.hh
index b25c1cfccd2..9544dd5b726 100644
--- a/source/blender/blenlib/BLI_inplace_priority_queue.hh
+++ b/source/blender/blenlib/BLI_inplace_priority_queue.hh
@@ -46,6 +46,11 @@ template<typename DataArray> class InplacePriorityQueue {
heap_size_ = final_heap_size;
}
+ std::string all_to_dot() const
+ {
+ return this->partial_to_dot(this->get_data_size());
+ }
+
std::string partial_to_dot(const int size) const
{
dot::DirectedGraph digraph;
diff --git a/source/blender/blenlib/tests/BLI_inplace_priority_queue_test.cc b/source/blender/blenlib/tests/BLI_inplace_priority_queue_test.cc
index fae9acb389f..c955a28f030 100644
--- a/source/blender/blenlib/tests/BLI_inplace_priority_queue_test.cc
+++ b/source/blender/blenlib/tests/BLI_inplace_priority_queue_test.cc
@@ -36,7 +36,7 @@ TEST(inplace_priority_queue, BuildSmall)
InplacePriorityQueue priority_queue{data};
priority_queue.build();
- std::cout << priority_queue.partial_to_dot(data.weights.size()) << "\n";
+ std::cout << priority_queue.all_to_dot() << "\n";
}
} // namespace blender::tests
More information about the Bf-blender-cvs
mailing list