Scorum
comment.hpp
Go to the documentation of this file.
1 #pragma once
4 
5 namespace scorum {
6 namespace protocol {
7 
9 {
11  {
12  }
13  beneficiary_route_type(const account_name_type& a, const uint16_t& w)
14  : account(a)
15  , weight(w)
16  {
17  }
18 
20  uint16_t weight;
21 
22  // For use by std::sort such that the route is sorted first by name (ascending)
23  bool operator<(const beneficiary_route_type& o) const
24  {
25  return account < o.account;
26  }
27 };
28 
30 {
31  std::vector<beneficiary_route_type> beneficiaries;
32 
33  void validate() const;
34 };
35 
36 typedef static_variant<comment_payout_beneficiaries> comment_options_extension;
37 
38 typedef flat_set<comment_options_extension> comment_options_extensions_type;
39 }
40 }
41 
FC_REFLECT(appender_args,(appender)(stream)) FC_REFLECT_DERIVED(file_appender_args
fc::fixed_string_16 account_name_type
Definition: types.hpp:62
flat_set< comment_options_extension > comment_options_extensions_type
Definition: comment.hpp:38
static_variant< comment_payout_beneficiaries > comment_options_extension
Definition: comment.hpp:36
Definition: asset.cpp:15
bool operator<(const beneficiary_route_type &o) const
Definition: comment.hpp:23
beneficiary_route_type(const account_name_type &a, const uint16_t &w)
Definition: comment.hpp:13
std::vector< beneficiary_route_type > beneficiaries
Definition: comment.hpp:31