BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Go to the documentation of this file.
29 namespace graphene {
namespace protocol {
74 auto colon = serial.find(
':');
77 uint32_t( std::stoul(serial.substr(colon+1)) ) );
117 operator uint32_t()
const
123 explicit operator std::string()
const
#define FC_CAPTURE_AND_RETHROW(...)
uint32_t instance() const
Get the instance of this vote_id_type.
std::string to_string(double)
FC_REFLECT_TYPENAME(fc::log_message)
void from_variant(const variant &var, flat_set< T, A... > &vo, uint32_t _max_depth)
vote_id_type(vote_type type, uint32_t instance=0)
Construct this vote_id_type with provided type and instance.
An ID for some votable object.
void set_instance(uint32_t instance)
Set the instance of this vote_id_type.
#define GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION(type)
void to_variant(const flat_set< T, A... > &var, variant &vo, uint32_t _max_depth)
void set_type(vote_type type)
Set the type of this vote_id_type.
#define FC_ASSERT(TEST,...)
Checks a condition and throws an assert_exception if the test is FALSE.
FC_REFLECT_ENUM(graphene::net::core_message_type_enum,(trx_message_type)(block_message_type)(core_message_type_first)(item_ids_inventory_message_type)(blockchain_item_ids_inventory_message_type)(fetch_blockchain_item_ids_message_type)(fetch_items_message_type)(item_not_available_message_type)(hello_message_type)(connection_accepted_message_type)(connection_rejected_message_type)(address_request_message_type)(address_message_type)(closing_connection_message_type)(current_time_request_message_type)(current_time_reply_message_type)(check_firewall_message_type)(check_firewall_reply_message_type)(get_current_connections_request_message_type)(get_current_connections_reply_message_type)(core_message_type_last))(different_chain)(already_connected)(connected_to_self)(not_accepting_connections)(blocked)(invalid_hello_message)(client_too_old))(inbound)(outbound))(firewalled)(not_firewalled))(unable_to_connect)(connection_successful)) namespace std
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
#define FC_REFLECT(TYPE, MEMBERS)
Specializes fc::reflector for TYPE.
vote_id_type & operator=(vote_id_type other)
vote_id_type(const std::string &serial)
Construct this vote_id_type from a serial string in the form "type:instance".
vote_type type() const
Get the type of this vote_id_type.
friend size_t hash_value(vote_id_type v)