Everett
Loading...
Searching...
No Matches
Classes | Typedefs | Functions | Variables
everett::typed_detail Namespace Reference

Classes

struct  all_replacements
 
struct  all_replacements< registry_detail::sorts< S... > >
 
struct  compose
 
struct  default_sort
 
struct  default_sort< registry_detail::sorts< S > >
 
struct  native_sweep
 
struct  profile_key_transport
 
struct  replacement_compose
 
struct  tombstone_predicate
 
struct  transport
 
struct  transport< P, Family, std::void_t< typename Family::key_transport > >
 

Typedefs

template<class P >
using default_sort_t = typename default_sort< typename registry_detail::info< typename P::registry_type >::leaves >::type
 
template<class S >
using key_t = typename sort_codec< S >::key_codec::value_type
 
template<class S >
using arrow_t = typename sort_codec< S >::value_codec::value_type
 
template<class S >
using state_t = typename sort_semantics< S >::state_type
 
template<class P , class Family >
using transport_t = typename transport< P, Family >::type
 

Functions

std::string byte_string (bit_view bits)
 
bool byte_string_present (bit_view encoded)
 
template<class P , class S >
key_t< S > read_key (sort_bit_reader &input)
 
template<class P , class S >
bit_string key (key_t< S > const &value)
 
template<class P , class S >
bit_string value (arrow_t< S > const &value)
 
template<class P , class S >
arrow_t< S > value (bit_view encoded)
 
template<class P , class F >
decltype(auto) dispatch_key (bit_view encoded, F &&action)
 

Variables

template<class S >
constexpr bool replacement
 
template<class P , class S >
constexpr bool byte_strings
 

Typedef Documentation

◆ arrow_t

template<class S >
using everett::typed_detail::arrow_t = typedef typename sort_codec<S>::value_codec::value_type

◆ default_sort_t

template<class P >
using everett::typed_detail::default_sort_t = typedef typename default_sort< typename registry_detail::info<typename P::registry_type>::leaves>::type

◆ key_t

template<class S >
using everett::typed_detail::key_t = typedef typename sort_codec<S>::key_codec::value_type

◆ state_t

template<class S >
using everett::typed_detail::state_t = typedef typename sort_semantics<S>::state_type

◆ transport_t

template<class P , class Family >
using everett::typed_detail::transport_t = typedef typename transport<P, Family>::type

Function Documentation

◆ byte_string()

std::string everett::typed_detail::byte_string ( bit_view  bits)
inline

◆ byte_string_present()

bool everett::typed_detail::byte_string_present ( bit_view  encoded)
inline

◆ dispatch_key()

template<class P , class F >
decltype(auto) everett::typed_detail::dispatch_key ( bit_view  encoded,
F &&  action 
)

◆ key()

template<class P , class S >
bit_string everett::typed_detail::key ( key_t< S > const &  value)

◆ read_key()

template<class P , class S >
key_t< S > everett::typed_detail::read_key ( sort_bit_reader &  input)

◆ value() [1/2]

template<class P , class S >
bit_string everett::typed_detail::value ( arrow_t< S > const &  value)

◆ value() [2/2]

template<class P , class S >
arrow_t< S > everett::typed_detail::value ( bit_view  encoded)

Variable Documentation

◆ byte_strings

template<class P , class S >
constexpr bool everett::typed_detail::byte_strings
inlineconstexpr
Initial value:
=
P::unit == profile_unit::byte && std::same_as<S, unsorted<std::optional<std::string>>>

◆ replacement

template<class S >
constexpr bool everett::typed_detail::replacement
constexpr
Initial value:
= [] {
if constexpr (requires { sort_semantics<S>::replacement; }) return bool(sort_semantics<S>::replacement);
else return false;
}()
Definition typed_world.h:31