57 std::size_t beginning, std::size_t length,
int tree,
int score,
const QString &protein)
59 m_tree_scores.at(tree) = score;
60 if(m_tree_in_heap.at(tree))
62 for(std::vector<Location>::iterator iter = m_locations_heap.begin();
63 iter != m_locations_heap.end();
66 if(iter->tree == tree)
69 iter->length = length;
77 if(m_locations_heap.begin()->tree >= 0)
79 m_tree_in_heap.at(m_locations_heap.begin()->tree) =
false;
81 m_tree_in_heap.at(tree) =
true;
84 m_locations_heap.pop_back();
85 m_locations_heap.push_back({beginning, length, tree, score, protein});
void addLocation(std::size_t beginning, std::size_t length, int tree, int score, const QString &protein)
Adds a location to the locations heap. If a saved location has the same tree_id, it will replace it....