BitShares-Core  5.0.0
BitShares blockchain implementation and command-line interface 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

fc::hash160::hash160 ( )

Definition at line 40 of file hash160.cpp.

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

Definition at line 42 of file hash160.cpp.

Member Function Documentation

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

Definition at line 52 of file hash160.cpp.

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

Definition at line 42 of file hash160.hpp.

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

Definition at line 61 of file hash160.cpp.

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

Definition at line 67 of file hash160.cpp.

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

Definition at line 48 of file hash160.hpp.

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

Definition at line 50 of file hash160.cpp.

string fc::hash160::str ( ) const

Definition at line 46 of file hash160.cpp.

Friends And Related Function Documentation

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

Definition at line 122 of file hash160.cpp.

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

Definition at line 118 of file hash160.cpp.

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

Definition at line 72 of file hash160.hpp.

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

Definition at line 94 of file hash160.cpp.

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

Definition at line 126 of file hash160.cpp.

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

Definition at line 114 of file hash160.cpp.

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

Definition at line 110 of file hash160.cpp.

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

Definition at line 78 of file hash160.hpp.

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

Definition at line 100 of file hash160.cpp.

Member Data Documentation

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: