MCPcopy Create free account
hub / github.com/Icinga/icinga2 / GetByID

Method GetByID

lib/db_ido/dbtype.cpp:60–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60DbType::Ptr DbType::GetByID(long tid)
61{
62 std::unique_lock<std::mutex> lock(GetStaticMutex());
63
64 for (const TypeMap::value_type& kv : GetTypes()) {
65 if (kv.second->GetTypeID() == tid)
66 return kv.second;
67 }
68
69 return nullptr;
70}
71
72DbObject::Ptr DbType::GetOrCreateObjectByName(const String& name1, const String& name2)
73{

Callers

nothing calls this directly

Calls 1

GetTypeIDMethod · 0.80

Tested by

no test coverage detected