Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::detail::Paged_Bounded_String_Codec< Capacity, SizeType > Struct Template Reference

#include <tpl_paged_value_codec.H>

Collaboration diagram for Aleph::detail::Paged_Bounded_String_Codec< Capacity, SizeType >:
[legend]

Static Public Member Functions

static void encode (const std::string &value, unsigned char *out)
 
static std::string decode (const unsigned char *in)
 
static std::uint32_t add_to_crc (const std::uint32_t crc, const std::string &value)
 

Static Public Attributes

static constexpr std::uint32_t storage_id
 
static constexpr size_t encoded_size = sizeof(SizeType) + Capacity
 

Detailed Description

template<size_t Capacity, typename SizeType = std::uint32_t>
requires (std::is_unsigned_v<SizeType>)
struct Aleph::detail::Paged_Bounded_String_Codec< Capacity, SizeType >

Definition at line 274 of file tpl_paged_value_codec.H.

Member Function Documentation

◆ add_to_crc()

template<size_t Capacity, typename SizeType = std::uint32_t>
static std::uint32_t Aleph::detail::Paged_Bounded_String_Codec< Capacity, SizeType >::add_to_crc ( const std::uint32_t  crc,
const std::string &  value 
)
inlinestatic

◆ decode()

template<size_t Capacity, typename SizeType = std::uint32_t>
static std::string Aleph::detail::Paged_Bounded_String_Codec< Capacity, SizeType >::decode ( const unsigned char *  in)
inlinestatic

◆ encode()

template<size_t Capacity, typename SizeType = std::uint32_t>
static void Aleph::detail::Paged_Bounded_String_Codec< Capacity, SizeType >::encode ( const std::string &  value,
unsigned char *  out 
)
inlinestatic

Member Data Documentation

◆ encoded_size

template<size_t Capacity, typename SizeType = std::uint32_t>
constexpr size_t Aleph::detail::Paged_Bounded_String_Codec< Capacity, SizeType >::encoded_size = sizeof(SizeType) + Capacity
staticconstexpr

Definition at line 283 of file tpl_paged_value_codec.H.

◆ storage_id

template<size_t Capacity, typename SizeType = std::uint32_t>
constexpr std::uint32_t Aleph::detail::Paged_Bounded_String_Codec< Capacity, SizeType >::storage_id
staticconstexpr
Initial value:
=
static_cast<std::uint32_t>(Capacity)),
static_cast<std::uint32_t>(sizeof(SizeType)))
size_t blossom_maximum_cardinality_matching(const GT &g, DynDlist< typename GT::Arc * > &matching, SA sa=SA())
Alias of compute_maximum_cardinality_general_matching().
Definition Blossom.H:466
constexpr std::uint32_t mix_codec_id(const std::uint32_t seed, const std::uint32_t value) noexcept

Definition at line 279 of file tpl_paged_value_codec.H.


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