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

Method lookup

modules/mpi/common/ObjectHandle.cpp:90–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90memory::RefCount *ObjectHandle::lookup() const
91{
92 if (i64 == 0)
93 return nullptr;
94
95 auto it = objectByHandle.find(i64);
96 if (it == objectByHandle.end()) {
97#ifndef NDEBUG
98 // iw - made this into a warning only; the original code had
99 // this throw an actual exceptoin, but that may be overkill
100 std::cout << "#osp: WARNING: ospray is trying to look up object handle "
101 + std::to_string(i64) + " that isn't defined!"
102 << std::endl;
103#endif
104 return nullptr;
105 }
106
107 return it->second;
108}
109
110ObjectHandle ObjectHandle::lookup(memory::RefCount *object)
111{

Callers 2

lookupDistributedObjectFunction · 0.80
lookupObjectFunction · 0.80

Calls 3

findMethod · 0.80
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected