2015-01-20 20:59:47 +08:00
|
|
|
#include "elementreduction.h"
|
|
|
|
|
|
2015-01-20 21:24:33 +08:00
|
|
|
ElementReduction::ElementReduction(const QList<Branch *> &branchList):branchList(branchList)
|
2015-01-20 20:59:47 +08:00
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ElementReduction::~ElementReduction()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2015-01-20 21:24:33 +08:00
|
|
|
void ElementReduction::doIt()
|
|
|
|
|
{
|
|
|
|
|
//先重新编号
|
|
|
|
|
int add=0;
|
|
|
|
|
foreach(Branch *v,this->branchList)
|
|
|
|
|
{
|
|
|
|
|
v->id=add++;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|