ocarina/include/filter.h
Anna Schumaker a50d8f6e0a database: Allow templated keys to the database index
This allows me to have a std::pair<> as a key if needed.

Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
2014-04-06 19:56:56 -04:00

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 */