mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
Move Dictionary/PDict, List/PList, and Queue/PQueue to zeek namespace
This commit is contained in:
parent
4a1e17f4e0
commit
464efbe66a
30 changed files with 172 additions and 138 deletions
|
@ -35,7 +35,7 @@ HashKey* TopkVal::GetHash(Val* v) const
|
|||
|
||||
TopkVal::TopkVal(uint64_t arg_size) : OpaqueVal(topk_type)
|
||||
{
|
||||
elementDict = new PDict<Element>;
|
||||
elementDict = new zeek::PDict<Element>;
|
||||
elementDict->SetDeleteFunc(topk_element_hash_delete_func);
|
||||
size = arg_size;
|
||||
numElements = 0;
|
||||
|
@ -45,7 +45,7 @@ TopkVal::TopkVal(uint64_t arg_size) : OpaqueVal(topk_type)
|
|||
|
||||
TopkVal::TopkVal() : OpaqueVal(topk_type)
|
||||
{
|
||||
elementDict = new PDict<Element>;
|
||||
elementDict = new zeek::PDict<Element>;
|
||||
elementDict->SetDeleteFunc(topk_element_hash_delete_func);
|
||||
size = 0;
|
||||
numElements = 0;
|
||||
|
|
|
@ -166,7 +166,7 @@ private:
|
|||
zeek::TypePtr type;
|
||||
CompositeHash* hash;
|
||||
std::list<Bucket*> buckets;
|
||||
PDict<Element>* elementDict;
|
||||
zeek::PDict<Element>* elementDict;
|
||||
uint64_t size; // how many elements are we tracking?
|
||||
uint64_t numElements; // how many elements do we have at the moment
|
||||
bool pruned; // was this data structure pruned?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue