mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 20:48:21 +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
|
@ -272,7 +272,7 @@ bool Manager::CreateStream(Stream* info, RecordVal* description)
|
|||
for ( const auto& icte : *info_config_table )
|
||||
{
|
||||
auto k = icte.GetHashKey();
|
||||
auto* v = icte.GetValue<TableEntryVal*>();
|
||||
auto* v = icte.value;
|
||||
|
||||
auto index = info->config->RecreateIndex(*k);
|
||||
string key = index->Idx(0)->AsString()->CheckString();
|
||||
|
@ -1402,7 +1402,7 @@ void Manager::EndCurrentSend(ReaderFrontend* reader)
|
|||
for ( auto it = stream->lastDict->begin_robust(); it != stream->lastDict->end_robust(); ++it )
|
||||
{
|
||||
auto lastDictIdxKey = it->GetHashKey();
|
||||
InputHash* ih = it->GetValue<InputHash*>();
|
||||
InputHash* ih = it->value;
|
||||
|
||||
ValPtr val;
|
||||
ValPtr predidx;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue