X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/e45bacc6bd342a1b19e42b62133ddabc99aa9edd..6e2b3026c6a496e81642c373796bd39dad33d2a6:/BlockImplementation.h diff --git a/BlockImplementation.h b/BlockImplementation.h index aa08ed9..72776e3 100644 --- a/BlockImplementation.h +++ b/BlockImplementation.h @@ -35,12 +35,17 @@ public: inline QHash getConsumptionPattern() { return consumptionPattern; } inline QHash getProductionPattern() { return productionPattern; } inline QString getProductionCounter() { return productionCounter; } + // setters inline void setDelta(QString _delta) { delta = _delta; } inline void setConsumptionPattern(QHash pattern) { consumptionPattern = pattern; } inline void setProductionPattern(QHash pattern) { productionPattern = pattern; } inline void setProductionCounter(QString pattern) { productionCounter = pattern; } + // testers + + inline bool hasNoPatterns() { return noPatterns; } + QString eval(QString line, QTextStream& out); QString evalComplex(QString line, int num); QString evalString(QString s); @@ -65,6 +70,7 @@ private: ArithmeticEvaluator* evaluator; ReferenceBlock* reference; FunctionalBlock* block; // the current functional block for which this implementation is used. + bool noPatterns; QString delta; QHash consumptionPattern; // key = reference interface name, value = pattern expression QHash productionPattern; // key = reference interface name, value = pattern expression