Adjusting functions to consts
This commit is contained in:
parent
a21d7a59b0
commit
3abc8a8491
Binary file not shown.
Binary file not shown.
BIN
build/libHLlib.a
BIN
build/libHLlib.a
Binary file not shown.
BIN
build/main
BIN
build/main
Binary file not shown.
@ -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;
|
||||||
|
|||||||
@ -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;
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user