This is the state of the worker as it pertains to the manager. More...
#include <cell_state.hh>
Public Types | |
using | cell_type = aether::morton::tree_cell< typename params_type::morton_type > |
Public Member Functions | |
cell_state (const P &args, const aether::worker_id &_worker, const std::optional< cell_type > &_cell, const region_type &_region, size_t idle, const aether::phases_profile_type &_profile, uint64_t _tick, uint32_t _flags) | |
const P & | get_static_args () const |
std::optional< cell_type > | get_cell_opt () const |
cell_type | get_cell () const |
Return the cell, returns something arbitrary when there is no cell. More... | |
bool | is_cell_dying () const |
const region_type & | get_region () const |
size_t | get_idle_ticks () const |
Tracks for how many ticks the cell has been idle, once an idle threshold is reached the cell will be deallocated. More... | |
uint64_t | get_tick () const |
aether::worker_id | get_worker () const |
const aether::phases_profile_type & | get_tick_profile () const |
uint32_t | get_feature_flags () const |
This is the state of the worker as it pertains to the manager.
This state can be used to determine where the worker is in simulation space, how large it is, how long it has been alive for, and if it is dying / idle. The state should be templated on the octree_params.
using aether::cell_state< P >::cell_type = aether::morton::tree_cell<typename params_type::morton_type> |
|
inline |
|
inline |
Return the cell, returns something arbitrary when there is no cell.
|
inline |
|
inline |
|
inline |
Tracks for how many ticks the cell has been idle, once an idle threshold is reached the cell will be deallocated.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |