#include "AbstractInterface.h"\r
class AbstractInterface;\r
class BlockParameter;\r
+class Graph;\r
\r
#define AB_TO_REF(ptr) ((ReferenceBlock*)ptr)\r
#define AB_TO_FUN(ptr) ((FunctionalBlock*)ptr)\r
enum SpecialType { NotSpecial = 0, Source = 1, Sink = 2, ClkConvert = 3 };\r
\r
\r
- AbstractBlock();\r
+ AbstractBlock(Graph* _graph);\r
//AbstractBlock(const QString& _name);\r
virtual ~AbstractBlock();\r
\r
inline int getSpecialType() { return specialType; }\r
inline QString getVersion() { return version; }\r
inline int nbParameters() { return params.size(); }\r
+ inline Graph* getGraph() { return graph; }\r
\r
inline QList<AbstractInterface*> getInputs() { return inputs; }\r
inline QList<AbstractInterface*> getOutputs() { return outputs; }\r
QString name;\r
int specialType;\r
QString version;\r
+ Graph* graph;\r
\r
// parameters\r
QList<BlockParameter *> params;\r