mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 15:18:20 +00:00
Merge remote-tracking branch 'origin/topic/matthias/bloom-filter' into topic/robin/bloom-filter-merge
* origin/topic/matthias/bloom-filter: Support emptiness check on Bloom filters. Refactor Bloom filter merging. Add bloomfilter_clear() BiF.
This commit is contained in:
commit
23b352b702
11 changed files with 270 additions and 76 deletions
|
@ -463,6 +463,17 @@ bool BitVector::Empty() const
|
|||
return bits.empty();
|
||||
}
|
||||
|
||||
bool BitVector::AllZero() const
|
||||
{
|
||||
for ( size_t i = 0; i < bits.size(); ++i )
|
||||
{
|
||||
if ( bits[i] )
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
BitVector::size_type BitVector::FindFirst() const
|
||||
{
|
||||
return find_from(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue