| 53 | } |
| 54 | |
| 55 | void bloom_filter::dump(Formatter *f) const |
| 56 | { |
| 57 | f->dump_unsigned("salt_count", salt_count_); |
| 58 | f->dump_unsigned("table_size", table_size_); |
| 59 | f->dump_unsigned("insert_count", insert_count_); |
| 60 | f->dump_unsigned("target_element_count", target_element_count_); |
| 61 | f->dump_unsigned("random_seed", random_seed_); |
| 62 | |
| 63 | f->open_array_section("salt_table"); |
| 64 | for (std::vector<bloom_type>::const_iterator i = salt_.begin(); i != salt_.end(); ++i) |
| 65 | f->dump_unsigned("salt", *i); |
| 66 | f->close_section(); |
| 67 | |
| 68 | f->open_array_section("bit_table"); |
| 69 | for (auto byte : bit_table_) { |
| 70 | f->dump_unsigned("byte", (unsigned)byte); |
| 71 | } |
| 72 | f->close_section(); |
| 73 | } |
| 74 | |
| 75 | std::list<bloom_filter> bloom_filter::generate_test_instances() |
| 76 | { |
nothing calls this directly
no test coverage detected