| 122 | } |
| 123 | |
| 124 | void |
| 125 | NodeCollection::getNodes_recursive(NodesList& nodes, |
| 126 | bool onlyActive) const |
| 127 | { |
| 128 | std::list<NodeGroup*> groupToRecurse; |
| 129 | |
| 130 | { |
| 131 | QMutexLocker k(&_imp->nodesMutex); |
| 132 | for (NodesList::const_iterator it = _imp->nodes.begin(); it != _imp->nodes.end(); ++it) { |
| 133 | if ( onlyActive && !(*it)->isActivated() ) { |
| 134 | continue; |
| 135 | } |
| 136 | nodes.push_back(*it); |
| 137 | NodeGroup* isGrp = (*it)->isEffectGroup(); |
| 138 | if (isGrp) { |
| 139 | groupToRecurse.push_back(isGrp); |
| 140 | } |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | for (std::list<NodeGroup*>::const_iterator it = groupToRecurse.begin(); it != groupToRecurse.end(); ++it) { |
| 145 | (*it)->getNodes_recursive(nodes, onlyActive); |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | void |
| 150 | NodeCollection::addNode(const NodePtr& node) |
no test coverage detected