Scorum
|
#include <shared_authority.hpp>
Public Types | |
typedef fc::shared_flat_map< account_name_type, authority_weight_type > | account_authority_map |
typedef fc::shared_flat_map< public_key_type, authority_weight_type > | key_authority_map |
Public Member Functions | |
template<typename Allocator > | |
shared_authority (const authority &a, const Allocator &alloc) | |
shared_authority (const shared_authority &cpy) | |
template<typename Allocator > | |
shared_authority (const Allocator &alloc) | |
template<typename Allocator , class... Args> | |
shared_authority (const Allocator &alloc, uint32_t weight_threshold, Args... auths) | |
operator authority () const | |
shared_authority & | operator= (const authority &a) |
void | add_authority (const public_key_type &k, authority_weight_type w) |
void | add_authority (const account_name_type &k, authority_weight_type w) |
template<typename AuthType > | |
void | add_authorities (AuthType k, authority_weight_type w) |
template<typename AuthType , class... Args> | |
void | add_authorities (AuthType k, authority_weight_type w, Args... auths) |
std::vector< public_key_type > | get_keys () const |
bool | is_impossible () const |
uint32_t | num_auths () const |
void | clear () |
void | validate () const |
Public Attributes | |
uint32_t | weight_threshold = 0 |
account_authority_map | account_auths |
key_authority_map | key_auths |
The purpose of this class is to represent an authority object in a manner compatible with shared memory storage. This requires all dynamic fields to be allocated with the same allocator that allocated the shared_authority.
Definition at line 17 of file shared_authority.hpp.
typedef fc::shared_flat_map<account_name_type, authority_weight_type> scorum::chain::shared_authority::account_authority_map |
Definition at line 85 of file shared_authority.hpp.
typedef fc::shared_flat_map<public_key_type, authority_weight_type> scorum::chain::shared_authority::key_authority_map |
Definition at line 86 of file shared_authority.hpp.
|
inline |
Definition at line 24 of file shared_authority.hpp.
|
inline |
Definition at line 37 of file shared_authority.hpp.
|
inline |
Definition at line 45 of file shared_authority.hpp.
|
inline |
Definition at line 52 of file shared_authority.hpp.
|
inline |
Definition at line 67 of file shared_authority.hpp.
|
inline |
Definition at line 72 of file shared_authority.hpp.
void scorum::chain::shared_authority::add_authority | ( | const account_name_type & | k, |
authority_weight_type | w | ||
) |
Definition at line 43 of file shared_authority.cpp.
void scorum::chain::shared_authority::add_authority | ( | const public_key_type & | k, |
authority_weight_type | w | ||
) |
Definition at line 38 of file shared_authority.cpp.
void scorum::chain::shared_authority::clear | ( | ) |
Definition at line 72 of file shared_authority.cpp.
std::vector< public_key_type > scorum::chain::shared_authority::get_keys | ( | ) | const |
Definition at line 48 of file shared_authority.cpp.
bool scorum::chain::shared_authority::is_impossible | ( | ) | const |
Definition at line 57 of file shared_authority.cpp.
uint32_t scorum::chain::shared_authority::num_auths | ( | ) | const |
Definition at line 67 of file shared_authority.cpp.
scorum::chain::shared_authority::operator authority | ( | ) | const |
Definition at line 6 of file shared_authority.cpp.
shared_authority & scorum::chain::shared_authority::operator= | ( | const authority & | a | ) |
Definition at line 23 of file shared_authority.cpp.
void scorum::chain::shared_authority::validate | ( | ) | const |
Definition at line 78 of file shared_authority.cpp.
account_authority_map scorum::chain::shared_authority::account_auths |
Definition at line 89 of file shared_authority.hpp.
key_authority_map scorum::chain::shared_authority::key_auths |
Definition at line 90 of file shared_authority.hpp.
uint32_t scorum::chain::shared_authority::weight_threshold = 0 |
Definition at line 88 of file shared_authority.hpp.