MCPcopy Create free account
hub / github.com/LuxCoreRender/LuxCore / GetIndex

Method GetIndex

src/luxrays/core/namedobjectvector.cpp:88–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88u_int NamedObjectVector::GetIndex(const std::string &name) const {
89 Name2IndexType::left_const_iterator it = name2index.left.find(name);
90
91 if (it == name2index.left.end())
92 throw runtime_error("Reference to an undefined NamedObject name: " + name);
93 else
94 return it->second;
95}
96
97u_int NamedObjectVector::GetIndex(const NamedObject *o) const {
98 Index2ObjType::right_const_iterator it = index2obj.right.find(o);

Callers 2

GetExtMeshIndexMethod · 0.45
CompileMaterialsMethod · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected