MCPcopy Create free account
hub / github.com/RenderKit/ospray / lookupDistributedObject

Function lookupDistributedObject

modules/mpi/ospray/MPIDistributedDevice.h:18–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17template <typename OSPRAY_TYPE>
18inline OSPRAY_TYPE *lookupDistributedObject(OSPObject obj)
19{
20 auto &handle = reinterpret_cast<ObjectHandle &>(obj);
21 auto *object = (OSPRAY_TYPE *)handle.lookup();
22
23 if (!object) {
24 throw std::runtime_error("#dmpi: ObjectHandle doesn't exist!");
25 }
26 return object;
27}
28
29struct MPIDistributedDevice : public api::Device
30{

Callers

nothing calls this directly

Calls 1

lookupMethod · 0.80

Tested by

no test coverage detected