branch_tier.cpp

This commit is contained in:
Antonio SJ Musumeci 2024-02-07 21:02:16 -06:00
parent 95e3f1ffd1
commit e194749631

View file

@ -70,3 +70,16 @@ BranchTier::BranchTier(toml::value const &v_)
l::load_branch_scan(table,_branches);
}
}
void
BranchTier::copy_enabled_rw(BranchTier &bt_)
{
for(auto const &b : _branches)
{
if(b.enabled == false)
continue;
if(b.mode != Branch2::Mode::RW)
continue;
bt_.emplace_back(b);
}
}