MCPcopy Create free account
hub / github.com/a2flo/floor / get_function_entry

Method get_function_entry

src/device/host/host_function.cpp:580–588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

578}
579
580const 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
590typename 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());

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected