Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
permission_link_object.hpp
Go to the documentation of this file.
1#pragma once
3
5
6namespace sysio { namespace chain {
26 class permission_link_object : public chainbase::object<permission_link_object_type, permission_link_object> {
28
29 id_type id;
31 account_name account;
33 account_name code;
36 action_name message_type;
39 permission_name required_permission;
40 };
41
42 struct by_action_name;
43 struct by_permission_name;
46 indexed_by<
47 ordered_unique<tag<by_id>,
48 BOOST_MULTI_INDEX_MEMBER(permission_link_object, permission_link_object::id_type, id)
49 >,
50 ordered_unique<tag<by_action_name>,
51 composite_key<permission_link_object,
52 BOOST_MULTI_INDEX_MEMBER(permission_link_object, account_name, account),
53 BOOST_MULTI_INDEX_MEMBER(permission_link_object, account_name, code),
54 BOOST_MULTI_INDEX_MEMBER(permission_link_object, action_name, message_type)
55 >
56 >,
57 ordered_unique<tag<by_permission_name>,
58 composite_key<permission_link_object,
59 BOOST_MULTI_INDEX_MEMBER(permission_link_object, account_name, account),
60 BOOST_MULTI_INDEX_MEMBER(permission_link_object, permission_name, required_permission),
61 BOOST_MULTI_INDEX_MEMBER(permission_link_object, permission_link_object::id_type, id)
62 >
63 >
64 >
65 >;
66
67 namespace config {
68 template<>
70 static const uint64_t overhead = overhead_per_row_per_index_ram_bytes * 3;
71 static const uint64_t value = 40 + overhead;
72 };
73 }
74} } // sysio::chain
75
77
78FC_REFLECT(sysio::chain::permission_link_object, (account)(code)(message_type)(required_permission))
#define OBJECT_CTOR(...)
Definition types.hpp:39
#define CHAINBASE_SET_INDEX_TYPE(OBJECT_TYPE, INDEX_TYPE)
boost::multi_index_container< Object, Args..., chainbase::node_allocator< Object > > shared_multi_index_container
chainbase::shared_multi_index_container< permission_link_object, indexed_by< ordered_unique< tag< by_id >, >, ordered_unique< tag< by_action_name >, composite_key< permission_link_object, BOOST_MULTI_INDEX_MEMBER(permission_link_object, account_name, account), BOOST_MULTI_INDEX_MEMBER(permission_link_object, account_name, code), > >, ordered_unique< tag< by_permission_name >, composite_key< permission_link_object, BOOST_MULTI_INDEX_MEMBER(permission_link_object, account_name, account), BOOST_MULTI_INDEX_MEMBER(permission_link_object, permission_name, required_permission), > > > > permission_link_index
sysio::chain::action_name action_name
#define value
Definition pkcs11.h:157
#define FC_REFLECT(TYPE, MEMBERS)
Specializes fc::reflector for TYPE.
Definition reflect.hpp:311
unsigned __int64 uint64_t
Definition stdint.h:136
Immutable except for fc::from_variant.
Definition name.hpp:43