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

#pragma once
#include "branch2.hpp"
#include "toml.hpp"
#include <vector>
class BranchTier
{
public:
BranchTier();
BranchTier(toml::value const &value,
uint64_t const min_free_space = 0);
public:
std::vector<Branch2>::iterator begin() { return _branches.begin(); }
std::vector<Branch2>::iterator end() { return _branches.end(); }
std::vector<Branch2>::const_iterator begin() const { return _branches.begin(); }
std::vector<Branch2>::const_iterator end() const { return _branches.end(); }
private:
std::vector<Branch2> _branches;
};