mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
Deprecate TableVal IsSubsetOf and EqualTo taking Val*, use Val&
This commit is contained in:
parent
e01d2c1b37
commit
b85cfc6fe4
3 changed files with 18 additions and 10 deletions
12
src/Val.h
12
src/Val.h
|
@ -813,11 +813,19 @@ public:
|
|||
// given set. Note that comparisons are done using hash keys,
|
||||
// so errors can arise for compound sets such as sets-of-sets.
|
||||
// See https://bro-tracker.atlassian.net/browse/BIT-1949.
|
||||
bool EqualTo(const TableVal* v) const;
|
||||
bool EqualTo(const TableVal& v) const;
|
||||
|
||||
[[deprecated("Remove in v4.1. Pass TableVal& instead.")]]
|
||||
bool EqualTo(const TableVal* v) const
|
||||
{ return EqualTo(*v); }
|
||||
|
||||
// Returns true if this set is a subset (not necessarily proper)
|
||||
// of the given set.
|
||||
bool IsSubsetOf(const TableVal* v) const;
|
||||
bool IsSubsetOf(const TableVal& v) const;
|
||||
|
||||
[[deprecated("Remove in v4.1. Pass TableVal& instead.")]]
|
||||
bool IsSubsetOf(const TableVal* v) const
|
||||
{ return IsSubsetOf(*v); }
|
||||
|
||||
// Expands any lists in the index into multiple initializations.
|
||||
// Returns true if the initializations typecheck, false if not.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue