aether::storage_state Class Reference

State of the simulation as seen from external_storage_iface implementation. More...

#include <external_storage.hh>

Public Member Functions

storage_stateoperator= (const storage_state &)=default
 
 storage_state ()=default
 
 storage_state (uint64_t _tick_id, std::optional< uint64_t > _completed_external_storage_tick)
 
std::optional< uint64_t > get_completed_external_storage_tick () const
 Empty if external storage is disabled. More...
 
uint64_t get_tick () const
 Current tick of the simulation. More...
 

Detailed Description

State of the simulation as seen from external_storage_iface implementation.

Constructor & Destructor Documentation

aether::storage_state::storage_state ( )
default
aether::storage_state::storage_state ( uint64_t  _tick_id,
std::optional< uint64_t >  _completed_external_storage_tick 
)
inline

Member Function Documentation

std::optional<uint64_t> aether::storage_state::get_completed_external_storage_tick ( ) const
inline

Empty if external storage is disabled.

If enabled and the external storage requests were made for previous ticks, will return the latest tick for which the storage requests were completed (all workers and global_store processes), if any.

uint64_t aether::storage_state::get_tick ( ) const
inline

Current tick of the simulation.

storage_state& aether::storage_state::operator= ( const storage_state )
default