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

#include <cola_sections.h>

Public Types

using policy_type = P
 
using borrowed_view = profile_view< P, stream_role::borrowed >
 
using rank_view = rank_groups_view< P::group_size >
 

Public Member Functions

bool active () const noexcept
 
borrowed_view borrowed (unsigned route) const &
 
borrowed_view borrowed (unsigned) const &&=delete
 
rank_view interleave (unsigned route) const &
 
rank_view interleave (unsigned) const &&=delete
 
std::span< std::byte const > false_borrow_bits (unsigned route) const &
 
std::span< std::byte const > false_borrow_bits (unsigned) const &&=delete
 
word_view cut_lcps (unsigned route) const &
 
word_view cut_lcps (unsigned) const &&=delete
 
object_id const & native_id () const &
 
object_id const & native_id () const &&=delete
 
std::optional< blob_identity > const & main_id () const &
 
std::optional< blob_identity > const & main_id () const &&=delete
 
std::optional< object_id > const & secondary_id () const &
 
std::optional< object_id > const & secondary_id () const &&=delete
 
std::uint64_t virtual_size () const
 
cola_section_detail::directory const & layout () const &
 
cola_section_detail::directory const & layout () const &&=delete
 
std::span< std::byte const > section (std::size_t slot) const &
 
std::span< std::byte const > section (std::size_t) const &&=delete
 
cola_index_view< P > view (profile_view< P, stream_role::native > native) const &
 
cola_index_view< P > view (profile_view< P, stream_role::native >) const &&=delete
 
void scan () const
 

Static Public Member Functions

static mapped_cola_index open (file< P > source)
 
static mapped_cola_index open (std::filesystem::path const &path)
 
static mapped_cola_index from_slice (mapped_slice source, file_open_mode mode=file_open_mode::checked)
 

Private Member Functions

 mapped_cola_index (file< P > source, mapped_slice body, cola_section_detail::directory layout, std::array< borrowed_view, 2 > profiles, std::array< rank_view, 2 > ranks, std::array< std::span< std::byte const >, 2 > flags, std::array< word_view, 2 > cuts)
 
void require_active () const
 

Private Attributes

file< P > source_
 
mapped_slice body_
 
cola_section_detail::directory layout_
 
std::array< borrowed_view, 2 > profiles_
 
std::array< rank_view, 2 > ranks_
 
std::array< std::span< std::byte const >, 2 > flags_
 
std::array< word_view, 2 > cuts_
 

Member Typedef Documentation

◆ borrowed_view

template<class P >
using everett::mapped_cola_index< P >::borrowed_view = profile_view<P, stream_role::borrowed>

◆ policy_type

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

◆ rank_view

template<class P >
using everett::mapped_cola_index< P >::rank_view = rank_groups_view<P::group_size>

Constructor & Destructor Documentation

◆ mapped_cola_index()

template<class P >
everett::mapped_cola_index< P >::mapped_cola_index ( file< P >  source,
mapped_slice  body,
cola_section_detail::directory  layout,
std::array< borrowed_view, 2 >  profiles,
std::array< rank_view, 2 >  ranks,
std::array< std::span< std::byte const >, 2 >  flags,
std::array< word_view, 2 >  cuts 
)
inlineprivate

Member Function Documentation

◆ active()

template<class P >
bool everett::mapped_cola_index< P >::active ( ) const
inlinenoexcept

◆ borrowed() [1/2]

template<class P >
borrowed_view everett::mapped_cola_index< P >::borrowed ( unsigned  route) const &
inline

◆ borrowed() [2/2]

template<class P >
borrowed_view everett::mapped_cola_index< P >::borrowed ( unsigned  ) const &&
delete

◆ cut_lcps() [1/2]

template<class P >
word_view everett::mapped_cola_index< P >::cut_lcps ( unsigned  route) const &
inline

◆ cut_lcps() [2/2]

template<class P >
word_view everett::mapped_cola_index< P >::cut_lcps ( unsigned  ) const &&
delete

◆ false_borrow_bits() [1/2]

