void MFlatAssignmentVisitor::visitMClass(const MClass *klass) { visitMObject(klass); auto targetClass = dynamic_cast<MClass *>(m_target); QMT_CHECK(targetClass); targetClass->setUmlNamespace(klass->umlNamespace()); targetClass->setTemplateParameters(klass->templateParameters()); targetClass->setMembers(klass->members()); }
void DFlatAssignmentVisitor::visitDClass(const DClass *klass) { visitDObject(klass); auto target = dynamic_cast<DClass *>(m_target); QMT_CHECK(target); target->setUmlNamespace(klass->umlNamespace()); target->setTemplateParameters(klass->templateParameters()); target->setTemplateDisplay(klass->templateDisplay()); target->setMembers(klass->members()); target->setShowAllMembers(klass->showAllMembers()); target->setVisibleMembers(klass->visibleMembers()); }
void DUpdateVisitor::visitMClass(const MClass *klass) { auto dclass = dynamic_cast<DClass *>(m_target); QMT_CHECK(dclass); if (isUpdating(klass->umlNamespace() != dclass->umlNamespace())) dclass->setUmlNamespace(klass->umlNamespace()); if (isUpdating(klass->templateParameters() != dclass->templateParameters())) dclass->setTemplateParameters(klass->templateParameters()); if (isUpdating(klass->members() != dclass->members())) dclass->setMembers(klass->members()); visitMObject(klass); }