MCPcopy Create free account
hub / github.com/DFHack/dfhack / is_subclass

Method is_subclass

library/DataDefs.cpp:231–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231bool struct_identity::is_subclass(const struct_identity *actual) const
232{
233 if (!hasChildren() && actual != this)
234 return false;
235
236 for (; actual; actual = actual->getParent())
237 if (actual == this) return true;
238
239 return false;
240}
241
242const std::string pointer_identity::getFullName() const
243{

Callers 3

is_type_compatibleMethod · 0.80
queue_itemMethod · 0.80
dispatch_classMethod · 0.80

Calls 1

hasChildrenFunction · 0.85

Tested by

no test coverage detected