a50d8f6e0a
This allows me to have a std::pair<> as a key if needed. Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
24 lines
427 B
C++
24 lines
427 B
C++
/*
|
|
* Copyright 2013 (c) Anna Schumaker.
|
|
*/
|
|
#ifndef OCARINA_FILTER_H
|
|
#define OCARINA_FILTER_H
|
|
|
|
#include <database.h>
|
|
#include <string>
|
|
|
|
namespace filter {
|
|
|
|
void add(const std::string &, unsigned int);
|
|
void search(const std::string &, std::set<unsigned int> &);
|
|
|
|
void print_cache_stats();
|
|
|
|
#ifdef CONFIG_TEST
|
|
Database<IndexEntry, const std::string> &get_index();
|
|
#endif /* CONFIG_TEST */
|
|
|
|
};
|
|
|
|
#endif /* OCARINA_FILTER_H */
|