15 #ifndef SIMPLE_SENSOR_SIMULATOR__SENSOR_SIMULATION__OCCUPANCY_GRID__GRID_TRAVERSAL_HPP_
16 #define SIMPLE_SENSOR_SIMULATOR__SENSOR_SIMULATION__OCCUPANCY_GRID__GRID_TRAVERSAL_HPP_
25 using Index = std::pair<int32_t, int32_t>;
34 Iterator(
const GridTraversal * parent,
double tx,
double ty, int32_t x, int32_t y);
37 auto operator++() -> Iterator &;
38 auto operator!=(
const Sentinel &) -> bool;
48 GridTraversal(
double start_x,
double start_y,
double end_x,
double end_y);
50 auto begin()
const -> Iterator;
51 auto end()
const -> Sentinel;
54 double start_x_, start_y_;
57 int32_t step_x_, step_y_;
Definition: grid_traversal.hpp:24
auto begin() const -> Iterator
Definition: grid_traversal.cpp:34
GridTraversal(double start_x, double start_y, double end_x, double end_y)
Definition: grid_traversal.cpp:22
auto end() const -> Sentinel
Definition: grid_traversal.cpp:43
auto operator*(const T &a, const U &b)
Definition: operator.hpp:57
Definition: constants.hpp:19