| 85 | public: |
| 86 | |
| 87 | void add(poly_typeid type, connection_id id, const void * owner, event_handler fn) |
| 88 | { |
| 89 | tagged_event_handler handler(id, owner, std::move(fn)); |
| 90 | if (dispatch_count > 0) command_queue.emplace_back(type, std::move(handler)); |
| 91 | else |
| 92 | { |
| 93 | assert(handler.id != 0); |
| 94 | assert(handler.fn != nullptr); |
| 95 | map.emplace(type, std::move(handler)); |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | void remove(poly_typeid type, connection_id id, const void * owner) |
| 100 | { |
no test coverage detected