An iterator that iterates over the boxes in this grid.
More...
#include <uniform_grid_environment.h>
An iterator that iterates over the boxes in this grid.
Definition at line 163 of file uniform_grid_environment.h.
◆ NeighborIterator()
◆ ForwardToNonEmptyBox()
NeighborIterator& bdm::UniformGridEnvironment::NeighborIterator::ForwardToNonEmptyBox |
( |
uint64_t |
grid_timestamp | ) |
|
|
inlineprivate |
Forwards the iterator to the next non empty box and returns itself If there are no non empty boxes is_end_ is set to true
Definition at line 208 of file uniform_grid_environment.h.
◆ IsAtEnd()
bool bdm::UniformGridEnvironment::NeighborIterator::IsAtEnd |
( |
| ) |
const |
|
inline |
◆ operator*()
AgentHandle bdm::UniformGridEnvironment::NeighborIterator::operator* |
( |
| ) |
const |
|
inline |
◆ operator++()
◆ box_idx_
uint16_t bdm::UniformGridEnvironment::NeighborIterator::box_idx_ = 0 |
|
private |
◆ box_iterator_
Box::Iterator bdm::UniformGridEnvironment::NeighborIterator::box_iterator_ |
|
private |
◆ grid_
◆ grid_timestamp_
uint64_t bdm::UniformGridEnvironment::NeighborIterator::grid_timestamp_ |
|
private |
◆ is_end_
bool bdm::UniformGridEnvironment::NeighborIterator::is_end_ = false |
|
private |
◆ neighbor_boxes_
const FixedSizeVector<const Box*, 27>& bdm::UniformGridEnvironment::NeighborIterator::neighbor_boxes_ |
|
private |
The documentation for this struct was generated from the following file: