mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 09:08:20 +00:00
Added TableVal::ToMap to retrieve a table's entire contents as a unordered_map
This commit is contained in:
parent
4aa73f6f7d
commit
6e8baafeb9
2 changed files with 21 additions and 0 deletions
|
@ -895,6 +895,11 @@ public:
|
|||
// with non-composite index type).
|
||||
ListValPtr ToPureListVal() const;
|
||||
|
||||
// Returns a map of index-to-value's. The value is nil for sets.
|
||||
// It's up to the caller to Unref() the index Val* when done
|
||||
// with it.
|
||||
std::unordered_map<Val*, ValPtr> ToMap() const;
|
||||
|
||||
void SetAttrs(detail::AttributesPtr attrs);
|
||||
|
||||
const detail::AttrPtr& GetAttr(detail::AttrTag t) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue