#include <PSync/detail/bloom-filter.hpp>
|
| BloomFilter ()=default |
|
| BloomFilter (unsigned int projected_element_count, double false_positive_probability) |
|
| BloomFilter (unsigned int projected_element_count, double false_positive_probability, const ndn::name::Component &bfName) |
|
void | appendToName (ndn::Name &name) const |
| Append our bloom filter to the given name. More...
|
|
void | clear () |
|
bool | contains (const ndn::Name &key) const |
|
void | insert (const ndn::Name &key) |
|
Definition at line 59 of file bloom-filter.hpp.
◆ BloomFilter() [1/3]
psync::detail::BloomFilter::BloomFilter |
( |
| ) |
|
|
default |
◆ BloomFilter() [2/3]
psync::detail::BloomFilter::BloomFilter |
( |
unsigned int |
projected_element_count, |
|
|
double |
false_positive_probability |
|
) |
| |
◆ BloomFilter() [3/3]
psync::detail::BloomFilter::BloomFilter |
( |
unsigned int |
projected_element_count, |
|
|
double |
false_positive_probability, |
|
|
const ndn::name::Component & |
bfName |
|
) |
| |
◆ appendToName()
void psync::detail::BloomFilter::appendToName |
( |
ndn::Name & |
name | ) |
const |
Append our bloom filter to the given name.
Append the count and false positive probability along with the bloom filter so that producer (PartialProducer) can construct a copy.
- Parameters
-
name | append bloom filter to this name |
Definition at line 237 of file bloom-filter.cpp.
◆ clear()
void psync::detail::BloomFilter::clear |
( |
| ) |
|
◆ contains()
bool psync::detail::BloomFilter::contains |
( |
const ndn::Name & |
key | ) |
const |
◆ insert()
void psync::detail::BloomFilter::insert |
( |
const ndn::Name & |
key | ) |
|
◆ operator!=
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const BloomFilter & |
bf |
|
) |
| |
|
friend |
◆ operator==