| 406 | } |
| 407 | |
| 408 | vector<OutputPtr> InterfaceElement::getActiveOutputs() const |
| 409 | { |
| 410 | vector<OutputPtr> activeOutputs; |
| 411 | StringSet activeOutputNamesSet; |
| 412 | for (ConstElementPtr elem : traverseInheritance()) |
| 413 | { |
| 414 | vector<OutputPtr> outputs = elem->asA<InterfaceElement>()->getOutputs(); |
| 415 | for (const OutputPtr& output : outputs) |
| 416 | { |
| 417 | if (output && activeOutputNamesSet.insert(output->getName()).second) |
| 418 | { |
| 419 | activeOutputs.push_back(output); |
| 420 | } |
| 421 | } |
| 422 | } |
| 423 | return activeOutputs; |
| 424 | } |
| 425 | |
| 426 | void InterfaceElement::setConnectedOutput(const string& inputName, OutputPtr output) |
| 427 | { |
no test coverage detected