MCPcopy Create free account
hub / github.com/ReversecLabs/C3 / Device

Method Device

Src/Core/Profiler.cpp:1333–1344  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

1331
1332////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1333FSecure::C3::Core::Profiler::Device::Device(std::weak_ptr<Profiler> owner, Id id, HashT typeHash)
1334 : ProfileElement(owner)
1335 , m_Id(id)
1336 , m_TypeHash(typeHash)
1337{
1338 if (auto ptrCh = InterfaceFactory::Instance().GetInterfaceData<AbstractChannel>(m_TypeHash); ptrCh)
1339 m_Jitter = ptrCh->m_StartupJitter;
1340 else if (auto ptrP = InterfaceFactory::Instance().GetInterfaceData<AbstractPeripheral>(m_TypeHash); ptrP)
1341 m_Jitter = ptrP->m_StartupJitter;
1342 else
1343 throw std::runtime_error("Type hash does is not device: " + std::to_string(m_TypeHash));
1344}
1345
1346////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1347FSecure::C3::Core::Profiler::Route::Route(std::weak_ptr<Profiler> owner, RouteId id, Device::Id outgoingDeviceId, bool isNeighbour)

Callers

nothing calls this directly

Calls 1

to_stringFunction · 0.50

Tested by

no test coverage detected