Everett
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
everett::typed_detail::native_sweep< World > Struct Template Reference

#include <native_sweep.h>

Classes

struct  observation
 
struct  source
 

Public Types

using policy_type = typename World::policy_type
 
using native_type = typename World::runtime_family::native_type
 

Public Member Functions

 native_sweep ()=default
 
 native_sweep (World const &snapshot, bit_view lower={}, range_positioning_work *work=nullptr)
 
bool done () const noexcept
 
std::uint64_t consumed () const noexcept
 
auto peek () const
 
std::uint64_t retained_bits () const
 
void consume ()
 
std::optional< observation > replacement (bit_view key)
 

Private Member Functions

auto later () const
 

Private Attributes

std::vector< source > sources_
 
std::vector< std::size_t > heap_
 
std::uint64_t consumed_ = 0
 

Member Typedef Documentation

◆ native_type

template<class World >
using everett::typed_detail::native_sweep< World >::native_type = typename World::runtime_family::native_type

◆ policy_type

template<class World >
using everett::typed_detail::native_sweep< World >::policy_type = typename World::policy_type

Constructor & Destructor Documentation

◆ native_sweep() [1/2]

template<class World >
everett::typed_detail::native_sweep< World >::native_sweep ( )
default

◆ native_sweep() [2/2]

template<class World >
everett::typed_detail::native_sweep< World >::native_sweep ( World const &  snapshot,
bit_view  lower = {},
range_positioning_work *  work = nullptr 
)
inlineexplicit

Member Function Documentation

◆ consume()

template<class World >
void everett::typed_detail::native_sweep< World >::consume ( )
inline

◆ consumed()

template<class World >
std::uint64_t everett::typed_detail::native_sweep< World >::consumed ( ) const
inlinenoexcept

◆ done()

template<class World >
bool everett::typed_detail::native_sweep< World >::done ( ) const
inlinenoexcept

◆ later()

template<class World >
auto everett::typed_detail::native_sweep< World >::later ( ) const
inlineprivate

◆ peek()

template<class World >
auto everett::typed_detail::native_sweep< World >::peek ( ) const
inline

◆ replacement()

template<class World >
std::optional< observation > everett::typed_detail::native_sweep< World >::replacement ( bit_view  key)
inline

◆ retained_bits()

template<class World >
std::uint64_t everett::typed_detail::native_sweep< World >::retained_bits ( ) const
inline

Member Data Documentation

◆ consumed_

template<class World >
std::uint64_t everett::typed_detail::native_sweep< World >::consumed_ = 0
private

◆ heap_

template<class World >
std::vector<std::size_t> everett::typed_detail::native_sweep< World >::heap_
private

◆ sources_

template<class World >
std::vector<source> everett::typed_detail::native_sweep< World >::sources_
private

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