Adjusting functions to consts

This commit is contained in:
Noah L. Schrick 2022-03-08 11:47:21 -06:00
parent a21d7a59b0
commit 3abc8a8491
6 changed files with 5 additions and 5 deletions

Binary file not shown.

Binary file not shown.

View File

@ -152,11 +152,11 @@ std::set<Line> merge(std::set<Line> lh, std::set<Line> rh){
} }
} }
std::set<Line> HL::get_lines(){ std::set<Line> HL::get_lines() const{
return lines; return lines;
} }
std::set<Line> HL::get_sol(){ std::set<Line> HL::get_sol() const{
std::set<Line> dummy; std::set<Line> dummy;
return dummy; return dummy;
//return sol; //return sol;

View File

@ -13,11 +13,11 @@ class HL
std::set<Line> gen_sol(std::set<Line>& ls); std::set<Line> gen_sol(std::set<Line>& ls);
std::set<Line> construct_HWprob(); std::set<Line> construct_HWprob();
std::set<Line> get_lines(); std::set<Line> get_lines() const;
std::set<Line> get_sol(); std::set<Line> get_sol() const;
private: private:
//Solution is in form Line ID <vis_start, vis_end> //Solution is in form (Line ID, (vis_start, vis_end))
std::set<std::pair<int, std::pair<double, double>>> sol; std::set<std::pair<int, std::pair<double, double>>> sol;
std::set<Line> lines; std::set<Line> lines;
}; };