Everett
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | List of all members
everett::active_engine< P > Struct Template Reference

#include <active_engine.h>

Inheritance diagram for everett::active_engine< P >:

Public Types

using base_type = active_detail::engine< P >
 
using world_type = typename base_type::world_type
 
using metadata_type = typename base_type::metadata_type
 
using runtime_snapshot = typename base_type::runtime_family::snapshot_type
 

Public Member Functions

 active_engine ()=default
 
 active_engine (active_engine const &)=delete
 
active_engine & operator= (active_engine const &)=delete
 
 active_engine (active_engine &&) noexcept(std::is_nothrow_move_constructible_v< base_type >)=default
 
active_engine & operator= (active_engine &&) noexcept(std::is_nothrow_move_assignable_v< base_type >)=default
 

Static Public Member Functions

static active_engine from_snapshot (world_type value)
 
template<class Storage >
requires requires { base_type::from_snapshot(std::move(value), std::move(storage)); }
static active_engine from_snapshot (world_type value, Storage storage)
 
static world_type restore_checkpoint (runtime_snapshot runtime, std::span< std::byte const > bytes, std::string_view schema)
 

Private Member Functions

 active_engine (base_type value)
 

Member Typedef Documentation

◆ base_type

template<class P = storage_policy<>>
using everett::active_engine< P >::base_type = active_detail::engine<P>

◆ metadata_type

template<class P = storage_policy<>>
using everett::active_engine< P >::metadata_type = typename base_type::metadata_type

◆ runtime_snapshot

template<class P = storage_policy<>>
using everett::active_engine< P >::runtime_snapshot = typename base_type::runtime_family::snapshot_type

◆ world_type

template<class P = storage_policy<>>
using everett::active_engine< P >::world_type = typename base_type::world_type

Constructor & Destructor Documentation

◆ active_engine() [1/4]

template<class P = storage_policy<>>
everett::active_engine< P >::active_engine ( )
default

◆ active_engine() [2/4]

template<class P = storage_policy<>>
everett::active_engine< P >::active_engine ( active_engine< P > const &  )
delete

◆ active_engine() [3/4]

template<class P = storage_policy<>>
everett::active_engine< P >::active_engine ( active_engine< P > &&  ) const
defaultnoexcept

◆ active_engine() [4/4]

template<class P = storage_policy<>>
everett::active_engine< P >::active_engine ( base_type  value)
inlineexplicitprivate

Member Function Documentation

◆ from_snapshot() [1/2]

template<class P = storage_policy<>>
static active_engine everett::active_engine< P >::from_snapshot ( world_type  value)
inlinestatic

◆ from_snapshot() [2/2]

template<class P = storage_policy<>>
template<class Storage >
requires requires { base_type::from_snapshot(std::move(value), std::move(storage)); }
static active_engine everett::active_engine< P >::from_snapshot ( world_type  value,
Storage  storage 
)
inlinestatic

◆ operator=() [1/2]

template<class P = storage_policy<>>
active_engine & everett::active_engine< P >::operator= ( active_engine< P > &&  )
defaultnoexcept

◆ operator=() [2/2]

template<class P = storage_policy<>>
active_engine & everett::active_engine< P >::operator= ( active_engine< P > const &  )
delete

◆ restore_checkpoint()

template<class P = storage_policy<>>
static world_type everett::active_engine< P >::restore_checkpoint ( runtime_snapshot  runtime,
std::span< std::byte const >  bytes,
std::string_view  schema 
)
inlinestatic

The documentation for this struct was generated from the following file: