32 included_filter_.push_back(std::make_shared<GlobFilter>(pattern));
36 excluded_filter_.push_back(std::make_shared<GlobFilter>(pattern));
40 included_filter_.push_back(std::make_shared<RegexFilter>(regex));
44 excluded_filter_.push_back(std::make_shared<RegexFilter>(regex));
48 return (included_filter_.empty() ||
49 std::any_of(included_filter_.begin(), included_filter_.end(),
50 [&name](
const std::shared_ptr<INameFilter>& filter) {
51 return filter->check(name);
53 std::none_of(excluded_filter_.begin(), excluded_filter_.end(),
54 [&name](
const std::shared_ptr<INameFilter>& filter) {
55 return filter->check(name);
Class of information of cases in benchmarks.
void include_with_regex(const std::string ®ex)
Add a filter of benchmark names to include using regular expressions.
void include_with_glob(const std::string &pattern)
Add a filter of benchmark names to include using glob patterns.
void exclude_with_regex(const std::string ®ex)
Add a filter of benchmark names to exclude using regular expressions.
void exclude_with_glob(const std::string &pattern)
Add a filter of benchmark names to exclude using glob patterns.
auto check(const BenchmarkFullName &name) const -> bool
Check whether a name matches to this filter.
Definition of ComposedFilter class.
Definition of GlobFilter class.
Namespace of filters of benchmarks.
Namespace of stat_bench source codes.
Definition of RegexFilter class.