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 82 of file hardened_hash_test.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 98 of file hardened_hash_test.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 105 of file hardened_hash_test.cpp.

◆ data() [1/2]

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

Definition at line 115 of file hardened_hash_test.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 121 of file hardened_hash_test.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 128 of file hardened_hash_test.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 134 of file hardened_hash_test.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 93 of file hardened_hash_test.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 95 of file hardened_hash_test.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 100 of file hardened_hash_test.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 101 of file hardened_hash_test.cpp.