libs/fastflow/ff/graph_utils.hpp
// checks if node is a farm with no collector and multi-output workers
checks if node is a farm with no collector and multi-output workers
checks if node is a farm with no collector and multi - output workers
static inline bool isfarm_multimultioutput(ff_node* node) {
    if (node->isFarm()) {
        ff_farm* farm= reinterpret_cast<ff_farm*>(node);
        if (farm->hasCollector()) return false;
        const svector<ff_node*>& w1 = farm->getWorkers();
        if (w1[0]->isMultiOutput()) return true;   
    }
    return false;
}
static inline bool isfarm_multimultioutput ( ff_node * node ) { if ( node -> isFarm ( ) ) { ff_farm * farm = reinterpret_cast < ff_farm * > ( node ) ; if ( farm -> hasCollector ( ) ) return false ; const svector < ff_node * > & w1 = farm -> getWorkers ( ) ; if ( w1 [ 0 ] -> isMultiOutput ( ) ) return true ; } return false ; }
checks if node is a farm with no collector and multi-output workers
checks if node is a farm with no collector and multi - output workers
// NOTE: here we suppose homogeneous workers