Browse Source

branch_tier.cpp

toml4
Antonio SJ Musumeci 9 months ago
parent
commit
e194749631
  1. 13
      src/branch_tier.cpp

13
src/branch_tier.cpp

@ -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);
}
}
Loading…
Cancel
Save