| 39 | struct ExtValueOperatorIn { |
| 40 | static const char* name; |
| 41 | static Reference<IPredicate> toPredicate(std::string const& unencoded_path, bson::BSONElement const& element) { |
| 42 | std::vector<Reference<IPredicate>> terms; |
| 43 | for (auto it = element.Obj().begin(); it.more();) { |
| 44 | auto el = it.next(); |
| 45 | terms.push_back(eq_predicate(el, unencoded_path)); |
| 46 | } |
| 47 | return ref(new OrPredicate(terms)); |
| 48 | } |
| 49 | }; |
| 50 | REGISTER_VALUE_OPERATOR(ExtValueOperatorIn, "$in"); |
| 51 |
nothing calls this directly
no test coverage detected