Manages membership queries for the seqan3::interleaved_bloom_filter.
More...
#include <seqan3/search/dream_index/interleaved_bloom_filter.hpp>
template<
data_layout data_layout_mode_ = data_layout::uncompressed>
class seqan3::interleaved_bloom_filter< data_layout_mode_ >::membership_agent_type
Manages membership queries for the seqan3::interleaved_bloom_filter.
- Attention
- Calling seqan3::interleaved_bloom_filter::increase_bin_number_to on
ibf
invalidates the membership_agent.
Example
int main()
{
auto agent = ibf.membership_agent();
agent = ibf.membership_agent();
}
The IBF binning directory. A data structure that efficiently answers set-membership queries for multi...
Definition interleaved_bloom_filter.hpp:134
Provides seqan3::interleaved_bloom_filter.
A strong type that represents the number of bins for the seqan3::interleaved_bloom_filter.
Definition interleaved_bloom_filter.hpp:36
A strong type that represents the number of bits for each bin in the seqan3::interleaved_bloom_filter...
Definition interleaved_bloom_filter.hpp:43
A strong type that represents the number of hash functions for the seqan3::interleaved_bloom_filter.
Definition interleaved_bloom_filter.hpp:50
◆ bulk_contains() [1/2]
template<
data_layout data_layout_mode_ = data_layout::uncompressed>
Determines set membership of a given value.
- Parameters
-
[in] | value | The raw value to process. |
- Attention
- The result of this function must always be bound via reference, e.g.
auto &
, to prevent copying.
-
Sequential calls to this function invalidate the previously returned reference.
Example
int main()
{
auto agent = ibf.membership_agent();
auto & result = agent.bulk_contains(712);
agent = ibf.membership_agent();
}
Provides seqan3::debug_stream and related types.
debug_stream_type debug_stream
A global instance of seqan3::debug_stream_type.
Definition debug_stream.hpp:40
A strong type that represents the bin index for the seqan3::interleaved_bloom_filter.
Definition interleaved_bloom_filter.hpp:57
Thread safety
Concurrent invocations of this function are not thread safe, please create a seqan3::interleaved_bloom_filter::membership_agent_type for each thread.
◆ bulk_contains() [2/2]
template<
data_layout data_layout_mode_ = data_layout::uncompressed>
Determines set membership of a given value.
- Parameters
-
[in] | value | The raw value to process. |
- Attention
- The result of this function must always be bound via reference, e.g.
auto &
, to prevent copying.
-
Sequential calls to this function invalidate the previously returned reference.
Example
int main()
{
auto agent = ibf.membership_agent();
auto & result = agent.bulk_contains(712);
agent = ibf.membership_agent();
}
Thread safety
Concurrent invocations of this function are not thread safe, please create a seqan3::interleaved_bloom_filter::membership_agent_type for each thread.
The documentation for this class was generated from the following file: