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

Method SetObjectID

lib/db_ido/dbconnection.cpp:341–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341void DbConnection::SetObjectID(const DbObject::Ptr& dbobj, const DbReference& dbref)
342{
343 if (dbref.IsValid())
344 m_ObjectIDs[dbobj] = dbref;
345 else
346 m_ObjectIDs.erase(dbobj);
347}
348
349DbReference DbConnection::GetObjectID(const DbObject::Ptr& dbobj) const
350{

Callers

nothing calls this directly

Calls 2

IsValidMethod · 0.80
eraseMethod · 0.45

Tested by

no test coverage detected