#include "elementreduction.h" ElementReduction::ElementReduction(const QList &branchList):branchList(branchList) { } ElementReduction::~ElementReduction() { } void ElementReduction::doIt() { //先重新编号 int add=0; foreach(Branch *v,this->branchList) { v->id=add++; } }