plebble
us::gov::engine::daemon::votes_t Struct Referencefinal

#include <daemon.h>

Public Member Functions

void clear ()
 
void dump (const string &prefix, ostream &os) const
 
bool add (const pubkey_t::hash_t &, const diff::hash_t &v)
 
diff::hash_t select ()
 
void logline (ostream &os) const
 

Public Attributes

unordered_set< pubkey_t::hash_tvoters
 
unordered_map< diff::hash_t, uint64_t > votes
 
mutex mx
 

Member Function Documentation

◆ add()

bool us::gov::engine::daemon::votes_t::add ( const pubkey_t::hash_t ,
const diff::hash_t v 
)

◆ clear()

void us::gov::engine::daemon::votes_t::clear ( )

◆ dump()

void us::gov::engine::daemon::votes_t::dump ( const string &  prefix,
ostream &  os 
) const

◆ logline()

void us::gov::engine::daemon::votes_t::logline ( ostream &  os) const

◆ select()

diff::hash_t us::gov::engine::daemon::votes_t::select ( )

Member Data Documentation

◆ mx

mutex us::gov::engine::daemon::votes_t::mx
mutable

◆ voters

unordered_set<pubkey_t::hash_t> us::gov::engine::daemon::votes_t::voters

◆ votes

unordered_map<diff::hash_t,uint64_t> us::gov::engine::daemon::votes_t::votes

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