Fabcoin Core
0.16.2
P2P Digital Currency
|
#include <FixedHash.h>
Public Types | |
using | ConstructFromHashType = typename FixedHash< T >::ConstructFromHashType |
using | ConstructFromStringType = typename FixedHash< T >::ConstructFromStringType |
using | ConstructFromPointerType = typename FixedHash< T >::ConstructFromPointerType |
Static Public Member Functions | |
static SecureFixedHash< T > | random () |
Additional Inherited Members | |
Private Types inherited from dev::FixedHash< T > | |
enum | |
The size of the container. More... | |
enum | ConstructFromPointerType |
A dummy flag to avoid accidental construction from pointer. More... | |
enum | ConstructFromStringType |
Method to convert from a string. More... | |
enum | ConstructFromHashType |
Method to convert from a string. More... | |
using | Arith = boost::multiprecision::number< boost::multiprecision::cpp_int_backend< N *8, N *8, boost::multiprecision::unsigned_magnitude, boost::multiprecision::unchecked, void >> |
The corresponding arithmetic type. More... | |
Private Member Functions inherited from dev::FixedHash< T > | |
FixedHash () | |
Construct an empty hash. More... | |
FixedHash (FixedHash< M > const &_h, ConstructFromHashType _t=AlignLeft) | |
Construct from another hash, filling with zeroes or cropping as necessary. More... | |
FixedHash (Arith const &_arith) | |
Convert from the corresponding arithmetic type. More... | |
FixedHash (unsigned _u) | |
Convert from unsigned. More... | |
FixedHash (bytes const &_b, ConstructFromHashType _t=FailIfDifferent) | |
Explicitly construct, copying from a byte array. More... | |
FixedHash (bytesConstRef _b, ConstructFromHashType _t=FailIfDifferent) | |
Explicitly construct, copying from a byte array. More... | |
FixedHash (byte const *_bs, ConstructFromPointerType) | |
Explicitly construct, copying from a bytes in memory with given pointer. More... | |
FixedHash (std::string const &_s, ConstructFromStringType _t=FromHex, ConstructFromHashType _ht=FailIfDifferent) | |
Explicitly construct, copying from a string. More... | |
operator Arith () const | |
Convert to arithmetic type. More... | |
operator bool () const | |
bool | operator== (FixedHash const &_c) const |
bool | operator!= (FixedHash const &_c) const |
bool | operator< (FixedHash const &_c) const |
bool | operator>= (FixedHash const &_c) const |
bool | operator<= (FixedHash const &_c) const |
bool | operator> (FixedHash const &_c) const |
FixedHash & | operator^= (FixedHash const &_c) |
FixedHash | operator^ (FixedHash const &_c) const |
FixedHash & | operator|= (FixedHash const &_c) |
FixedHash | operator| (FixedHash const &_c) const |
FixedHash & | operator&= (FixedHash const &_c) |
FixedHash | operator& (FixedHash const &_c) const |
FixedHash | operator~ () const |
FixedHash & | operator++ () |
bool | contains (FixedHash const &_c) const |
byte & | operator[] (unsigned _i) |
byte | operator[] (unsigned _i) const |
std::string | abridged () const |
std::string | abridgedMiddle () const |
std::string | hex () const |
bytesRef | ref () |
bytesConstRef | ref () const |
byte * | data () |
byte const * | data () const |
bytes | asBytes () const |
std::array< byte, N > & | asArray () |
std::array< byte, N > const & | asArray () const |
void | randomize (Engine &_eng) |
Populate with random data. More... | |
FixedHash & | shiftBloom (FixedHash< M > const &_h) |
bool | containsBloom (FixedHash< M > const &_h) |
FixedHash< M > | bloomPart () const |
unsigned | firstBitSet () const |
Returns the index of the first bit set to one, or size() * 8 if no bits are set. More... | |
void | clear () |
Static Private Member Functions inherited from dev::FixedHash< T > | |
static FixedHash | random () |
Definition at line 224 of file FixedHash.h.
using dev::SecureFixedHash< T >::ConstructFromHashType = typename FixedHash<T>::ConstructFromHashType |
Definition at line 227 of file FixedHash.h.
using dev::SecureFixedHash< T >::ConstructFromPointerType = typename FixedHash<T>::ConstructFromPointerType |
Definition at line 229 of file FixedHash.h.
using dev::SecureFixedHash< T >::ConstructFromStringType = typename FixedHash<T>::ConstructFromStringType |
Definition at line 228 of file FixedHash.h.
|
default |
|
inlineexplicit |
Definition at line 231 of file FixedHash.h.
|
inlineexplicit |
Definition at line 232 of file FixedHash.h.
|
inlineexplicit |
Definition at line 233 of file FixedHash.h.
|
inlineexplicit |
Definition at line 234 of file FixedHash.h.
|
inlineexplicit |
Definition at line 235 of file FixedHash.h.
|
inlineexplicit |
Definition at line 236 of file FixedHash.h.
|
inlineexplicit |
Definition at line 237 of file FixedHash.h.
|
inline |
Definition at line 238 of file FixedHash.h.
|
inline |
|
inline |
Definition at line 298 of file FixedHash.h.
|
inline |
|
inline |
|
inline |
Definition at line 260 of file FixedHash.h.
|
inline |
Definition at line 279 of file FixedHash.h.
|
inline |
Definition at line 286 of file FixedHash.h.
|
inline |
Definition at line 278 of file FixedHash.h.
|
inline |
Definition at line 285 of file FixedHash.h.
|
inline |
Definition at line 261 of file FixedHash.h.
|
inline |
Definition at line 263 of file FixedHash.h.
|
inline |
Definition at line 240 of file FixedHash.h.
|
inline |
Definition at line 259 of file FixedHash.h.
|
inline |
Definition at line 264 of file FixedHash.h.
|
inline |
Definition at line 262 of file FixedHash.h.
|
inline |
Definition at line 275 of file FixedHash.h.
|
inline |
Definition at line 282 of file FixedHash.h.
|
inline |
Definition at line 274 of file FixedHash.h.
|
inline |
Definition at line 281 of file FixedHash.h.
|
inline |
Definition at line 277 of file FixedHash.h.
|
inline |
Definition at line 284 of file FixedHash.h.
|
inline |
Definition at line 276 of file FixedHash.h.
|
inline |
Definition at line 283 of file FixedHash.h.
|
inline |
Definition at line 287 of file FixedHash.h.
|
inlinestatic |
Definition at line 295 of file FixedHash.h.
|
inline |
|
inline |