2015-01-20 20:59:47 +08:00
|
|
|
#ifndef ELEMENTREDUCTION_H
|
|
|
|
|
#define ELEMENTREDUCTION_H
|
|
|
|
|
|
2015-01-20 21:24:33 +08:00
|
|
|
#include <QList>
|
|
|
|
|
#include "element/commontype.h"
|
2015-01-20 20:59:47 +08:00
|
|
|
//把电阻等于0的元件都去掉
|
|
|
|
|
class ElementReduction
|
|
|
|
|
{
|
|
|
|
|
public:
|
2015-01-20 21:24:33 +08:00
|
|
|
explicit ElementReduction(const QList<Branch*>& branchList);
|
|
|
|
|
void doIt();
|
2015-01-20 20:59:47 +08:00
|
|
|
~ElementReduction();
|
2015-01-20 21:24:33 +08:00
|
|
|
private:
|
|
|
|
|
const QList<Branch*>& branchList;
|
2015-01-20 20:59:47 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // ELEMENTREDUCTION_H
|