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

#include <profile.h>

Public Types

using policy_type = P
 

Public Member Functions

std::uint64_t size () const noexcept
 
bool finished () const noexcept
 
void append (bit_view key, std::uint64_t prefix_ceiling=std::numeric_limits< std::uint64_t >::max())
 
profile_array< P, stream_role::borrowed > finish ()
 

Static Public Attributes

static constexpr stream_role role = stream_role::borrowed
 

Private Member Functions

void append_known (bit_view key, std::uint64_t exact_common_bits, std::uint64_t prefix_ceiling=std::numeric_limits< std::uint64_t >::max())
 

Private Attributes

bit_string data_
 
bit_string previous_
 
std::vector< std::uint64_t > offsets_
 
std::uint64_t count_ = 0
 
bool finished_ = false
 

Friends

template<class , class , class >
struct index_builder
 
template<class , class , class >
struct cola_detail::index_output
 
struct profile_detail::index_output< P >
 

Member Typedef Documentation

◆ policy_type

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

Member Function Documentation

◆ append()

template<class P >
void everett::profile_borrowed_writer< P >::append ( bit_view  key,
std::uint64_t  prefix_ceiling = std::numeric_limits<std::uint64_t>::max() 
)
inline

◆ append_known()

template<class P >
void everett::profile_borrowed_writer< P >::append_known ( bit_view  key,
std::uint64_t  exact_common_bits,
std::uint64_t  prefix_ceiling = std::numeric_limits<std::uint64_t>::max() 
)
inlineprivate

◆ finish()

template<class P >
profile_array< P, stream_role::borrowed > everett::profile_borrowed_writer< P >::finish ( )
inline

◆ finished()

template<class P >
bool everett::profile_borrowed_writer< P >::finished ( ) const
inlinenoexcept

◆ size()

template<class P >
std::uint64_t everett::profile_borrowed_writer< P >::size ( ) const
inlinenoexcept

Friends And Related Symbol Documentation

◆ cola_detail::index_output

template<class P >
template<class , class , class >
friend struct cola_detail::index_output
friend

◆ index_builder

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

◆ profile_detail::index_output< P >

template<class P >
friend struct profile_detail::index_output< P >
friend

Member Data Documentation

◆ count_

template<class P >
std::uint64_t everett::profile_borrowed_writer< P >::count_ = 0
private

◆ data_

template<class P >
bit_string everett::profile_borrowed_writer< P >::data_
private

◆ finished_

template<class P >
bool everett::profile_borrowed_writer< P >::finished_ = false
private

◆ offsets_

template<class P >
std::vector<std::uint64_t> everett::profile_borrowed_writer< P >::offsets_
private

◆ previous_

template<class P >
bit_string everett::profile_borrowed_writer< P >::previous_
private

◆ role

template<class P >
constexpr stream_role everett::profile_borrowed_writer< P >::role = stream_role::borrowed
staticconstexpr

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