X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/d43174d0eb3d293b3bb5fbe76662241134e74d0d..0d3590739ff5a4ca9e87c052ac142f5d1d3a68ab:/AbstractBlock.cpp diff --git a/AbstractBlock.cpp b/AbstractBlock.cpp index d316800..ba1c179 100644 --- a/AbstractBlock.cpp +++ b/AbstractBlock.cpp @@ -119,6 +119,16 @@ QList AbstractBlock::getInterfaces() { return list; } +QList AbstractBlock::getDataInputs() { + QList list; + foreach(AbstractInterface* iface, inputs) { + if (iface->getPurpose() == AbstractInterface::Data) { + list.append(iface); + } + } + return list; +} + AbstractInterface* AbstractBlock::getIfaceFromName(QString name) { foreach(AbstractInterface* iface, inputs) {