rippled
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes | Static Private Attributes | Friends | List of all members
ripple::unsigned_integer< Bits, UInt > Class Template Reference
Collaboration diagram for ripple::unsigned_integer< Bits, UInt >:
Collaboration graph
[legend]

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 unsigned_integer from_number (Int v)
 

Static Public Attributes

static const std::size_t bits = Bits
 
static const std::size_t bytes = bits / 8
 

Private Attributes

std::array< UInt, sizem_vec
 

Static Private Attributes

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

Friends

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

Detailed Description

template<std::size_t Bits, class UInt = std::uint64_t>
class ripple::unsigned_integer< Bits, UInt >

Definition at line 99 of file hardened_hash_test.cpp.

Member Typedef Documentation

◆ value_type

template<std::size_t Bits, class UInt = std::uint64_t>
using ripple::unsigned_integer< Bits, UInt >::value_type = UInt

Definition at line 119 of file hardened_hash_test.cpp.

Member Function Documentation

◆ from_number()

template<std::size_t Bits, class UInt = std::uint64_t>
template<class Int >
static unsigned_integer ripple::unsigned_integer< Bits, UInt >::from_number ( Int  v)
static

Definition at line 126 of file hardened_hash_test.cpp.

◆ data() [1/2]

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

Definition at line 136 of file hardened_hash_test.cpp.

◆ data() [2/2]

template<std::size_t Bits, class UInt = std::uint64_t>
void const* ripple::unsigned_integer< Bits, UInt >::data ( ) const
noexcept

Definition at line 142 of file hardened_hash_test.cpp.

Friends And Related Function Documentation

◆ hash_append

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

Definition at line 149 of file hardened_hash_test.cpp.

◆ operator<<

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

Definition at line 156 of file hardened_hash_test.cpp.

Member Data Documentation

◆ size

template<std::size_t Bits, class UInt = std::uint64_t>
const std::size_t ripple::unsigned_integer< Bits, UInt >::size = Bits / (8 * sizeof(UInt))
staticprivate

Definition at line 114 of file hardened_hash_test.cpp.

◆ m_vec

template<std::size_t Bits, class UInt = std::uint64_t>
std::array<UInt, size> ripple::unsigned_integer< Bits, UInt >::m_vec
private

Definition at line 116 of file hardened_hash_test.cpp.

◆ bits

template<std::size_t Bits, class UInt = std::uint64_t>
const std::size_t ripple::unsigned_integer< Bits, UInt >::bits = Bits
static

Definition at line 121 of file hardened_hash_test.cpp.

◆ bytes

template<std::size_t Bits, class UInt = std::uint64_t>
const std::size_t ripple::unsigned_integer< Bits, UInt >::bytes = bits / 8
static

Definition at line 122 of file hardened_hash_test.cpp.