MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / findByName

Function findByName

Engine/source/ts/tsShapeEdit.cpp:322–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320
321/// Get the index of the element in the group with a given name
322template<class T> S32 findByName(Vector<T>& group, S32 nameIndex)
323{
324 for (S32 i = 0; i < group.size(); i++)
325 if (group[i].nameIndex == nameIndex)
326 return i;
327 return -1;
328}
329
330/// Adjust the nameIndex for elements in the group
331template<class T> void adjustForNameRemoval(Vector<T>& group, S32 nameIndex)

Callers 3

setLightManagerMethod · 0.85
removeNameMethod · 0.85
doRenameFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected