Skip to content

Group cxx_data

Modules > cxx_data

Namespaces

Type Name
namespace mdbx::allocation_aware_details

Classes

Type Name
interface ImmutableByteProducer
ImmutableByteProducer C++20 concept.
interface MutableByteProducer
MutableByteProducer C++20 concept.
interface SliceTranscoder
SliceTranscoder C++20 concept.
class mdbx::buffer <class ALLOCATOR, typename CAPACITY_POLICY>
The chunk of data stored inside the buffer or located outside it.
struct mdbx::buffer_pair_spec <typename ALLOCATOR, typename CAPACITY_POLICY>
struct mdbx::buffer_tag
Type tag for delivered buffer template classes.
struct mdbx::default_capacity_policy
struct mdbx::from_base58
Base58 decoder which satisfySliceTranscoder concept.
struct mdbx::from_base64
Base64 decoder which satisfySliceTranscoder concept.
struct mdbx::from_hex
Hexadecimal decoder which satisfy SliceTranscoder concept.
struct mdbx::pair
Combines pair of slices for key and value to represent result of certain operations.
struct mdbx::pair_result
Combines pair of slices for key and value with boolean flag to represent result of certain operations.
struct mdbx::slice
References a data located outside the slice.
struct mdbx::to_base58
Base58 encoder which satisfySliceTranscoder concept.
struct mdbx::to_base64
Base64 encoder which satisfySliceTranscoder concept.
struct mdbx::to_hex
Hexadecimal encoder which satisfy SliceTranscoder concept.
struct mdbx::value_result
Combines data slice with boolean flag to represent result of certain operations.

Public Functions

Type Name
double double_from_key (const slice & key) noexcept
Key-to-Value functions to avoid using custom comparators.
inline ::std::string dump_val (const slice & value)
Dumps the given value to a string: as-is when printable (all bytes in the range 0x20..0x7E), otherwise as a hexadecimal dump.
float float_from_key (const slice & key) noexcept
int32_t int32_from_key (const slice & key) noexcept
int64_t int64_from_key (const slice & key) noexcept
int64_t jsonInteger_from_key (const slice & key) noexcept
uint64_t key_from_double (double ieee754_64bit) noexcept
uint32_t key_from_float (float ieee754_32bit) noexcept
uint32_t key_from_int32 (int32_t i32) noexcept
uint64_t key_from_int64 (int64_t i64) noexcept
uint64_t key_from_jsonInteger (int64_t json_integer) noexcept
Value-to-Key functions to avoid using custom comparators.
uint64_t key_from_ptrdouble (const double *const ieee754_64bit) noexcept
uint32_t key_from_ptrfloat (const float *const ieee754_32bit) noexcept

Public Functions Documentation

function double_from_key

Key-to-Value functions to avoid using custom comparators.

inline double double_from_key (
    const slice & key
) noexcept

See also: mdbx_double_from_key()


function dump_val

Dumps the given value to a string: as-is when printable (all bytes in the range 0x20..0x7E), otherwise as a hexadecimal dump.

inline ::std::string dump_val (
    const slice & value
) 

Returns:

<empty> for an empty value, <nullptr.N> for a non-empty value with a null data pointer.

See also: mdbx_dump_val()


function float_from_key

inline float float_from_key (
    const slice & key
) noexcept

See also: mdbx_float_from_key()


function int32_from_key

inline int32_t int32_from_key (
    const slice & key
) noexcept

See also: mdbx_int32_from_key()


function int64_from_key

inline int64_t int64_from_key (
    const slice & key
) noexcept

See also: mdbx_int64_from_key()


function jsonInteger_from_key

inline int64_t jsonInteger_from_key (
    const slice & key
) noexcept

See also: mdbx_jsonInteger_from_key()


function key_from_double

inline uint64_t key_from_double (
    double ieee754_64bit
) noexcept

See also: mdbx_key_from_double()


function key_from_float

inline uint32_t key_from_float (
    float ieee754_32bit
) noexcept

See also: mdbx_key_from_float()


function key_from_int32

inline uint32_t key_from_int32 (
    int32_t i32
) noexcept

See also: mdbx_key_from_int32()


function key_from_int64

inline uint64_t key_from_int64 (
    int64_t i64
) noexcept

See also: mdbx_key_from_int64()


function key_from_jsonInteger

Value-to-Key functions to avoid using custom comparators.

inline uint64_t key_from_jsonInteger (
    int64_t json_integer
) noexcept

These build keys which are comparable without a custom comparator, see mdbx_key_from_double() and the Value-to-Key functions group. The returned integers should be stored with key_mode::ordinal.

See also: mdbx_key_from_jsonInteger()


function key_from_ptrdouble

inline uint64_t key_from_ptrdouble (
    const double *const ieee754_64bit
) noexcept

See also: mdbx_key_from_ptrdouble()


function key_from_ptrfloat

inline uint32_t key_from_ptrfloat (
    const float *const ieee754_32bit
) noexcept

See also: mdbx_key_from_ptrfloat()