MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / assignNumber

Method assignNumber

plugins/multiserver/VRPNMultiserver.cpp:42–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42size_t VRPNMultiserverData::assignNumber(std::string const &nameStem) {
43 auto it = m_nameCount.find(nameStem);
44 if (it != end(m_nameCount)) {
45 it->second++;
46 return it->second;
47 }
48 m_nameCount[nameStem] = 0;
49 return 0;
50}

Callers

nothing calls this directly

Calls 1

findMethod · 0.45

Tested by

no test coverage detected