| 578 | } |
| 579 | |
| 580 | const host_function::function_entry* host_function::get_function_entry(const device& dev) const { |
| 581 | if (function != nullptr) { |
| 582 | return &entry; // can't really check if the device is correct here |
| 583 | } |
| 584 | if (const auto iter = functions.find((const host_device*)&dev); iter != functions.end()) { |
| 585 | return &iter->second; |
| 586 | } |
| 587 | return nullptr; |
| 588 | } |
| 589 | |
| 590 | typename host_function::function_map_type::const_iterator host_function::get_function(const device_queue& cqueue) const { |
| 591 | return functions.find((const host_device*)&cqueue.get_device()); |
no test coverage detected