mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Move Timer and PriorityQueue classes to namespaces
This commit is contained in:
parent
910aa77d95
commit
1c17700c48
33 changed files with 206 additions and 140 deletions
|
@ -2,10 +2,14 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "zeek-config.h"
|
||||
|
||||
#include <math.h>
|
||||
#include <stdint.h>
|
||||
|
||||
class PriorityQueue;
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(PriorityQueue, zeek::detail);
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
class PQ_Element {
|
||||
public:
|
||||
|
@ -95,3 +99,8 @@ protected:
|
|||
int max_heap_size = 0;
|
||||
uint64_t cumulative_num = 0;
|
||||
};
|
||||
|
||||
} // namespace zeek::detail
|
||||
|
||||
using PQ_Element [[deprecated("Remove in v4.1. Use zeek::detail::PQ_Element.")]] = zeek::detail::PQ_Element;
|
||||
using PriorityQueue [[deprecated("Remove in v4.1. Use zeek::detail::PriorityQueue.")]] = zeek::detail::PriorityQueue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue