| 55 | REGISTER_COMMAND(ExtBoolOperator, Op, name, toPredicate); |
| 56 | |
| 57 | struct ExtUpdateOperator |
| 58 | : IDispatched< |
| 59 | ExtUpdateOperator, |
| 60 | std::string, |
| 61 | std::function<Future<Void>(Reference<IReadWriteContext>, StringRef const&, bson::BSONElement const&)>> { |
| 62 | static Future<Void> execute(std::string const& op, |
| 63 | Reference<IReadWriteContext> cx, |
| 64 | StringRef const& path, |
| 65 | bson::BSONElement const& element) { |
| 66 | return dispatch(op)(cx, path, element); |
| 67 | } |
| 68 | }; |
| 69 | |
| 70 | #define REGISTER_UPDATE_OPERATOR(Op, Key) \ |
| 71 | const char* Op::name = Key; \ |
nothing calls this directly
no outgoing calls
no test coverage detected