9 std::map<BranchID, BranchID>
const& droppedToKeptAlias)
const {
10 auto const iter = lookup.find(
item);
11 if (iter != lookup.end()) {
13 for (
BranchID const& branchID : branchIDs) {
14 auto it = droppedToKeptAlias.find(branchID);
17 if (
it == droppedToKeptAlias.end()) {
19 if (itemSet.insert(branchID).second) {
20 append_(lookup, branchID, itemSet, droppedToKeptAlias);
28 if (itemSet.insert(
it->second).second) {
29 append_(lookup, branchID, itemSet, droppedToKeptAlias);
44 std::map<BranchID, BranchID>
const& droppedToKeptAlias)
const {
45 descendants.insert(
parent.branchID());
void insertEmpty(BranchID parent)
void insertChild(BranchID parent, BranchID child)
void appendToDescendants(BranchDescription const &parent, BranchIDSet &descendants, std::map< BranchID, BranchID > const &droppedToKeptAlias) const
void append_(map_t const &lookup, BranchID item, BranchIDSet &itemSet, std::map< BranchID, BranchID > const &droppedToKeptAlias) const
std::set< BranchID > BranchIDSet
std::map< BranchID, BranchIDSet > map_t