Skip to content

Commit f2509db

Browse files
committed
Merge pull request #11 from mborger/storage
Add ability to retrieve underlying bloom filter storage.
2 parents 6caacfa + 8274061 commit f2509db

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/bf/bloom_filter/basic.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,9 @@ void basic_bloom_filter::swap(basic_bloom_filter& other)
9696
swap(bits_, other.bits_);
9797
}
9898

99+
bitvector const& basic_bloom_filter::storage() const
100+
{
101+
return bits_;
102+
}
103+
99104
} // namespace bf

src/bf/bloom_filter/basic.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ class basic_bloom_filter : public bloom_filter
7979
/// @param other The other basic Bloom filter.
8080
void swap(basic_bloom_filter& other);
8181

82+
/// Returns the underlying storage of the Bloom filter.
83+
bitvector const& storage() const;
84+
8285
private:
8386
hasher hasher_;
8487
bitvector bits_;

0 commit comments

Comments
 (0)