BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
create_predicate_fwd_3.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="bool uint8_t uint16_t uint32_t unsigned_int extensions_type"
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<bool> create_predicate_function(
44 template
45 object_restriction_predicate<uint8_t> create_predicate_function(
47 template
48 object_restriction_predicate<uint16_t> create_predicate_function(
50 template
51 object_restriction_predicate<uint32_t> create_predicate_function(
53 template
54 object_restriction_predicate<unsigned_int> create_predicate_function(
56 template
57 object_restriction_predicate<extensions_type> create_predicate_function(
59 
60 } } // namespace graphene::protocol
graphene::protocol::create_predicate_function
template object_restriction_predicate< share_type > create_predicate_function(restriction_function func, restriction_argument arg)
Definition: restriction_predicate.hxx:469
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
restriction_predicate.hxx
graphene
Definition: api.cpp:48