BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
create_predicate_fwd.hxx
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019 Contributors.
3  *
4  * The MIT License
5  *
6  * Permission is hereby granted, free of charge, to any person obtaining a copy
7  * of this software and associated documentation files (the "Software"), to deal
8  * in the Software without restriction, including without limitation the rights
9  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10  * copies of the Software, and to permit persons to whom the Software is
11  * furnished to do so, subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be included in
14  * all copies or substantial portions of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22  * THE SOFTWARE.
23  */
24 
25 /* This file contains forward declarations for externalized specializations of the create_predicate_function
26  * template. Generate using the following shell code, and paste below.
27 
28 FWD_FIELD_TYPES="share_type asset_id_type flat_set<asset_id_type> asset price"
29 FWD_FIELD_TYPES="$FWD_FIELD_TYPES string std::vector<char> time_point_sec"
30 FWD_FIELD_TYPES="$FWD_FIELD_TYPES account_id_type flat_set<account_id_type> public_key_type authority"
31 FWD_FIELD_TYPES="$FWD_FIELD_TYPES optional<authority>"
32 FWD_FIELD_TYPES="$FWD_FIELD_TYPES bool uint8_t uint16_t uint32_t unsigned_int extensions_type"
33 
34 for T in $FWD_FIELD_TYPES; do
35  echo "extern template"
36  echo "object_restriction_predicate<$T> create_predicate_function( "
37  echo " restriction_function func, restriction_argument arg );"
38 done
39  * ---------------- CUT ---------------- */
40 
41 extern template
42 object_restriction_predicate<share_type> create_predicate_function(
44 extern template
45 object_restriction_predicate<asset_id_type> create_predicate_function(
47 extern template
48 object_restriction_predicate<flat_set<asset_id_type>> create_predicate_function(
50 extern template
51 object_restriction_predicate<asset> create_predicate_function(
53 extern template
54 object_restriction_predicate<price> create_predicate_function(
56 extern template
57 object_restriction_predicate<string> create_predicate_function(
59 extern template
60 object_restriction_predicate<std::vector<char>> create_predicate_function(
62 extern template
63 object_restriction_predicate<time_point_sec> create_predicate_function(
65 extern template
66 object_restriction_predicate<account_id_type> create_predicate_function(
68 extern template
69 object_restriction_predicate<flat_set<account_id_type>> create_predicate_function(
71 extern template
72 object_restriction_predicate<public_key_type> create_predicate_function(
74 extern template
75 object_restriction_predicate<authority> create_predicate_function(
77 extern template
78 object_restriction_predicate<optional<authority>> create_predicate_function(
80 extern template
81 object_restriction_predicate<bool> create_predicate_function(
83 extern template
84 object_restriction_predicate<uint8_t> create_predicate_function(
86 extern template
87 object_restriction_predicate<uint16_t> create_predicate_function(
89 extern template
90 object_restriction_predicate<uint32_t> create_predicate_function(
92 extern template
93 object_restriction_predicate<unsigned_int> create_predicate_function(
95 extern template
96 object_restriction_predicate<extensions_type> create_predicate_function(
graphene::protocol::restriction_function
restriction::function_type restriction_function
Definition: restriction_predicate.hxx:35
graphene::protocol::restriction_argument
restriction::argument_type restriction_argument
Definition: restriction_predicate.hxx:36
create_predicate_function
template object_restriction_predicate< share_type > create_predicate_function(restriction_function func, restriction_argument arg)