| 73 | }; |
| 74 | |
| 75 | static const type* Get(const std::string& function) { |
| 76 | static std::unordered_map<std::string, type> map{ |
| 77 | {"equal", EQUAL}, {"not_equal", NOT_EQUAL}, |
| 78 | {"less", LESS}, {"less_equal", LESS_EQUAL}, |
| 79 | {"greater", GREATER}, {"greater_equal", GREATER_EQUAL}, |
| 80 | }; |
| 81 | |
| 82 | auto it = map.find(function); |
| 83 | return it != map.end() ? &it->second : nullptr; |
| 84 | } |
| 85 | |
| 86 | static const type* Get(const Expression& expr) { |
| 87 | if (auto call = expr.call()) { |
no test coverage detected