Everett
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes | List of all members
everett::partition_round< V, A, H, P > Struct Template Reference

#include <world.h>

Public Types

using world = reference_world< V, A, H >
 
using batch = world_batch< V, A >
 

Public Member Functions

 partition_round (world base, std::string round_id, P partition)
 
batch make_batch (std::string batch_id, std::uint64_t owner, std::vector< world_record< V > > writes) const
 
world_apply_result apply (batch const &update)
 
world const & base () const noexcept
 
world snapshot () const
 
std::size_t accepted_batches () const noexcept
 

Private Attributes

world base_
 
world current_
 
std::string round_id_
 
P partition_
 
std::map< std::string, batch, std::less<> > accepted_
 
std::map< std::string, std::string, std::less<> > claimed_
 

Member Typedef Documentation

◆ batch

template<class V , class A , class H , class P >
using everett::partition_round< V, A, H, P >::batch = world_batch<V, A>

◆ world

template<class V , class A , class H , class P >
using everett::partition_round< V, A, H, P >::world = reference_world<V, A, H>

Constructor & Destructor Documentation

◆ partition_round()

template<class V , class A , class H , class P >
everett::partition_round< V, A, H, P >::partition_round ( world  base,
std::string  round_id,
P  partition 
)
inline

Member Function Documentation

◆ accepted_batches()

template<class V , class A , class H , class P >
std::size_t everett::partition_round< V, A, H, P >::accepted_batches ( ) const
inlinenoexcept

◆ apply()

template<class V , class A , class H , class P >
world_apply_result everett::partition_round< V, A, H, P >::apply ( batch const &  update)
inline

◆ base()

template<class V , class A , class H , class P >
world const & everett::partition_round< V, A, H, P >::base ( ) const
inlinenoexcept

◆ make_batch()

template<class V , class A , class H , class P >
batch everett::partition_round< V, A, H, P >::make_batch ( std::string  batch_id,
std::uint64_t  owner,
std::vector< world_record< V > >  writes 
) const
inline

◆ snapshot()

template<class V , class A , class H , class P >
world everett::partition_round< V, A, H, P >::snapshot ( ) const
inline

Member Data Documentation

◆ accepted_

template<class V , class A , class H , class P >
std::map<std::string, batch, std::less<> > everett::partition_round< V, A, H, P >::accepted_
private

◆ base_

template<class V , class A , class H , class P >
world everett::partition_round< V, A, H, P >::base_
private

◆ claimed_

template<class V , class A , class H , class P >
std::map<std::string, std::string, std::less<> > everett::partition_round< V, A, H, P >::claimed_
private

◆ current_

template<class V , class A , class H , class P >
world everett::partition_round< V, A, H, P >::current_
private

◆ partition_

template<class V , class A , class H , class P >
P everett::partition_round< V, A, H, P >::partition_
private

◆ round_id_

template<class V , class A , class H , class P >
std::string everett::partition_round< V, A, H, P >::round_id_
private

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