rippled
Public Member Functions | Private Attributes | Friends | List of all members
ripple::SHAMapHash Class Reference
Collaboration diagram for ripple::SHAMapHash:
Collaboration graph
[legend]

Public Member Functions

 SHAMapHash ()=default
 
 SHAMapHash (uint256 const &hash)
 
uint256 const & as_uint256 () const
 
uint256as_uint256 ()
 
bool isZero () const
 
bool isNonZero () const
 
int signum () const
 
void zero ()
 

Private Attributes

uint256 hash_
 

Friends

bool operator== (SHAMapHash const &x, SHAMapHash const &y)
 
bool operator< (SHAMapHash const &x, SHAMapHash const &y)
 
std::ostreamoperator<< (std::ostream &os, SHAMapHash const &x)
 
std::string to_string (SHAMapHash const &x)
 
template<class H >
void hash_append (H &h, SHAMapHash const &x)
 

Detailed Description

Definition at line 32 of file SHAMapHash.h.

Constructor & Destructor Documentation

◆ SHAMapHash() [1/2]

ripple::SHAMapHash::SHAMapHash ( )
default

◆ SHAMapHash() [2/2]

ripple::SHAMapHash::SHAMapHash ( uint256 const &  hash)
explicit

Definition at line 38 of file SHAMapHash.h.

Member Function Documentation

◆ as_uint256() [1/2]

uint256 const& ripple::SHAMapHash::as_uint256 ( ) const

Definition at line 43 of file SHAMapHash.h.

◆ as_uint256() [2/2]

uint256& ripple::SHAMapHash::as_uint256 ( )

Definition at line 48 of file SHAMapHash.h.

◆ isZero()

bool ripple::SHAMapHash::isZero ( ) const

Definition at line 53 of file SHAMapHash.h.

◆ isNonZero()

bool ripple::SHAMapHash::isNonZero ( ) const

Definition at line 58 of file SHAMapHash.h.

◆ signum()

int ripple::SHAMapHash::signum ( ) const

Definition at line 63 of file SHAMapHash.h.

◆ zero()

void ripple::SHAMapHash::zero ( )

Definition at line 68 of file SHAMapHash.h.

Friends And Related Function Documentation

◆ operator==

bool operator== ( SHAMapHash const &  x,
SHAMapHash const &  y 
)
friend

Definition at line 74 of file SHAMapHash.h.

◆ operator<

bool operator< ( SHAMapHash const &  x,
SHAMapHash const &  y 
)
friend

Definition at line 80 of file SHAMapHash.h.

◆ operator<<

std::ostream& operator<< ( std::ostream os,
SHAMapHash const &  x 
)
friend

Definition at line 86 of file SHAMapHash.h.

◆ to_string

std::string to_string ( SHAMapHash const &  x)
friend

Definition at line 92 of file SHAMapHash.h.

◆ hash_append

template<class H >
void hash_append ( H &  h,
SHAMapHash const &  x 
)
friend

Definition at line 99 of file SHAMapHash.h.

Member Data Documentation

◆ hash_

uint256 ripple::SHAMapHash::hash_
private

Definition at line 34 of file SHAMapHash.h.