BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
libraries
protocol
custom_authorities
create_predicate_fwd_1.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
25
#include "
restriction_predicate.hxx
"
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="share_type asset_id_type flat_set<asset_id_type> asset price"
31
FWD_FIELD_TYPES="$FWD_FIELD_TYPES string std::vector<char> time_point_sec"
32
33
for T in $FWD_FIELD_TYPES; do
34
echo "template"
35
echo "object_restriction_predicate<$T> create_predicate_function( "
36
echo " restriction_function func, restriction_argument arg );"
37
done
38
*/
39
40
namespace
graphene
{
namespace
protocol {
41
42
template
43
object_restriction_predicate<share_type>
create_predicate_function
(
44
restriction_function
func,
restriction_argument
arg );
45
template
46
object_restriction_predicate<asset_id_type>
create_predicate_function
(
47
restriction_function
func,
restriction_argument
arg );
48
template
49
object_restriction_predicate<flat_set<asset_id_type>>
create_predicate_function
(
50
restriction_function
func,
restriction_argument
arg );
51
template
52
object_restriction_predicate<asset>
create_predicate_function
(
53
restriction_function
func,
restriction_argument
arg );
54
template
55
object_restriction_predicate<price>
create_predicate_function
(
56
restriction_function
func,
restriction_argument
arg );
57
template
58
object_restriction_predicate<string>
create_predicate_function
(
59
restriction_function
func,
restriction_argument
arg );
60
template
61
object_restriction_predicate<std::vector<char>>
create_predicate_function
(
62
restriction_function
func,
restriction_argument
arg );
63
template
64
object_restriction_predicate<time_point_sec>
create_predicate_function
(
65
restriction_function
func,
restriction_argument
arg );
66
67
} }
// 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
Generated on Fri Dec 15 2023 06:12:43 for BitShares-Core by
1.8.17