|
TraceMaker
C++ API of the engine
|
#include <index/uniform_grid.hpp>
Public Member Functions | |
| UniformGrid (geom::Box bounds, Coord cell, std::size_t max_ids) | |
| void | insert (int id, const geom::Box &box) |
| void | erase (int id, const geom::Box &box) |
| Calls f(id) once for every id whose inserted box shares a cell with box. | |
| template<class F> | |
| void | query (const geom::Box &box, F &&f) |
Definition at line 13 of file uniform_grid.hpp.
Definition at line 15 of file uniform_grid.hpp.
|
inline |
Calls f(id) once for every id whose inserted box shares a cell with box.
Removes id from the cells of box (the box it was inserted with).
Definition at line 32 of file uniform_grid.hpp.
|
inline |
Definition at line 22 of file uniform_grid.hpp.
|
inline |
Definition at line 40 of file uniform_grid.hpp.