plebble
us::gov::engine::diff Struct Referencefinal

#include <diff.h>

Inheritance diagram for us::gov::engine::diff:
Collaboration diagram for us::gov::engine::diff:

Public Types

typedef map< int, app::delta * > b
 
typedef app::hasher_t hasher_t
 
typedef app::hash_t hash_t
 

Public Member Functions

 diff ()
 
 diff (const diff &)=delete
 
 ~diff ()
 
void dump (ostream &) const
 
uint64_t add (int appid, app::local_delta *g)
 
bool add (local_deltas *)
 
void close ()
 
const hash_thash () const
 
void to_stream (ostream &) const
 

Static Public Member Functions

static hash_t hash (const string &)
 
static diffcreate (istream &)
 

Public Attributes

hash_t hash_cached
 
bool h {false}
 
hash_t prev
 
uint64_t id
 
mutex mx
 
pow_t proof_of_work
 
mutex mx_proof_of_work
 

Member Typedef Documentation

◆ b

◆ hash_t

◆ hasher_t

Constructor & Destructor Documentation

◆ diff() [1/2]

us::gov::engine::diff::diff ( )
inline

◆ diff() [2/2]

us::gov::engine::diff::diff ( const diff )
delete

◆ ~diff()

us::gov::engine::diff::~diff ( )
inline

Member Function Documentation

◆ add() [1/2]

uint64_t us::gov::engine::diff::add ( int  appid,
app::local_delta g 
)

◆ add() [2/2]

bool us::gov::engine::diff::add ( local_deltas )

◆ close()

void us::gov::engine::diff::close ( )

◆ create()

static diff* us::gov::engine::diff::create ( istream &  )
static

◆ dump()

void us::gov::engine::diff::dump ( ostream &  ) const

◆ hash() [1/2]

const hash_t& us::gov::engine::diff::hash ( ) const

◆ hash() [2/2]

static hash_t us::gov::engine::diff::hash ( const string &  )
static

◆ to_stream()

void us::gov::engine::diff::to_stream ( ostream &  ) const

Member Data Documentation

◆ h

bool us::gov::engine::diff::h {false}
mutable

◆ hash_cached

hash_t us::gov::engine::diff::hash_cached
mutable

◆ id

uint64_t us::gov::engine::diff::id

◆ mx

mutex us::gov::engine::diff::mx

◆ mx_proof_of_work

mutex us::gov::engine::diff::mx_proof_of_work

◆ prev

hash_t us::gov::engine::diff::prev

◆ proof_of_work

pow_t us::gov::engine::diff::proof_of_work

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