You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
569 B

10 months ago
8 months ago
10 months ago
10 months ago
9 months ago
9 months ago
10 months ago
8 months ago
10 months ago
  1. #pragma once
  2. #include "branch2.hpp"
  3. #include "toml.hpp"
  4. #include <vector>
  5. class BranchTier
  6. {
  7. public:
  8. BranchTier();
  9. BranchTier(toml::value const &value,
  10. uint64_t const min_free_space = 0);
  11. public:
  12. std::vector<Branch2>::iterator begin() { return _branches.begin(); }
  13. std::vector<Branch2>::iterator end() { return _branches.end(); }
  14. std::vector<Branch2>::const_iterator begin() const { return _branches.begin(); }
  15. std::vector<Branch2>::const_iterator end() const { return _branches.end(); }
  16. private:
  17. std::vector<Branch2> _branches;
  18. };