|
C++ Bloom Filter Library
release
|
#include <iostream>#include <cstddef>#include <cstdio>#include <fstream>#include <iterator>#include <algorithm>#include <vector>#include <deque>#include <set>#include <string>#include "bloom_filter.hpp"Go to the source code of this file.
Functions | |
| bool | load_word_list (int argc, char *argv[], std::vector< std::string > &word_list) |
| template<class T , class Allocator , template< class, class > class Container> | |
| bool | read_file (const std::string &file_name, Container< T, Allocator > &c) |
| std::string | uppercase (std::string str) |
| std::string | reverse (std::string str) |
| void | generate_outliers (const std::vector< std::string > &word_list, std::deque< std::string > &outliers) |
| void | purify_outliers (const std::vector< std::string > &word_list, std::deque< std::string > &outliers) |
| int | main (int argc, char *argv[]) |
| void generate_outliers | ( | const std::vector< std::string > & | word_list, |
| std::deque< std::string > & | outliers | ||
| ) |
Definition at line 277 of file bloom_filter_example02.cpp.
References purify_outliers(), and reverse().
Referenced by main().
| bool load_word_list | ( | int | argc, |
| char * | argv[], | ||
| std::vector< std::string > & | word_list | ||
| ) |
Definition at line 192 of file bloom_filter_example02.cpp.
References read_file().
Referenced by main().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 61 of file bloom_filter_example02.cpp.
References bits_per_char, bloom_parameters::compute_optimal_parameters(), bloom_filter::contains(), bloom_filter::contains_all(), bloom_parameters::false_positive_probability, generate_outliers(), bloom_filter::insert(), load_word_list(), bloom_parameters::projected_element_count, bloom_parameters::random_seed, and bloom_filter::size().
| void purify_outliers | ( | const std::vector< std::string > & | word_list, |
| std::deque< std::string > & | outliers | ||
| ) |
Definition at line 381 of file bloom_filter_example02.cpp.
Referenced by generate_outliers().
| bool read_file | ( | const std::string & | file_name, |
| Container< T, Allocator > & | c | ||
| ) |
Definition at line 239 of file bloom_filter_example02.cpp.
References uppercase().
Referenced by load_word_list().
| std::string reverse | ( | std::string | str | ) |
Definition at line 270 of file bloom_filter_example02.cpp.
Referenced by generate_outliers().
| std::string uppercase | ( | std::string | str | ) |
Definition at line 260 of file bloom_filter_example02.cpp.
Referenced by read_file().
1.8.13