template<class P >
std::span< std::byte const > everett::mapped_cola_index< P >::false_borrow_bits ( unsigned  route) const &
inline

◆ false_borrow_bits() [2/2]

template<class P >
std::span< std::byte const > everett::mapped_cola_index< P >::false_borrow_bits ( unsigned  ) const &&
delete

◆ from_slice()

template<class P >
static mapped_cola_index everett::mapped_cola_index< P >::from_slice ( mapped_slice  source,
file_open_mode  mode = file_open_mode::checked 
)
inlinestatic

◆ interleave() [1/2]

template<class P >
rank_view everett::mapped_cola_index< P >::interleave ( unsigned  route) const &
inline

◆ interleave() [2/2]

template<class P >
rank_view everett::mapped_cola_index< P >::interleave ( unsigned  ) const &&
delete

◆ layout() [1/2]

template<class P >
cola_section_detail::directory const & everett::mapped_cola_index< P >::layout ( ) const &
inline

◆ layout() [2/2]

template<class P >
cola_section_detail::directory const & everett::mapped_cola_index< P >::layout ( ) const &&
delete

◆ main_id() [1/2]

template<class P >
std::optional< blob_identity > const & everett::mapped_cola_index< P >::main_id ( ) const &
inline

◆ main_id() [2/2]

template<class P >
std::optional< blob_identity > const & everett::mapped_cola_index< P >::main_id ( ) const &&
delete

◆ native_id() [1/2]

template<class P >
object_id const & everett::mapped_cola_index< P >::native_id ( ) const &
inline

◆ native_id() [2/2]

template<class P >
object_id const & everett::mapped_cola_index< P >::native_id ( ) const &&
delete

◆ open() [1/2]

template<class P >
static mapped_cola_index everett::mapped_cola_index< P >::open ( file< P >  source)
inlinestatic

◆ open() [2/2]

template<class P >
static mapped_cola_index everett::mapped_cola_index< P >::open ( std::filesystem::path const &  path)
inlinestatic

◆ require_active()

template<class P >
void everett::mapped_cola_index< P >::require_active ( ) const
inlineprivate

◆ scan()

template<class P >
void everett::mapped_cola_index< P >::scan ( ) const
inline

◆ secondary_id() [1/2]

template<class P >
std::optional< object_id > const & everett::mapped_cola_index< P >::secondary_id ( ) const &
inline

◆ secondary_id() [2/2]

template<class P >
std::optional< object_id > const & everett::mapped_cola_index< P >::secondary_id ( ) const &&
delete

◆ section() [1/2]

template<class P >
std::span< std::byte const > everett::mapped_cola_index< P >::section ( std::size_t  slot) const &
inline

◆ section() [2/2]

template<class P >
std::span< std::byte const > everett::mapped_cola_index< P >::section ( std::size_t  ) const &&
delete

◆ view() [1/2]

template<class P >
cola_index_view< P > everett::mapped_cola_index< P >::view ( profile_view< P, stream_role::native >  native) const &
inline

◆ view() [2/2]

template<class P >
cola_index_view< P > everett::mapped_cola_index< P >::view ( profile_view< P, stream_role::native >  ) const &&
delete

◆ virtual_size()

template<class P >
std::uint64_t everett::mapped_cola_index< P >::virtual_size ( ) const
inline

Member Data Documentation

◆ body_

template<class P >
mapped_slice everett::mapped_cola_index< P >::body_
private

◆ cuts_

template<class P >
std::array<word_view, 2> everett::mapped_cola_index< P >::cuts_
private

◆ flags_

template<class P >
std::array<std::span<std::byte const>, 2> everett::mapped_cola_index< P >::flags_
private

◆ layout_

template<class P >
cola_section_detail::directory everett::mapped_cola_index< P >::layout_
private

◆ profiles_

template<class P >
std::array<borrowed_view, 2> everett::mapped_cola_index< P >::profiles_
private

◆ ranks_

template<class P >
std::array<rank_view, 2> everett::mapped_cola_index< P >::ranks_
private

◆ source_

template<class P >
file<P> everett::mapped_cola_index< P >::source_
private

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