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

#include <file_index_builder.h>

Public Types

using policy_type = P
 

Public Member Functions

 file_index_output (std::filesystem::path root, object_id id, object_attempt_id attempt, object_id native_id, std::optional< blob_identity > target_id)
 
 file_index_output (std::filesystem::path root, object_id id, object_attempt_id attempt, object_id native_id, std::optional< blob_identity > target_id, Ops &ops)
 
std::uint64_t size () const noexcept
 
bool finished () const noexcept
 
bool failed () const noexcept
 
object_write_paths const & paths () const &noexcept
 
object_write_paths const & paths () const &&=delete
 
void append_known (bit_view key, std::uint64_t common_bits)
 
object_seal_receipt finish (index_metadata< P > const &metadata)
 

Static Private Member Functions

static object_id checked (object_id id)
 
static std::optional< blob_identity > checked (std::optional< blob_identity > target)
 

Private Attributes

object_id native_id_
 
std::optional< blob_identity > target_id_
 
profile_file_output< P, stream_role::borrowed, Ops > output_
 

Member Typedef Documentation

◆ policy_type

template<class P , class Ops >
using everett::profile_detail::file_index_output< P, Ops >::policy_type = P

Constructor & Destructor Documentation

◆ file_index_output() [1/2]

template<class P , class Ops >
everett::profile_detail::file_index_output< P, Ops >::file_index_output ( std::filesystem::path  root,
object_id  id,
object_attempt_id  attempt,
object_id  native_id,
std::optional< blob_identity >  target_id 
)
inline

◆ file_index_output() [2/2]

template<class P , class Ops >
everett::profile_detail::file_index_output< P, Ops >::file_index_output ( std::filesystem::path  root,
object_id  id,
object_attempt_id  attempt,
object_id  native_id,
std::optional< blob_identity >  target_id,
Ops &  ops 
)
inline

Member Function Documentation

◆ append_known()

template<class P , class Ops >
void everett::profile_detail::file_index_output< P, Ops >::append_known ( bit_view  key,
std::uint64_t  common_bits 
)
inline

◆ checked() [1/2]

template<class P , class Ops >
static object_id everett::profile_detail::file_index_output< P, Ops >::checked ( object_id  id)
inlinestaticprivate

◆ checked() [2/2]

template<class P , class Ops >
static std::optional< blob_identity > everett::profile_detail::file_index_output< P, Ops >::checked ( std::optional< blob_identity >  target)
inlinestaticprivate

◆ failed()

template<class P , class Ops >
bool everett::profile_detail::file_index_output< P, Ops >::failed ( ) const
inlinenoexcept

◆ finish()

template<class P , class Ops >
object_seal_receipt everett::profile_detail::file_index_output< P, Ops >::finish ( index_metadata< P > const &  metadata)
inline

◆ finished()

template<class P , class Ops >
bool everett::profile_detail::file_index_output< P, Ops >::finished ( ) const
inlinenoexcept

◆ paths() [1/2]

template<class P , class Ops >
object_write_paths const & everett::profile_detail::file_index_output< P, Ops >::paths ( ) const &&
delete

◆ paths() [2/2]

template<class P , class Ops >
object_write_paths const & everett::profile_detail::file_index_output< P, Ops >::paths ( ) const &
inlinenoexcept

◆ size()

template<class P , class Ops >
std::uint64_t everett::profile_detail::file_index_output< P, Ops >::size ( ) const
inlinenoexcept

Member Data Documentation

◆ native_id_

template<class P , class Ops >
object_id everett::profile_detail::file_index_output< P, Ops >::native_id_
private

◆ output_

template<class P , class Ops >
profile_file_output<P, stream_role::borrowed, Ops> everett::profile_detail::file_index_output< P, Ops >::output_
private

◆ target_id_

template<class P , class Ops >
std::optional<blob_identity> everett::profile_detail::file_index_output< P, Ops >::target_id_
private

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