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

Method addConnection

src/osvr/Client/VRPNConnectionCollection.cpp:44–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 }
43
44 vrpn_ConnectionPtr
45 VRPNConnectionCollection::addConnection(vrpn_ConnectionPtr conn,
46 std::string const &host) {
47 auto &connMap = *m_connMap;
48 auto existing = connMap.find(host);
49 if (existing != end(connMap)) {
50 return existing->second;
51 }
52 connMap[host] = conn;
53 BOOST_ASSERT(!empty());
54 return conn;
55 }
56
57 vrpn_ConnectionPtr
58 VRPNConnectionCollection::getConnection(std::string const &device,

Callers 1

JointClientContextMethod · 0.80

Calls 2

emptyClass · 0.85
findMethod · 0.45

Tested by

no test coverage detected