BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
libraries
protocol
custom_authorities
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
(
43
restriction_function
func,
restriction_argument
arg );
44
extern
template
45
object_restriction_predicate<asset_id_type>
create_predicate_function
(
46
restriction_function
func,
restriction_argument
arg );
47
extern
template
48
object_restriction_predicate<flat_set<asset_id_type>>
create_predicate_function
(
49
restriction_function
func,
restriction_argument
arg );
50
extern
template
51
object_restriction_predicate<asset>
create_predicate_function
(
52
restriction_function
func,
restriction_argument
arg );
53
extern
template
54
object_restriction_predicate<price>
create_predicate_function
(
55
restriction_function
func,
restriction_argument
arg );
56
extern
template
57
object_restriction_predicate<string>
create_predicate_function
(
58
restriction_function
func,
restriction_argument
arg );
59
extern
template
60
object_restriction_predicate<std::vector<char>>
create_predicate_function
(
61
restriction_function
func,
restriction_argument
arg );
62
extern
template
63
object_restriction_predicate<time_point_sec>
create_predicate_function
(
64
restriction_function
func,
restriction_argument
arg );
65
extern
template
66
object_restriction_predicate<account_id_type>
create_predicate_function
(
67
restriction_function
func,
restriction_argument
arg );
68
extern
template
69
object_restriction_predicate<flat_set<account_id_type>>
create_predicate_function
(
70
restriction_function
func,
restriction_argument
arg );
71
extern
template
72
object_restriction_predicate<public_key_type>
create_predicate_function
(
73
restriction_function
func,
restriction_argument
arg );
74
extern
template
75
object_restriction_predicate<authority>
create_predicate_function
(
76
restriction_function
func,
restriction_argument
arg );
77
extern
template
78
object_restriction_predicate<optional<authority>>
create_predicate_function
(
79
restriction_function
func,
restriction_argument
arg );
80
extern
template
81
object_restriction_predicate<bool>
create_predicate_function
(
82
restriction_function
func,
restriction_argument
arg );
83
extern
template
84
object_restriction_predicate<uint8_t>
create_predicate_function
(
85
restriction_function
func,
restriction_argument
arg );
86
extern
template
87
object_restriction_predicate<uint16_t>
create_predicate_function
(
88
restriction_function
func,
restriction_argument
arg );
89
extern
template
90
object_restriction_predicate<uint32_t>
create_predicate_function
(
91
restriction_function
func,
restriction_argument
arg );
92
extern
template
93
object_restriction_predicate<unsigned_int>
create_predicate_function
(
94
restriction_function
func,
restriction_argument
arg );
95
extern
template
96
object_restriction_predicate<extensions_type>
create_predicate_function
(
97
restriction_function
func,
restriction_argument
arg );
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)
Generated on Fri Dec 15 2023 06:12:43 for BitShares-Core by
1.8.17