mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 09:38:19 +00:00
Implement standard-library-compatible iterators for Dictionary
This commit is contained in:
parent
9e9998c6e5
commit
892124378c
16 changed files with 834 additions and 254 deletions
|
@ -14,6 +14,7 @@
|
|||
#include "zeek/Notifier.h"
|
||||
#include "zeek/Reporter.h"
|
||||
#include "zeek/net_util.h"
|
||||
#include "zeek/Dict.h"
|
||||
|
||||
// We have four different port name spaces: TCP, UDP, ICMP, and UNKNOWN.
|
||||
// We distinguish between them based on the bits specified in the *_PORT_MASK
|
||||
|
@ -26,13 +27,10 @@
|
|||
#define ICMP_PORT_MASK 0x30000
|
||||
|
||||
namespace zeek {
|
||||
template<typename T> class PDict;
|
||||
class String;
|
||||
}
|
||||
template<typename T> using PDict [[deprecated("Remove in v4.1. Use zeek::PDict instead.")]] = zeek::PDict<T>;
|
||||
using BroString [[deprecated("Remove in v4.1. Use zeek::String instead.")]] = zeek::String;
|
||||
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(IterCookie, zeek);
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(Frame, zeek::detail);
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(Func, zeek);
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(IPAddr, zeek);
|
||||
|
@ -1107,7 +1105,7 @@ protected:
|
|||
detail::ExprPtr expire_time;
|
||||
detail::ExprPtr expire_func;
|
||||
TableValTimer* timer;
|
||||
IterCookie* expire_cookie;
|
||||
RobustDictIterator* expire_iterator;
|
||||
detail::PrefixTable* subnets;
|
||||
ValPtr def_val;
|
||||
detail::ExprPtr change_func;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue