Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
StandardMap Class Reference

Public Member Functions

 StandardMap ()=default
 
 StandardMap (Alphabet _alphabet, unsigned _count, unsigned _minKey, unsigned _diffKey)
 
vector< pair< bytes, bytes > > make () const
 

Static Private Member Functions

static bytes randomWord (bytesConstRef _alphabet, unsigned _min, unsigned _diff, h256 *_seed)
 
static bytes randomBytes (unsigned _min, unsigned _diff, h256 *_seed)
 
static bytes randomValue (h256 *_seed)
 

Private Attributes

Alphabet m_alphabet
 
unsigned m_count
 
unsigned m_minKey
 
unsigned m_diffKey
 

Detailed Description

Definition at line 92 of file main.cpp.

Constructor & Destructor Documentation

StandardMap::StandardMap ( )
default
StandardMap::StandardMap ( Alphabet  _alphabet,
unsigned  _count,
unsigned  _minKey,
unsigned  _diffKey 
)
inline

Definition at line 96 of file main.cpp.

Member Function Documentation

vector<pair<bytes, bytes> > StandardMap::make ( ) const
inline

Definition at line 98 of file main.cpp.

Here is the call graph for this function:

static bytes StandardMap::randomBytes ( unsigned  _min,
unsigned  _diff,
h256 _seed 
)
inlinestaticprivate

Definition at line 131 of file main.cpp.

Here is the call graph for this function:

static bytes StandardMap::randomValue ( h256 _seed)
inlinestaticprivate

Definition at line 139 of file main.cpp.

Here is the call graph for this function:

static bytes StandardMap::randomWord ( bytesConstRef  _alphabet,
unsigned  _min,
unsigned  _diff,
h256 _seed 
)
inlinestaticprivate

Definition at line 120 of file main.cpp.

Here is the call graph for this function:

Member Data Documentation

Alphabet StandardMap::m_alphabet
private

Definition at line 115 of file main.cpp.

unsigned StandardMap::m_count
private

Definition at line 116 of file main.cpp.

unsigned StandardMap::m_diffKey
private

Definition at line 118 of file main.cpp.

unsigned StandardMap::m_minKey
private

Definition at line 117 of file main.cpp.


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