From e19474963168241b1f1b3f194b85176986ae9168 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Wed, 7 Feb 2024 21:02:16 -0600 Subject: [PATCH] branch_tier.cpp --- src/branch_tier.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/branch_tier.cpp b/src/branch_tier.cpp index e01ddefa..4883fc42 100644 --- a/src/branch_tier.cpp +++ b/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); + } +}