cimforreduceloss/testHasttable/elementreduction.cpp

23 lines
319 B
C++
Raw Normal View History

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