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

#include <cola_runtime.h>

Classes

struct  state
 

Public Types

using policy_type = P
 
using node_type = cola_runtime_node< P >
 
using pair_type = typename node_type::pair_type
 
using query_type = cola_query_root< P, node_type >
 
using run_type = cola_runtime_run< P >
 

Public Member Functions

std::uint64_t admissions () const noexcept
 
bool settled () const noexcept
 
std::span< run_type const > runs () const &noexcept
 
std::span< run_type const > runs () const &&=delete
 
query_type const & query_root () const &noexcept
 
query_type const & query_root () const &&=delete
 
auto cursor (bit_view key) const
 
auto cursor_owned (bit_string key) const
 
bool same_layout (cola_runtime_snapshot const &other) const noexcept
 

Static Public Member Functions

static cola_runtime_snapshot restore (pair_type head, std::span< cola_runtime_interval const > intervals)
 

Private Member Functions

 cola_runtime_snapshot (std::shared_ptr< state const > value)
 

Static Private Member Functions

static cola_runtime_snapshot make (query_type query, std::vector< run_type > runs, std::uint64_t admissions)
 

Private Attributes

std::shared_ptr< state const > state_
 

Friends

template<class , class >
struct cola_runtime
 

Member Typedef Documentation

◆ node_type

template<class P >
using everett::cola_runtime_snapshot< P >::node_type = cola_runtime_node<P>

◆ pair_type

template<class P >
using everett::cola_runtime_snapshot< P >::pair_type = typename node_type::pair_type

◆ policy_type

template<class P >
using everett::cola_runtime_snapshot< P >::policy_type = P

◆ query_type

template<class P >
using everett::cola_runtime_snapshot< P >::query_type = cola_query_root<P, node_type>

◆ run_type

template<class P >
using everett::cola_runtime_snapshot< P >::run_type = cola_runtime_run<P>

Constructor & Destructor Documentation

◆ cola_runtime_snapshot()

template<class P >
everett::cola_runtime_snapshot< P >::cola_runtime_snapshot ( std::shared_ptr< state const >  value)
inlineexplicitprivate

Member Function Documentation

◆ admissions()

template<class P >
std::uint64_t everett::cola_runtime_snapshot< P >::admissions ( ) const
inlinenoexcept

◆ cursor()

template<class P >
auto everett::cola_runtime_snapshot< P >::cursor ( bit_view  key) const
inline

◆ cursor_owned()

template<class P >
auto everett::cola_runtime_snapshot< P >::cursor_owned ( bit_string  key) const
inline

◆ make()

template<class P >
static cola_runtime_snapshot everett::cola_runtime_snapshot< P >::make ( query_type  query,
std::vector< run_type >  runs,
std::uint64_t  admissions 
)
inlinestaticprivate

◆ query_root() [1/2]

template<class P >
query_type const & everett::cola_runtime_snapshot< P >::query_root ( ) const &&
delete

◆ query_root() [2/2]

template<class P >
query_type const & everett::cola_runtime_snapshot< P >::query_root ( ) const &
inlinenoexcept

◆ restore()

template<class P >
static cola_runtime_snapshot everett::cola_runtime_snapshot< P >::restore ( pair_type  head,
std::span< cola_runtime_interval const >  intervals 
)
inlinestatic

◆ runs() [1/2]

template<class P >
std::span< run_type const > everett::cola_runtime_snapshot< P >::runs ( ) const &&
delete

◆ runs() [2/2]

template<class P >
std::span< run_type const > everett::cola_runtime_snapshot< P >::runs ( ) const &
inlinenoexcept

◆ same_layout()

template<class P >
bool everett::cola_runtime_snapshot< P >::same_layout ( cola_runtime_snapshot< P > const &  other) const
inlinenoexcept

◆ settled()

template<class P >
bool everett::cola_runtime_snapshot< P >::settled ( ) const
inlinenoexcept

Friends And Related Symbol Documentation

◆ cola_runtime

template<class P >
template<class , class >
friend struct cola_runtime
friend

Member Data Documentation

◆ state_

template<class P >
std::shared_ptr<state const> everett::cola_runtime_snapshot< P >::state_
private

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