29 namespace graphene {
namespace protocol {
74 auto colon = serial.find(
':');
77 uint32_t( std::stoul(serial.substr(colon+1)) ) );
83 content &= 0xffffff00;
84 content |= type & 0xff;
95 assert(instance < 0x01000000);
97 content |= instance << 8;
117 operator uint32_t()
const 123 explicit operator std::string()
const #define FC_REFLECT(TYPE, MEMBERS)
Specializes fc::reflector for TYPE.
void to_variant(const graphene::protocol::vote_id_type &var, fc::variant &vo, uint32_t max_depth=1)
vote_id_type(vote_type type, uint32_t instance=0)
Construct this vote_id_type with provided type and instance.
FC_REFLECT_TYPENAME(fc::log_message)
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
#define GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION(type)
vote_id_type & operator=(vote_id_type other)
void set_type(vote_type type)
Set the type of this vote_id_type.
#define FC_CAPTURE_AND_RETHROW(...)
#define FC_ASSERT(TEST,...)
Checks a condition and throws an assert_exception if the test is FALSE.
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
vote_id_type(const std::string &serial)
Construct this vote_id_type from a serial string in the form "type:instance".
friend size_t hash_value(vote_id_type v)
An ID for some votable object.
void set_instance(uint32_t instance)
Set the instance of this vote_id_type.
std::string to_string(double)
void from_variant(const fc::variant &var, graphene::protocol::vote_id_type &vo, uint32_t max_depth=1)
vote_type type() const
Get the type of this vote_id_type.
uint32_t instance() const
Get the instance of this vote_id_type.