35 #ifndef NAV_GRID_ITERATORS_SUB_GRID_H 36 #define NAV_GRID_ITERATORS_SUB_GRID_H 62 unsigned int width,
unsigned int height)
71 :
SubGrid(info, bounds.getMinX(), bounds.getMinY(), bounds.getWidth(), bounds.getHeight()) {}
86 unsigned int width,
unsigned int height)
102 #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, unsigned int min_x, unsigned int min_y, unsigned int width, unsigned int height)
Public constructor 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.