blob: d778097730a723ff7c065bef8544e9111947d00b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef LLMR_STYLE_FILTER_COMPARISON_PRIVATE
#define LLMR_STYLE_FILTER_COMPARISON_PRIVATE
#include "filter_comparison.hpp"
namespace llmr {
template <typename Extractor>
inline bool FilterComparison::compare(const Extractor &extractor) const {
const std::vector<Value> values = extractor.getValues(field);
// All instances are ANDed together.
for (const Instance &instance : instances) {
if (!instance.compare(values)) {
return false;
}
}
return true;
}
}
#endif
|