35 #ifndef NAV_GRID_ITERATORS_LINE_H 36 #define NAV_GRID_ITERATORS_LINE_H 61 bool include_last_index =
true,
bool bresenham =
true);
115 #endif // NAV_GRID_ITERATORS_LINE_H nav_grid::Index start_index_
Line begin() const override
Helper function for range-style iteration Equivalent to the above constructor.
nav_grid::Index end_index_
std::unique_ptr< AbstractLineIterator > internal_iterator_
void increment() override
Increase the iterator to the next element.
Line end() const override
Helper function for range-style iteration.
Iterates over all of the valid indexes of a line.
bool fieldsEqual(const Line &other) override
Additional check for whether fields of derived iterators are equal.
Line & operator=(const Line &other)
Assignment Operator Required to ensure unique_ptr is set properly.
Line(const nav_grid::NavGridInfo *info, double x0, double y0, double x1, double y1, bool include_last_index=true, bool bresenham=true)
Public Constructor.
bool inBounds(const nav_grid::SignedIndex &sindex)
Check if a SignedIndex is within the bounds of the NavGrid.