Move Timer and PriorityQueue classes to namespaces

This commit is contained in:
Tim Wojtulewicz 2020-07-20 13:52:54 -07:00
parent 910aa77d95
commit 1c17700c48
33 changed files with 206 additions and 140 deletions

View file

@ -9,6 +9,8 @@
#include "Reporter.h"
#include "util.h"
namespace zeek::detail {
PriorityQueue::PriorityQueue(int initial_size) : max_heap_size(initial_size)
{
heap = new PQ_Element*[max_heap_size];
@ -135,3 +137,5 @@ void PriorityQueue::BubbleDown(int bin)
}
}
}
} // namespace zeek::detail