BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface software
create_predicate_fwd_2.cpp
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 
26 
27 /* This file contains explicit specializations of the create_predicate_function template.
28  * Generate using the following shell code, and paste below.
29 
30 FWD_FIELD_TYPES="account_id_type flat_set<account_id_type> public_key_type authority optional<authority>"
31 
32 for T in $FWD_FIELD_TYPES; do
33  echo "template"
34  echo "object_restriction_predicate<$T> create_predicate_function( "
35  echo " restriction_function func, restriction_argument arg );"
36 done
37  */
38 
39 namespace graphene { namespace protocol {
40 
41 template
42 object_restriction_predicate<account_id_type> create_predicate_function(
44 template
45 object_restriction_predicate<flat_set<account_id_type>> create_predicate_function(
47 template
48 object_restriction_predicate<public_key_type> create_predicate_function(
50 template
51 object_restriction_predicate<authority> create_predicate_function(
53 template
54 object_restriction_predicate<optional<authority>> create_predicate_function(
56 
57 } } // namespace graphene::protocol
Definition: api.cpp:56
restriction::argument_type restriction_argument
restriction::function_type restriction_function
template object_restriction_predicate< share_type > create_predicate_function(restriction_function func, restriction_argument arg)