| 44 | REGISTER_COMMAND(ExtValueOperator, Op, name, toPredicate); |
| 45 | |
| 46 | struct ExtBoolOperator |
| 47 | : IDispatched<ExtBoolOperator, std::string, std::function<Reference<IPredicate>(bson::BSONObj const&)>> { |
| 48 | static Reference<IPredicate> toPredicate(std::string const& op, bson::BSONObj const& query) { |
| 49 | return dispatch(op)(query); |
| 50 | } |
| 51 | }; |
| 52 | |
| 53 | #define REGISTER_BOOL_OPERATOR(Op, Key) \ |
| 54 | const char* Op::name = Key; \ |
nothing calls this directly
no outgoing calls
no test coverage detected