3 #include <unordered_map>
5 namespace hio_html_internal
12 Line(
int front_index,
int back_index);
15 int front()
const {
return point_indices[0]; }
18 int back()
const {
return point_indices[1]; }
32 bool Attach(
Line const & line);
35 std::vector<Line> GetLines()
const;
43 std::vector<Line> headLines;
44 std::vector<Line> tailLines;
50 std::vector<LineChain> Run(std::vector<Line>
const & lines);
61 std::unordered_map<int, std::vector<LineChain *>> chainFingers;
64 std::vector<std::vector<Line>> ChainLines(
65 std::vector<Line>
const & lines);
Line(int front_index, int back_index)
Constructs a line with the provided indices.
Line Flip() const
Returns a line with the current line's indices flipped.
A class used to denote a line segment by its front and back indices.
Definition: Line.h:8
int front() const
Returns the line's front index.
Definition: Line.h:15
int back() const
Returns the line's back index.
Definition: Line.h:18