-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathArithmeticConversionTraits_8h_source.html
220 lines (218 loc) · 29 KB
/
ArithmeticConversionTraits_8h_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>DGtal: ArithmeticConversionTraits.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.3/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">DGtal
 <span id="projectnumber">1.4.2</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('ArithmeticConversionTraits_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">ArithmeticConversionTraits.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>  </div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  </div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#if defined(ArithmeticConversionTraits_RECURSES)</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#error Recursive header files inclusion detected in ArithmeticConversionTraits.h</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#else </span><span class="comment">// defined(ArithmeticConversionTraits_RECURSES)</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="comment"></span>#define ArithmeticConversionTraits_RECURSES</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  </div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#if !defined ArithmeticConversionTraits_h</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#define ArithmeticConversionTraits_h</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  </div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="comment">// Inclusions</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="preprocessor">#include <type_traits></span></div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="preprocessor">#include "DGtal/base/Common.h"</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  </div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="keyword">namespace </span><a class="code" href="namespaceDGtal.html">DGtal</a></div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> {</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  </div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="comment">// template class ArithmeticConversionTraits</span></div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> <span class="comment"></span> <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">typename</span> U, <span class="keyword">typename</span> Enable = <span class="keywordtype">void</span>></div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="structDGtal_1_1ArithmeticConversionTraits.html"> 92</a></span>  <span class="keyword">struct </span><a class="code" href="structDGtal_1_1ArithmeticConversionTraits.html">ArithmeticConversionTraits</a></div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  {</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  };</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  </div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">typename</span> U></div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="structDGtal_1_1ArithmeticConversionTraits_3_01T_00_01U_00_01typename_01std_1_1enable__if_3_01_9_25eb7aff75c55bf534e325120cc74d30.html"> 101</a></span>  <span class="keyword">struct </span><a class="code" href="structDGtal_1_1ArithmeticConversionTraits.html">ArithmeticConversionTraits</a>< T, U,</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  typename std::enable_if<</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  ! std::is_same< T, typename std::remove_cv< typename std::remove_reference<T>::type >::type >::value</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  || ! std::is_same< U, typename std::remove_cv< typename std::remove_reference<U>::type >::type >::value >::type ></div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  : <a class="code" href="structDGtal_1_1ArithmeticConversionTraits.html">ArithmeticConversionTraits</a><</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  typename std::remove_cv< typename std::remove_reference<T>::type >::type,</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  typename std::remove_cv< typename std::remove_reference<U>::type >::type ></div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  {</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  };</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  </div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  </div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">typename</span> U></div>
<div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="structDGtal_1_1ArithmeticConversionTraits_3_01T_00_01U_00_01typename_01std_1_1enable__if_3_01std2787cbba3903f94501b19c9830eb81d4.html"> 120</a></span>  <span class="keyword">struct </span><a class="code" href="structDGtal_1_1ArithmeticConversionTraits.html">ArithmeticConversionTraits</a>< T, U,</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  typename std::enable_if< std::is_arithmetic<T>::value</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  && std::is_arithmetic<U>::value ><a class="code" href="structDGtal_1_1ArithmeticConversionTraits_3_01T_00_01U_00_01typename_01std_1_1enable__if_3_01std2787cbba3903f94501b19c9830eb81d4.html#a52b84cde1ad23da9c4b144a94c96a3f0">::type</a> ></div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  {</div>
<div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="structDGtal_1_1ArithmeticConversionTraits_3_01T_00_01U_00_01typename_01std_1_1enable__if_3_01std2787cbba3903f94501b19c9830eb81d4.html#a52b84cde1ad23da9c4b144a94c96a3f0"> 124</a></span>  <span class="keyword">using</span> <a class="code" href="structDGtal_1_1ArithmeticConversionTraits_3_01T_00_01U_00_01typename_01std_1_1enable__if_3_01std2787cbba3903f94501b19c9830eb81d4.html#a52b84cde1ad23da9c4b144a94c96a3f0">type</a> = <span class="keyword">typename</span> std::common_type<T, U>::type; </div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  };</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  </div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">typename</span> U></div>
<div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="namespaceDGtal.html#a55bbc4405f35f8a03161e41068432454"> 135</a></span>  <span class="keyword">using</span> <a class="code" href="namespaceDGtal.html#a55bbc4405f35f8a03161e41068432454">ArithmeticConversionType</a> = <span class="keyword">typename</span> <a class="code" href="structDGtal_1_1ArithmeticConversionTraits.html">ArithmeticConversionTraits<T, U>::type</a>;</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  </div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">typename</span> U, <span class="keyword">typename</span> Enable = <span class="keywordtype">void</span>></div>
<div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="structDGtal_1_1IsArithmeticConversionValid.html"> 145</a></span>  <span class="keyword">struct </span><a class="code" href="structDGtal_1_1IsArithmeticConversionValid.html">IsArithmeticConversionValid</a></div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  : std::false_type</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  {</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  };</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  </div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">typename</span> U></div>
<div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="structDGtal_1_1IsArithmeticConversionValid_3_01T_00_01U_00_01typename_01std_1_1conditional_3_01f3d12afaad57391e67b8a4fff74de6483.html"> 159</a></span>  <span class="keyword">struct </span><a class="code" href="structDGtal_1_1IsArithmeticConversionValid.html">IsArithmeticConversionValid</a><T, U,</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  typename std::conditional<false, ArithmeticConversionType<T, U>, void>::type ></div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  : std::true_type</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  {</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  };</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  </div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  </div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <span class="keyword">template</span> <</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keyword">typename</span> LHS,</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <span class="keyword">typename</span> RHS,</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <span class="keyword">typename</span>... Args ></div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <span class="keyword">inline</span></div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <a class="code" href="namespaceDGtal.html#a55bbc4405f35f8a03161e41068432454">ArithmeticConversionType<LHS, RHS></a></div>
<div class="line"><a name="l00182"></a><span class="lineno"><a class="line" href="namespaceDGtal.html#abc6d219dcad7382fbe63f8b98941d0d8"> 182</a></span>  <a class="code" href="namespaceDGtal.html#abc6d219dcad7382fbe63f8b98941d0d8">constructFromArithmeticConversion</a>( LHS <span class="keyword">const</span>& lhs, RHS <span class="keyword">const</span>& rhs, Args &&... args )</div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  {</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  boost::ignore_unused_variable_warning(lhs);</div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  boost::ignore_unused_variable_warning(rhs);</div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  </div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceDGtal.html#a55bbc4405f35f8a03161e41068432454">ArithmeticConversionType<LHS, RHS></a>( std::forward<Args>(args)... );</div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  }</div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  </div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> <span class="preprocessor">#ifdef WITH_GMP</span></div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keyword">typename</span> GMP1, <span class="keyword">typename</span> GMP2></div>
<div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="structDGtal_1_1ArithmeticConversionTraits_3_01T_00_01____gmp__expr_3_01GMP1_00_01GMP2_01_4_00_0133a16a4dabbd5969379c467370a1b33e.html"> 199</a></span>  <span class="keyword">struct </span><a class="code" href="structDGtal_1_1ArithmeticConversionTraits.html">ArithmeticConversionTraits</a><T, __gmp_expr<GMP1, GMP2>,</div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  typename std::enable_if< std::is_integral<T>::value ><a class="code" href="structDGtal_1_1ArithmeticConversionTraits_3_01T_00_01____gmp__expr_3_01GMP1_00_01GMP2_01_4_00_0133a16a4dabbd5969379c467370a1b33e.html#aacc8c1b94eb839f27e14e4ef16a3e6dd">::type</a> ></div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  {</div>
<div class="line"><a name="l00202"></a><span class="lineno"><a class="line" href="structDGtal_1_1ArithmeticConversionTraits_3_01T_00_01____gmp__expr_3_01GMP1_00_01GMP2_01_4_00_0133a16a4dabbd5969379c467370a1b33e.html#aacc8c1b94eb839f27e14e4ef16a3e6dd"> 202</a></span>  <span class="keyword">using</span> <a class="code" href="structDGtal_1_1ArithmeticConversionTraits_3_01T_00_01____gmp__expr_3_01GMP1_00_01GMP2_01_4_00_0133a16a4dabbd5969379c467370a1b33e.html#aacc8c1b94eb839f27e14e4ef16a3e6dd">type</a> = <a class="code" href="namespaceDGtal.html#ad14cde66089fcbdefb20c819562d2a0d">BigInteger</a>;</div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  };</div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  </div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> GMP1, <span class="keyword">typename</span> GMP2, <span class="keyword">typename</span> U></div>
<div class="line"><a name="l00213"></a><span class="lineno"><a class="line" href="structDGtal_1_1ArithmeticConversionTraits_3_01____gmp__expr_3_01GMP1_00_01GMP2_01_4_00_01U_00_01b7e75f2d4577aabc7b63b093e79af931.html"> 213</a></span>  <span class="keyword">struct </span><a class="code" href="structDGtal_1_1ArithmeticConversionTraits.html">ArithmeticConversionTraits</a><__gmp_expr<GMP1, GMP2>, U,</div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  typename std::enable_if< std::is_integral<U>::value ><a class="code" href="structDGtal_1_1ArithmeticConversionTraits_3_01____gmp__expr_3_01GMP1_00_01GMP2_01_4_00_01U_00_01b7e75f2d4577aabc7b63b093e79af931.html#a371843e6bb4a2631c45bdb0b5b9e0c6e">::type</a> ></div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  {</div>
<div class="line"><a name="l00216"></a><span class="lineno"><a class="line" href="structDGtal_1_1ArithmeticConversionTraits_3_01____gmp__expr_3_01GMP1_00_01GMP2_01_4_00_01U_00_01b7e75f2d4577aabc7b63b093e79af931.html#a371843e6bb4a2631c45bdb0b5b9e0c6e"> 216</a></span>  <span class="keyword">using</span> <a class="code" href="structDGtal_1_1ArithmeticConversionTraits_3_01____gmp__expr_3_01GMP1_00_01GMP2_01_4_00_01U_00_01b7e75f2d4577aabc7b63b093e79af931.html#a371843e6bb4a2631c45bdb0b5b9e0c6e">type</a> = <a class="code" href="namespaceDGtal.html#ad14cde66089fcbdefb20c819562d2a0d">BigInteger</a>;</div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  };</div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  </div>
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> GMPL1, <span class="keyword">typename</span> GMPL2, <span class="keyword">typename</span> GMPR1, <span class="keyword">typename</span> GMPR2></div>
<div class="line"><a name="l00227"></a><span class="lineno"><a class="line" href="structDGtal_1_1ArithmeticConversionTraits_3_01____gmp__expr_3_01GMPL1_00_01GMPL2_01_4_00_01____g3f293f408150e028b5eeaf2ad0f0698b.html"> 227</a></span>  <span class="keyword">struct </span><a class="code" href="structDGtal_1_1ArithmeticConversionTraits.html">ArithmeticConversionTraits</a><__gmp_expr<GMPL1, GMPL2>, __gmp_expr<GMPR1, GMPR2>></div>
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  {</div>
<div class="line"><a name="l00229"></a><span class="lineno"><a class="line" href="structDGtal_1_1ArithmeticConversionTraits_3_01____gmp__expr_3_01GMPL1_00_01GMPL2_01_4_00_01____g3f293f408150e028b5eeaf2ad0f0698b.html#ad357bd36ff000fceaae214a6ec416d06"> 229</a></span>  <span class="keyword">using</span> <a class="code" href="structDGtal_1_1ArithmeticConversionTraits_3_01____gmp__expr_3_01GMPL1_00_01GMPL2_01_4_00_01____g3f293f408150e028b5eeaf2ad0f0698b.html#ad357bd36ff000fceaae214a6ec416d06">type</a> = <a class="code" href="namespaceDGtal.html#ad14cde66089fcbdefb20c819562d2a0d">BigInteger</a>;</div>
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  };</div>
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  </div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span> } <span class="comment">// namespace DGtal</span></div>
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  </div>
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span> <span class="preprocessor">#endif </span><span class="comment">// !defined ArithmeticConversionTraits_h</span></div>
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  </div>
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span> <span class="preprocessor">#undef ArithmeticConversionTraits_RECURSES</span></div>
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span> <span class="preprocessor">#endif </span><span class="comment">// else defined(ArithmeticConversionTraits_RECURSES)</span></div>
<div class="ttc" id="anamespaceDGtal_html"><div class="ttname"><a href="namespaceDGtal.html">DGtal</a></div><div class="ttdoc">DGtal is the top-level namespace which contains all DGtal functions and types.</div></div>
<div class="ttc" id="anamespaceDGtal_html_a55bbc4405f35f8a03161e41068432454"><div class="ttname"><a href="namespaceDGtal.html#a55bbc4405f35f8a03161e41068432454">DGtal::ArithmeticConversionType</a></div><div class="ttdeci">typename ArithmeticConversionTraits< T, U >::type ArithmeticConversionType</div><div class="ttdoc">Result type of arithmetic binary operators between two given types.</div><div class="ttdef"><b>Definition:</b> <a href="ArithmeticConversionTraits_8h_source.html#l00135">ArithmeticConversionTraits.h:135</a></div></div>
<div class="ttc" id="anamespaceDGtal_html_abc6d219dcad7382fbe63f8b98941d0d8"><div class="ttname"><a href="namespaceDGtal.html#abc6d219dcad7382fbe63f8b98941d0d8">DGtal::constructFromArithmeticConversion</a></div><div class="ttdeci">ArithmeticConversionType< LHS, RHS > constructFromArithmeticConversion(LHS const &lhs, RHS const &rhs, Args &&... args)</div><div class="ttdoc">Call constructor for the result type of an arithmetic operation.</div><div class="ttdef"><b>Definition:</b> <a href="ArithmeticConversionTraits_8h_source.html#l00182">ArithmeticConversionTraits.h:182</a></div></div>
<div class="ttc" id="anamespaceDGtal_html_ad14cde66089fcbdefb20c819562d2a0d"><div class="ttname"><a href="namespaceDGtal.html#ad14cde66089fcbdefb20c819562d2a0d">DGtal::BigInteger</a></div><div class="ttdeci">mpz_class BigInteger</div><div class="ttdoc">Multi-precision integer with GMP implementation.</div><div class="ttdef"><b>Definition:</b> <a href="BasicTypes_8h_source.html#l00079">BasicTypes.h:79</a></div></div>
<div class="ttc" id="astructDGtal_1_1ArithmeticConversionTraits_3_01T_00_01U_00_01typename_01std_1_1enable__if_3_01std2787cbba3903f94501b19c9830eb81d4_html_a52b84cde1ad23da9c4b144a94c96a3f0"><div class="ttname"><a href="structDGtal_1_1ArithmeticConversionTraits_3_01T_00_01U_00_01typename_01std_1_1enable__if_3_01std2787cbba3903f94501b19c9830eb81d4.html#a52b84cde1ad23da9c4b144a94c96a3f0">DGtal::ArithmeticConversionTraits< T, U, typename std::enable_if< std::is_arithmetic< T >::value &&std::is_arithmetic< U >::value >::type >::type</a></div><div class="ttdeci">typename std::common_type< T, U >::type type</div><div class="ttdef"><b>Definition:</b> <a href="ArithmeticConversionTraits_8h_source.html#l00124">ArithmeticConversionTraits.h:124</a></div></div>
<div class="ttc" id="astructDGtal_1_1ArithmeticConversionTraits_3_01T_00_01____gmp__expr_3_01GMP1_00_01GMP2_01_4_00_0133a16a4dabbd5969379c467370a1b33e_html_aacc8c1b94eb839f27e14e4ef16a3e6dd"><div class="ttname"><a href="structDGtal_1_1ArithmeticConversionTraits_3_01T_00_01____gmp__expr_3_01GMP1_00_01GMP2_01_4_00_0133a16a4dabbd5969379c467370a1b33e.html#aacc8c1b94eb839f27e14e4ef16a3e6dd">DGtal::ArithmeticConversionTraits< T, __gmp_expr< GMP1, GMP2 >, typename std::enable_if< std::is_integral< T >::value >::type >::type</a></div><div class="ttdeci">BigInteger type</div><div class="ttdef"><b>Definition:</b> <a href="ArithmeticConversionTraits_8h_source.html#l00202">ArithmeticConversionTraits.h:202</a></div></div>
<div class="ttc" id="astructDGtal_1_1ArithmeticConversionTraits_3_01____gmp__expr_3_01GMP1_00_01GMP2_01_4_00_01U_00_01b7e75f2d4577aabc7b63b093e79af931_html_a371843e6bb4a2631c45bdb0b5b9e0c6e"><div class="ttname"><a href="structDGtal_1_1ArithmeticConversionTraits_3_01____gmp__expr_3_01GMP1_00_01GMP2_01_4_00_01U_00_01b7e75f2d4577aabc7b63b093e79af931.html#a371843e6bb4a2631c45bdb0b5b9e0c6e">DGtal::ArithmeticConversionTraits< __gmp_expr< GMP1, GMP2 >, U, typename std::enable_if< std::is_integral< U >::value >::type >::type</a></div><div class="ttdeci">BigInteger type</div><div class="ttdef"><b>Definition:</b> <a href="ArithmeticConversionTraits_8h_source.html#l00216">ArithmeticConversionTraits.h:216</a></div></div>
<div class="ttc" id="astructDGtal_1_1ArithmeticConversionTraits_3_01____gmp__expr_3_01GMPL1_00_01GMPL2_01_4_00_01____g3f293f408150e028b5eeaf2ad0f0698b_html_ad357bd36ff000fceaae214a6ec416d06"><div class="ttname"><a href="structDGtal_1_1ArithmeticConversionTraits_3_01____gmp__expr_3_01GMPL1_00_01GMPL2_01_4_00_01____g3f293f408150e028b5eeaf2ad0f0698b.html#ad357bd36ff000fceaae214a6ec416d06">DGtal::ArithmeticConversionTraits< __gmp_expr< GMPL1, GMPL2 >, __gmp_expr< GMPR1, GMPR2 > >::type</a></div><div class="ttdeci">BigInteger type</div><div class="ttdef"><b>Definition:</b> <a href="ArithmeticConversionTraits_8h_source.html#l00229">ArithmeticConversionTraits.h:229</a></div></div>
<div class="ttc" id="astructDGtal_1_1ArithmeticConversionTraits_html"><div class="ttname"><a href="structDGtal_1_1ArithmeticConversionTraits.html">DGtal::ArithmeticConversionTraits</a></div><div class="ttdoc">Aim: Trait class to get result type of arithmetic binary operators between two given types.</div><div class="ttdef"><b>Definition:</b> <a href="ArithmeticConversionTraits_8h_source.html#l00092">ArithmeticConversionTraits.h:93</a></div></div>
<div class="ttc" id="astructDGtal_1_1IsArithmeticConversionValid_html"><div class="ttname"><a href="structDGtal_1_1IsArithmeticConversionValid.html">DGtal::IsArithmeticConversionValid</a></div><div class="ttdoc">Helper to determine if an arithmetic operation between two given types has a valid result type (ie is...</div><div class="ttdef"><b>Definition:</b> <a href="ArithmeticConversionTraits_8h_source.html#l00145">ArithmeticConversionTraits.h:147</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_f2cd1aeea1cfa982bb13a5f95fa4218c.html">DGtal</a></li><li class="navelem"><a class="el" href="dir_836e545d3226650d428fca2c7a499aa6.html">kernel</a></li><li class="navelem"><b>ArithmeticConversionTraits.h</b></li>
<li class="footer">Generated on Mon Dec 23 2024 13:18:27 for DGtal by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
</ul>
</div>
</body>
</html>