35 #ifndef NAV_GRID_ITERATORS_SUB_GRID_H 36 #define NAV_GRID_ITERATORS_SUB_GRID_H 59 unsigned int width,
unsigned int height)
68 :
SubGrid(info, bounds.getMinX(), bounds.getMinY(), bounds.getWidth(), bounds.getHeight()) {}
80 unsigned int width,
unsigned int height);
89 :
SubGrid(info, index, bounds.getMinX(), bounds.getMinY(), bounds.getWidth(), bounds.getHeight()) {}
104 #endif // NAV_GRID_ITERATORS_SUB_GRID_H SubGrid(const nav_grid::NavGridInfo *info, const nav_core2::UIntBounds &bounds)
Public Constructor using UIntBounds object.
void increment() override
Increase the iterator to the next element.
bool fieldsEqual(const SubGrid &other) override
Additional check for whether fields of derived iterators are equal.
SubGrid begin() const override
Helper function for range-style iteration Equivalent to the above constructor.
GenericIndex< unsigned int > Index
SubGrid end() const override
Helper function for range-style iteration.
SubGrid(const nav_grid::NavGridInfo *info, const nav_grid::Index &index, const nav_core2::UIntBounds &bounds)
Public constructor using UIntBounds object that takes in an arbitrary index.
Iterator for looping through every index within an aligned rectangular portion of the grid...
SubGrid(const nav_grid::NavGridInfo *info, unsigned int min_x, unsigned int min_y, unsigned int width, unsigned int height)
Public Constructor.