group->removeAllBlocks();
GroupBlock* parent = AB_TO_GRP(group->getParent());
parent->removeBlock(group);
group->removeAllBlocks();
GroupBlock* parent = AB_TO_GRP(group->getParent());
parent->removeBlock(group);
foreach(AbstractBlock* block, sources) {
FunctionalBlock* funBlock = AB_TO_FUN(block);
try {
foreach(AbstractBlock* block, sources) {
FunctionalBlock* funBlock = AB_TO_FUN(block);
try {
void Graph::resetPatternComputed() {
foreach(AbstractBlock* block, sources) {
block->setPatternComputed(false);
void Graph::resetPatternComputed() {
foreach(AbstractBlock* block, sources) {
block->setPatternComputed(false);
}
foreach(AbstractBlock* block, groups) {
GroupBlock* group = AB_TO_GRP(block);
group->setPatternComputed(false);
}
foreach(AbstractBlock* block, groups) {
GroupBlock* group = AB_TO_GRP(block);
group->setPatternComputed(false);
foreach(AbstractBlock* inBlock, group->getBlocks()) {
inBlock->setPatternComputed(false);
foreach(AbstractBlock* inBlock, group->getBlocks()) {
inBlock->setPatternComputed(false);
// search for all block that are generators.
QList<FunctionalBlock*> generators;
generators.append(sources);
// search for all block that are generators.
QList<FunctionalBlock*> generators;
generators.append(sources);