bool TypeDesc::isSubclassOf(TypeDesc const &td) const { return this->getDepth() >= td.getDepth() && *(this->getParents()[ td.getDepth() ]) == td; }