An opaque handle to a loaded module. An instance of this is returned from StreamExecutor::GetModule.
| 56 | // |
| 57 | // An instance of this is returned from StreamExecutor::GetModule. |
| 58 | class ModuleHandle { |
| 59 | public: |
| 60 | /*implicit*/ ModuleHandle(void *id = nullptr) : id_(id) {} |
| 61 | |
| 62 | // A ModuleHandle with id() == nullptr is an invalid module handle, akin to a |
| 63 | // null pointer. |
| 64 | void *id() const { return id_; } |
| 65 | |
| 66 | explicit operator bool() const { return id() != nullptr; } |
| 67 | |
| 68 | private: |
| 69 | void *id_; |
| 70 | }; |
| 71 | |
| 72 | namespace internal { |
| 73 |
no outgoing calls
no test coverage detected