X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/8fb3c55ee009a11db5e1c08a4cfb286979412745..60c13e8b4c7ea3d595969c1e7c0a28b068a17ca6:/AbstractBlock.h diff --git a/AbstractBlock.h b/AbstractBlock.h index e1c33e4..8f09410 100644 --- a/AbstractBlock.h +++ b/AbstractBlock.h @@ -35,14 +35,24 @@ public: inline int getSpecialType() { return specialType; } inline QString getVersion() { return version; } inline int nbParameters() { return params.size(); } - inline QList getParameters() { return params; } + inline QList getInputs() { return inputs; } inline QList getOutputs() { return outputs; } inline QList getBidirs() { return bidirs; } + QList getInterfaces(int direction = AbstractInterface::AnyDirection, int purpose = AbstractInterface::AnyPurpose); + QList getDataInputs(); //! return all inputs of type data + QList getDataOutputs(); //! return all inputs of type data + QList getControlInputs(); //! return all inputs of type control + QList getControlOutputs(); //! return all outputs of type control + AbstractInterface* getIfaceFromName(QString name); + + inline QList getParameters() { return params; } + BlockParameter* getParameterFromName(QString name); QList getUserParameters(); QList getGenericParameters(); QList getPortParameters(); QList getWishboneParameters(); + inline AbstractBlock* getParent() { return parent; } inline bool getOutputPatternComputed() { return outputPatternComputed; } inline int getTraversalLevel() { return traversalLevel; } @@ -90,13 +100,6 @@ public: void removeAllInterfaces(); void defineBlockParam(BlockParameter *param); - QList getInterfaces(int direction = AbstractInterface::AnyDirection, int purpose = AbstractInterface::AnyPurpose); - QList getDataInputs(); //! return all inputs of type data - QList getDataOutputs(); //! return all inputs of type data - QList getControlInputs(); //! return all inputs of type control - QList getControlOutputs(); //! return all outputs of type control - AbstractInterface* getIfaceFromName(QString name); - BlockParameter* getParameterFromName(QString name); // patterns virtual void checkInputPatternCompatibility() throw(Exception) = 0;