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.

26 lines
549 B

10 months ago
10 months ago
9 months ago
9 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 &);
  10. public:
  11. uint64_t min_free_space;
  12. public:
  13. std::vector<Branch2>::iterator begin() { return _branches.begin(); }
  14. std::vector<Branch2>::iterator end() { return _branches.end(); }
  15. std::vector<Branch2>::const_iterator begin() const { return _branches.begin(); }
  16. std::vector<Branch2>::const_iterator end() const { return _branches.end(); }
  17. private:
  18. std::vector<Branch2> _branches;
  19. };