xrpld
Loading...
Searching...
No Matches
xrpl::UnsignedInteger< Bits, UInt > Class Template Reference
Collaboration diagram for xrpl::UnsignedInteger< Bits, UInt >:

Public Types

using value_type = UInt

Public Member Functions

void * data () noexcept
void const * data () const noexcept

Static Public Member Functions

template<class Int>
static UnsignedInteger fronumber (Int v)

Static Public Attributes

static std::size_t const kBits = Bits
static std::size_t const kBytes = kBits / 8

Private Attributes

std::array< UInt, kSizevec_

Static Private Attributes

static std::size_t const kSize = Bits / (8 * sizeof(UInt))

Friends

template<class Hasher>
void hash_append (Hasher &h, UnsignedInteger const &a) noexcept
std::ostreamoperator<< (std::ostream &s, UnsignedInteger const &v)

Detailed Description

template<std::size_t Bits, class UInt = std::uint64_t>
class xrpl::UnsignedInteger< Bits, UInt >

Definition at line 85 of file hardened_hash.cpp.

Member Typedef Documentation

◆ value_type

template<std::size_t Bits, class UInt = std::uint64_t>
using xrpl::UnsignedInteger< Bits, UInt >::value_type = UInt

Definition at line 101 of file hardened_hash.cpp.

Member Function Documentation

◆ fronumber()

template<std::size_t Bits, class UInt = std::uint64_t>
template<class Int>
UnsignedInteger xrpl::UnsignedInteger< Bits, UInt >::fronumber ( Int v)
static

Definition at line 108 of file hardened_hash.cpp.

◆ data() [1/2]

template<std::size_t Bits, class UInt = std::uint64_t>
void * xrpl::UnsignedInteger< Bits, UInt >::data ( )
noexcept

Definition at line 118 of file hardened_hash.cpp.

◆ data() [2/2]

template<std::size_t Bits, class UInt = std::uint64_t>
void const * xrpl::UnsignedInteger< Bits, UInt >::data ( ) const
nodiscardnoexcept

Definition at line 124 of file hardened_hash.cpp.

◆ hash_append

template<std::size_t Bits, class UInt = std::uint64_t>
template<class Hasher>
void hash_append ( Hasher & h,
UnsignedInteger< Bits, UInt > const & a )
friend

Definition at line 131 of file hardened_hash.cpp.

◆ operator<<

template<std::size_t Bits, class UInt = std::uint64_t>
std::ostream & operator<< ( std::ostream & s,
UnsignedInteger< Bits, UInt > const & v )
friend

Definition at line 137 of file hardened_hash.cpp.

Member Data Documentation

◆ kSize

template<std::size_t Bits, class UInt = std::uint64_t>
std::size_t const xrpl::UnsignedInteger< Bits, UInt >::kSize = Bits / (8 * sizeof(UInt))
staticprivate

Definition at line 96 of file hardened_hash.cpp.

◆ vec_

template<std::size_t Bits, class UInt = std::uint64_t>
std::array<UInt, kSize> xrpl::UnsignedInteger< Bits, UInt >::vec_
private

Definition at line 98 of file hardened_hash.cpp.

◆ kBits

template<std::size_t Bits, class UInt = std::uint64_t>
std::size_t const xrpl::UnsignedInteger< Bits, UInt >::kBits = Bits
static

Definition at line 103 of file hardened_hash.cpp.

◆ kBytes

template<std::size_t Bits, class UInt = std::uint64_t>
std::size_t const xrpl::UnsignedInteger< Bits, UInt >::kBytes = kBits / 8
static

Definition at line 104 of file hardened_hash.cpp.