10 std::map<BranchID, BranchID>
const& droppedToKeptAlias)
const {
11 auto const iter = lookup.find(item);
12 if(iter != lookup.end()) {
14 for(
BranchID const& branchID : branchIDs) {
15 auto it = droppedToKeptAlias.find(branchID);
18 if (it == droppedToKeptAlias.end()) {
20 if (itemSet.insert(branchID).second) {
21 append_(lookup, branchID, itemSet, droppedToKeptAlias);
29 if (itemSet.insert(it->second).second) {
30 append_(lookup, branchID, itemSet, droppedToKeptAlias);
55 std::map<BranchID, BranchID>
const& droppedToKeptAlias)
const {
56 descendants.insert(parent.
branchID());
void insertEmpty(BranchID parent)
void insertChild(BranchID parent, BranchID child)
void append_(map_t const &lookup, BranchID item, BranchIDSet &itemSet, std::map< BranchID, BranchID > const &droppedToKeptAlias) const
BranchID const & branchID() const
std::set< BranchID > BranchIDSet
void appendToDescendants(BranchDescription const &parent, BranchIDSet &descendants, std::map< BranchID, BranchID > const &droppedToKeptAlias) const
std::map< BranchID, BranchIDSet > map_t
BranchID const & originalBranchID() const