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

Method IsAssignableFrom

lib/base/type.cpp:149–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149bool Type::IsAssignableFrom(const Type::Ptr& other) const
150{
151 for (Type::Ptr t = other; t; t = t->GetBaseType()) {
152 if (t.get() == this)
153 return true;
154 }
155
156 return false;
157}
158
159Object::Ptr Type::GetPrototype() const
160{

Callers 11

IsValidTypeMethod · 0.80
IsValidTypeMethod · 0.80
type.cppFile · 0.80
GetTypeOverwriteKeysMethod · 0.80
HashValueMethod · 0.80
HashValueMethod · 0.80
ScriptFuncMethod · 0.80
ConstructorCallMethod · 0.80
CommitMethod · 0.80
ActivateItemsMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 2

GetBaseTypeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected