| 61 | } |
| 62 | |
| 63 | unsigned Mixer_Impl::branchIndexForInletModelObject(const ModelObject& modelObject) const { |
| 64 | unsigned stop = nextBranchIndex(); |
| 65 | |
| 66 | for (unsigned i = 0; i < stop; i++) { |
| 67 | if (inletModelObject(i) == modelObject) { |
| 68 | return i; |
| 69 | } |
| 70 | } |
| 71 | return 0; |
| 72 | } |
| 73 | |
| 74 | unsigned Mixer_Impl::nextBranchIndex() const { |
| 75 | unsigned i = 0; |
no outgoing calls
no test coverage detected