X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/c85843afb9bd492b46d6fe87a8287157097483f5..015e6979cd7d336f6bbebfbdb7916af3ba23c096:/AbstractBlock.cpp?ds=inline diff --git a/AbstractBlock.cpp b/AbstractBlock.cpp index 336b677..b78a1e1 100644 --- a/AbstractBlock.cpp +++ b/AbstractBlock.cpp @@ -59,10 +59,12 @@ bool AbstractBlock::isSourceBlock() { } /* NB: a generator is a block that has no data inputs * and has at least one data output. + * By the way, blokcs that have no data input/output + * (like clkrstgen) are not generators ! */ bool AbstractBlock::isGeneratorBlock() { if (getDataInputs().size() > 0) return false; - + if (getDataOutputs().size() == 0) return false; return true; }