BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
fc::hash160 Class Reference

#include <hash160.hpp>

Classes

class  encoder
 

Public Member Functions

 hash160 ()
 
 hash160 (const string &hex_str)
 
string str () const
 
 operator string () const
 
char * data () const
 

Static Public Member Functions

static constexpr size_t data_size ()
 
static hash160 hash (const char *d, uint32_t dlen)
 
static hash160 hash (const string &)
 
template<typename T >
static hash160 hash (const T &t)
 

Public Attributes

boost::endian::little_uint32_buf_t _hash [5]
 

Friends

template<typename T >
T & operator<< (T &ds, const hash160 &ep)
 
template<typename T >
T & operator>> (T &ds, hash160 &ep)
 
hash160 operator<< (const hash160 &h1, uint32_t i)
 
bool operator== (const hash160 &h1, const hash160 &h2)
 
bool operator!= (const hash160 &h1, const hash160 &h2)
 
hash160 operator^ (const hash160 &h1, const hash160 &h2)
 
bool operator>= (const hash160 &h1, const hash160 &h2)
 
bool operator> (const hash160 &h1, const hash160 &h2)
 
bool operator< (const hash160 &h1, const hash160 &h2)
 

Detailed Description

Definition at line 32 of file hash160.hpp.

Constructor & Destructor Documentation

◆ hash160() [1/2]

fc::hash160::hash160 ( )

Definition at line 40 of file hash160.cpp.

◆ hash160() [2/2]

fc::hash160::hash160 ( const string &  hex_str)
explicit

Definition at line 42 of file hash160.cpp.

Member Function Documentation

◆ data()

char * fc::hash160::data ( ) const

Definition at line 52 of file hash160.cpp.

◆ data_size()

static constexpr size_t fc::hash160::data_size ( )
inlinestaticconstexpr

Definition at line 42 of file hash160.hpp.

◆ hash() [1/3]

hash160 fc::hash160::hash ( const char *  d,
uint32_t  dlen 
)
static

Definition at line 61 of file hash160.cpp.

◆ hash() [2/3]

hash160 fc::hash160::hash ( const string &  s)
static

Definition at line 67 of file hash160.cpp.

◆ hash() [3/3]

template<typename T >
static hash160 fc::hash160::hash ( const T &  t)
inlinestatic

Definition at line 48 of file hash160.hpp.

◆ operator string()

fc::hash160::operator string ( ) const
explicit

Definition at line 50 of file hash160.cpp.

◆ str()

string fc::hash160::str ( ) const

Definition at line 46 of file hash160.cpp.

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const hash160 h1,
const hash160 h2 
)
friend

Definition at line 122 of file hash160.cpp.

◆ operator<

bool operator< ( const hash160 h1,
const hash160 h2 
)
friend

Definition at line 118 of file hash160.cpp.

◆ operator<< [1/2]

hash160 operator<< ( const hash160 h1,
uint32_t  i 
)
friend

Definition at line 94 of file hash160.cpp.

◆ operator<< [2/2]

template<typename T >
T& operator<< ( T &  ds,
const hash160 ep 
)
friend

Definition at line 72 of file hash160.hpp.

◆ operator==

bool operator== ( const hash160 h1,
const hash160 h2 
)
friend

Definition at line 126 of file hash160.cpp.

◆ operator>

bool operator> ( const hash160 h1,
const hash160 h2 
)
friend

Definition at line 114 of file hash160.cpp.

◆ operator>=

bool operator>= ( const hash160 h1,
const hash160 h2 
)
friend

Definition at line 110 of file hash160.cpp.

◆ operator>>

template<typename T >
T& operator>> ( T &  ds,
hash160 ep 
)
friend

Definition at line 78 of file hash160.hpp.

◆ operator^

hash160 operator^ ( const hash160 h1,
const hash160 h2 
)
friend

Definition at line 100 of file hash160.cpp.

Member Data Documentation

◆ _hash

boost::endian::little_uint32_buf_t fc::hash160::_hash[5]

Definition at line 90 of file hash160.hpp.


The documentation for this class was generated from the following files: