| 46 | } |
| 47 | |
| 48 | void BaseController::Callback(const int id) const { |
| 49 | CHECK_GT(callbacks_.count(id), 0) << "Callback not registered"; |
| 50 | for (const auto& callback : callbacks_.at(id)) { |
| 51 | callback(); |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | void BaseController::SetCheckIfStoppedFunc(std::function<bool()> func) { |
| 56 | check_if_stopped_fn_ = std::move(func); |
nothing calls this directly
no outgoing calls
no test coverage detected