]> AND Private Git Repository - blast.git/blob - Graph.h
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
723e8eb33aaa232fa52ea9144c4f3b72bd02f292
[blast.git] / Graph.h
1 #ifndef __GRAPH_H__
2 #define __GRAPH_H__
3
4 #include <iostream>
5
6 #include <QtCore>
7 #include <QtGui>
8
9 class GroupBlock;
10 class ReferenceBlock;
11 class FunctionalBlock;
12 class AbstractInterface;
13
14 using namespace std;
15 using namespace Qt;
16
17
18 class Graph {
19
20 public:
21   Graph();
22   ~Graph();
23
24   QList<AbstractInterface *> getOutsideInterfaces();
25   inline GroupBlock* getTopGroup() { return topGroup; }
26
27   GroupBlock* createChildBlock(GroupBlock* parent);
28   FunctionalBlock* addFunctionalBlock(GroupBlock *group, ReferenceBlock *ref);
29   bool removeFunctionalBlock(FunctionalBlock* block, GroupBlock *group);
30   bool removeGroupBlock(GroupBlock *group);
31
32 private:  
33   GroupBlock* topGroup;
34
35 };
36
37 #endif // __GRAPH_H__