| 352 | } |
| 353 | |
| 354 | bool CustomFunctionInjector::CallWrapper(std::function<bool (uint32_t, OsiArgumentDesc *)> const & next, uint32_t handle, OsiArgumentDesc * params) |
| 355 | { |
| 356 | auto it = osiToDivMappings_.find(handle); |
| 357 | if (it != osiToDivMappings_.end()) { |
| 358 | return functions_.Call(it->second, *params); |
| 359 | } else { |
| 360 | return next(handle, params); |
| 361 | } |
| 362 | } |
| 363 | |
| 364 | bool CustomFunctionInjector::QueryWrapper(std::function<bool(uint32_t, OsiArgumentDesc *)> const & next, uint32_t handle, OsiArgumentDesc * params) |
| 365 | { |