| 994 | } |
| 995 | |
| 996 | void SelectionResult::Merge(const SelectionResult& other) |
| 997 | { |
| 998 | // As it can fail, combine inputs first |
| 999 | InsertInputs(other.m_selected_inputs); |
| 1000 | |
| 1001 | m_target += other.m_target; |
| 1002 | m_use_effective |= other.m_use_effective; |
| 1003 | if (m_algo == SelectionAlgorithm::MANUAL) { |
| 1004 | m_algo = other.m_algo; |
| 1005 | } |
| 1006 | |
| 1007 | m_weight += other.m_weight; |
| 1008 | } |
| 1009 | |
| 1010 | const OutputSet& SelectionResult::GetInputSet() const |
| 1011 | { |
no outgoing calls