mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Convert Dictionary types to be templated classes
This has the fortunate side-effect of also making it so we can store the value objects as typed pointers, instead of void*.
This commit is contained in:
parent
15c0bd9b9d
commit
47e7fe2cd1
15 changed files with 1153 additions and 1284 deletions
|
@ -37,7 +37,6 @@ std::set<std::string> val_to_topic_set(zeek::Val* val)
|
|||
for ( const auto& te : *tbl )
|
||||
{
|
||||
auto k = te.GetHashKey();
|
||||
auto* v = te.GetValue<zeek::TableEntryVal*>();
|
||||
|
||||
auto index = val->AsTableVal()->RecreateIndex(*k);
|
||||
rval.emplace(index->Idx(0)->AsString()->CheckString());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue