| 12 | namespace impl |
| 13 | { |
| 14 | struct MatchCostData |
| 15 | { |
| 16 | uint32_t m_A, m_B; |
| 17 | uint32_t m_Cost; |
| 18 | |
| 19 | MatchCostData() : m_A(0), m_B(0), m_Cost(0) {} |
| 20 | MatchCostData(uint32_t a, uint32_t b, uint32_t cost) : m_A(a), m_B(b), m_Cost(cost) {} |
| 21 | |
| 22 | bool operator<(MatchCostData const & o) const { return m_Cost > o.m_Cost; } |
| 23 | }; |
| 24 | |
| 25 | template <typename PriorityQueue> |
| 26 | void PushMatchCost(PriorityQueue & q, uint32_t maxCost, uint32_t a, uint32_t b, uint32_t cost) |
no outgoing calls
no test coverage detected