A single unit cube of the grid.
More...
#include <uniform_grid_environment.h>
|
struct | Iterator |
| An iterator that iterates over the cells in this box. More...
|
|
A single unit cube of the grid.
Definition at line 69 of file uniform_grid_environment.h.
◆ Box() [1/2]
bdm::UniformGridEnvironment::Box::Box |
( |
| ) |
|
|
inline |
◆ Box() [2/2]
bdm::UniformGridEnvironment::Box::Box |
( |
const Box & |
other | ) |
|
|
inline |
Copy Constructor required for boxes_.resize() Since box values will be overwritten afterwards it forwards to the default ctor
Definition at line 84 of file uniform_grid_environment.h.
◆ AddObject()
Adds an agent to this box.
- Parameters
-
[in] | agent | The object's identifier |
| AddObject | successors The successors |
Definition at line 109 of file uniform_grid_environment.h.
◆ begin()
◆ IsEmpty()
bool bdm::UniformGridEnvironment::Box::IsEmpty |
( |
uint64_t |
grid_timestamp | ) |
const |
|
inline |
◆ operator=()
Box& bdm::UniformGridEnvironment::Box::operator= |
( |
const Box & |
other | ) |
|
|
inline |
◆ Size()
uint16_t bdm::UniformGridEnvironment::Box::Size |
( |
uint64_t |
grid_timestamp | ) |
const |
|
inline |
◆ length_
uint16_t bdm::UniformGridEnvironment::Box::length_ |
length of the linked list (i.e. number of agents) uint64_t, because sizeof(Box) = 16, for uint16_t and uint64_t
Definition at line 73 of file uniform_grid_environment.h.
◆ lock_
Spinlock bdm::UniformGridEnvironment::Box::lock_ |
◆ start_
start value of the linked list of agents inside this box. Next element can be found at successors_[start_]
Definition at line 78 of file uniform_grid_environment.h.
◆ timestamp_
uint32_t bdm::UniformGridEnvironment::Box::timestamp_ |
The documentation for this struct was generated from the following file: