CBMC
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
prefix_filter.h
Go to the documentation of this file.
1/*******************************************************************\
2
3Module: Prefix Filtering
4
5Author: Peter Schrammel
6
7\*******************************************************************/
8
11
12#ifndef CPROVER_UTIL_PREFIX_FILTER_H
13#define CPROVER_UTIL_PREFIX_FILTER_H
14
15#include <string>
16#include <vector>
17
20{
21public:
23 std::vector<std::string> included_prefixes,
24 std::vector<std::string> excluded_prefixes);
25
30 bool operator()(const std::string &value) const;
31
32protected:
33 std::vector<std::string> included_prefixes;
34 std::vector<std::string> excluded_prefixes;
35};
36
37#endif // CPROVER_UTIL_PREFIX_FILTER_H
Provides filtering of strings vai inclusion/exclusion lists of prefixes.
std::vector< std::string > included_prefixes
bool operator()(const std::string &value) const
Return true iff value matches a prefix in included_prefixes, but doesn't match a prefix in excluded_p...
std::vector< std::string > excluded_prefixes