1.修复了一些类的isTerminal没有被初始化的bug
2.修复了一些地方判断下一个Terminal的bug Signed-off-by: facat@lab.com <facat@lab.com>
This commit is contained in:
25
testHasttable/topologyrecorder.h
Normal file
25
testHasttable/topologyrecorder.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef TOPOLOGYRECORDER_H
|
||||
#define TOPOLOGYRECORDER_H
|
||||
#include <QVector>
|
||||
#include <QHash>
|
||||
#include <QString>
|
||||
#include <QPair>
|
||||
#include "BasicElementInfo.h"
|
||||
#include "breaker.h"
|
||||
#include "aclinesegment.h"
|
||||
#include "nodetoterminal.h"
|
||||
#include "terminal.h"
|
||||
|
||||
class TopologyRecorder
|
||||
{
|
||||
public:
|
||||
TopologyRecorder(const QHash<QString,BasicElementInfo *>& elementHT);
|
||||
bool startWithNode(const QString& node);
|
||||
private:
|
||||
NodeToTerminal nodeToTerminal;
|
||||
const QHash<QString,BasicElementInfo *>& eleHT;
|
||||
QVector<QPair<QString,QString> > branch;
|
||||
QHash<QString,char> reachedTerminal;
|
||||
};
|
||||
|
||||
#endif // TOPOLOGYRECORDER_H
|
||||
Reference in New Issue
Block a user