/usr/share/doc/ucommon-doc/html/a00467.html is in ucommon-doc 7.0.0-12.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>UCommon: ucommon/platform.h File Reference</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="doxygen.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">UCommon
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_9a6e7cdcb263a598fbfa34dce073bd53.html">ucommon</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#namespaces">Namespaces</a> |
<a href="#define-members">Macros</a> |
<a href="#typedef-members">Typedefs</a> |
<a href="#func-members">Functions</a> |
<a href="#var-members">Variables</a> </div>
<div class="headertitle">
<div class="title">platform.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Various miscellaneous platform specific headers and defines.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include <cstdlib></code><br />
<code>#include <cstddef></code><br />
<code>#include <stdexcept></code><br />
<code>#include <pthread.h></code><br />
<code>#include <signal.h></code><br />
<code>#include <sys/stat.h></code><br />
<code>#include <sys/types.h></code><br />
<code>#include <stdint.h></code><br />
<code>#include <unistd.h></code><br />
<code>#include <stdio.h></code><br />
<code>#include <cctype></code><br />
<code>#include <climits></code><br />
<code>#include <cerrno></code><br />
<code>#include <new></code><br />
<code>#include <assert.h></code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for platform.h:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00468.svg" width="1444" height="112"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</div><div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00469.svg" width="3252" height="1382"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</div>
<p><a href="a00467_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:a00566"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="a00566.html">ucommon</a></td></tr>
<tr class="memdesc:a00566"><td class="mdescLeft"> </td><td class="mdescRight">Common namespace for all ucommon objects. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:aa65ef8f7a5e8b7a6ea6c1d48b4c78e55"><td class="memItemLeft" align="right" valign="top"><a id="aa65ef8f7a5e8b7a6ea6c1d48b4c78e55"></a>
#define </td><td class="memItemRight" valign="bottom"><b>__ALIGNED</b>(x)   <a class="el" href="a00434.html#a72db55ed4b1d7295a9ce64f29043a0ec">__attribute__</a>(align(x))</td></tr>
<tr class="separator:aa65ef8f7a5e8b7a6ea6c1d48b4c78e55"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8b1a8b9cf6fac44475650780fbf59938"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><b>__DELETE_COPY</b>(x)</td></tr>
<tr class="separator:a8b1a8b9cf6fac44475650780fbf59938"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae017f926b6cac393086982719c717b9c"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><b>__DELETE_DEFAULTS</b>(x)</td></tr>
<tr class="separator:ae017f926b6cac393086982719c717b9c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adf230a5338481f52323740ca904e775b"><td class="memItemLeft" align="right" valign="top"><a id="adf230a5338481f52323740ca904e775b"></a>
#define </td><td class="memItemRight" valign="bottom"><b>__DELETED</b></td></tr>
<tr class="separator:adf230a5338481f52323740ca904e775b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad10ef148ba8327bd530fc6c32c1e181c"><td class="memItemLeft" align="right" valign="top"><a id="ad10ef148ba8327bd530fc6c32c1e181c"></a>
#define </td><td class="memItemRight" valign="bottom"><b>__EXPORT</b>   <a class="el" href="a00434.html#a72db55ed4b1d7295a9ce64f29043a0ec">__attribute__</a> ((visibility("default")))</td></tr>
<tr class="separator:ad10ef148ba8327bd530fc6c32c1e181c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8301543874851b50d1f0e59090e0a222"><td class="memItemLeft" align="right" valign="top"><a id="a8301543874851b50d1f0e59090e0a222"></a>
#define </td><td class="memItemRight" valign="bottom"><b>__FINAL</b></td></tr>
<tr class="separator:a8301543874851b50d1f0e59090e0a222"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab3053538faacd22cf7f20e38ae6fa0d3"><td class="memItemLeft" align="right" valign="top"><a id="ab3053538faacd22cf7f20e38ae6fa0d3"></a>
#define </td><td class="memItemRight" valign="bottom"><b>__GNUC_PREREQ__</b>(maj, min)   0</td></tr>
<tr class="separator:ab3053538faacd22cf7f20e38ae6fa0d3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5ed18cba305b6aa05dbdacdada3db4df"><td class="memItemLeft" align="right" valign="top"><a id="a5ed18cba305b6aa05dbdacdada3db4df"></a>
#define </td><td class="memItemRight" valign="bottom"><b>__LOCAL</b>   <a class="el" href="a00434.html#a72db55ed4b1d7295a9ce64f29043a0ec">__attribute__</a> ((visibility("hidden")))</td></tr>
<tr class="separator:a5ed18cba305b6aa05dbdacdada3db4df"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aca890f63cdea692ad06a46c1745b9601"><td class="memItemLeft" align="right" valign="top"><a id="aca890f63cdea692ad06a46c1745b9601"></a>
#define </td><td class="memItemRight" valign="bottom"><b>__MALLOC</b></td></tr>
<tr class="separator:aca890f63cdea692ad06a46c1745b9601"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a331a19ec0f9535c57fe0cc250a0caafb"><td class="memItemLeft" align="right" valign="top"><a id="a331a19ec0f9535c57fe0cc250a0caafb"></a>
#define </td><td class="memItemRight" valign="bottom"><b>__OVERRIDE</b></td></tr>
<tr class="separator:a331a19ec0f9535c57fe0cc250a0caafb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4aee2a17d54e97aad863f89aeec81370"><td class="memItemLeft" align="right" valign="top"><a id="a4aee2a17d54e97aad863f89aeec81370"></a>
#define </td><td class="memItemRight" valign="bottom"><b>__PRINTF</b>(x, y)</td></tr>
<tr class="separator:a4aee2a17d54e97aad863f89aeec81370"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae874aae42bcd640be452a7b032f1c44d"><td class="memItemLeft" align="right" valign="top"><a id="ae874aae42bcd640be452a7b032f1c44d"></a>
#define </td><td class="memItemRight" valign="bottom"><b>__PROGRAM</b>(c, v)   extern "C" int main(int c, char **v)</td></tr>
<tr class="separator:ae874aae42bcd640be452a7b032f1c44d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a41d05ddfe01548137c4127a797d5ca21"><td class="memItemLeft" align="right" valign="top"><a id="a41d05ddfe01548137c4127a797d5ca21"></a>
#define </td><td class="memItemRight" valign="bottom"><b>__PROTOCOL</b>   virtual</td></tr>
<tr class="separator:a41d05ddfe01548137c4127a797d5ca21"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8ea98d56fe3aecbf554d3feaccf6ece9"><td class="memItemLeft" align="right" valign="top"><a id="a8ea98d56fe3aecbf554d3feaccf6ece9"></a>
#define </td><td class="memItemRight" valign="bottom"><b>__SCANF</b>(x, y)</td></tr>
<tr class="separator:a8ea98d56fe3aecbf554d3feaccf6ece9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a99b3448dfd7a578ef0e032e618c95860"><td class="memItemLeft" align="right" valign="top"><a id="a99b3448dfd7a578ef0e032e618c95860"></a>
#define </td><td class="memItemRight" valign="bottom"><b>__SERVICE</b>(id, c, v)   void service_##id(int c, char **v)</td></tr>
<tr class="separator:a99b3448dfd7a578ef0e032e618c95860"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad75ad22c5261827d199d60fe9ec6dd41"><td class="memItemLeft" align="right" valign="top"><a id="ad75ad22c5261827d199d60fe9ec6dd41"></a>
#define </td><td class="memItemRight" valign="bottom"><b>__SHARED</b>   <a class="el" href="a00434.html#a72db55ed4b1d7295a9ce64f29043a0ec">__attribute__</a> ((visibility("default")))</td></tr>
<tr class="separator:ad75ad22c5261827d199d60fe9ec6dd41"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6ddde72247bd5b54c37e6e42a2ccbba9"><td class="memItemLeft" align="right" valign="top"><a id="a6ddde72247bd5b54c37e6e42a2ccbba9"></a>
#define </td><td class="memItemRight" valign="bottom"><b>__THROW_ALLOC</b>()   throw std::bad_alloc()</td></tr>
<tr class="separator:a6ddde72247bd5b54c37e6e42a2ccbba9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:acb75cccc0d0300704ab26c7c754e1220"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><b>__THROW_DEREF</b>(v)</td></tr>
<tr class="separator:acb75cccc0d0300704ab26c7c754e1220"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1cc083b0568144c13a43e63e7626932d"><td class="memItemLeft" align="right" valign="top"><a id="a1cc083b0568144c13a43e63e7626932d"></a>
#define </td><td class="memItemRight" valign="bottom"><b>__THROW_RANGE</b>(x)   throw std::out_of_range(x)</td></tr>
<tr class="separator:a1cc083b0568144c13a43e63e7626932d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad601cd70607c23b6192b599e3c809dfc"><td class="memItemLeft" align="right" valign="top"><a id="ad601cd70607c23b6192b599e3c809dfc"></a>
#define </td><td class="memItemRight" valign="bottom"><b>__THROW_RUNTIME</b>(x)   throw std::runtime_error(x)</td></tr>
<tr class="separator:ad601cd70607c23b6192b599e3c809dfc"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad56649a9f98e5f963c2a8790db4e97bb"><td class="memItemLeft" align="right" valign="top"><a id="ad56649a9f98e5f963c2a8790db4e97bb"></a>
#define </td><td class="memItemRight" valign="bottom"><b>__THROW_SIZE</b>(x)   throw std::length_error(x)</td></tr>
<tr class="separator:ad56649a9f98e5f963c2a8790db4e97bb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a63ac1140e40276846ef5f4ea00f1a7b1"><td class="memItemLeft" align="right" valign="top"><a id="a63ac1140e40276846ef5f4ea00f1a7b1"></a>
#define </td><td class="memItemRight" valign="bottom"><b>__THROW_UNDEF</b>(v, x)   if(v == nullptr) throw std::runtime_error(x)</td></tr>
<tr class="separator:a63ac1140e40276846ef5f4ea00f1a7b1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2e71046560df2920a4671aa910d8a05b"><td class="memItemLeft" align="right" valign="top"><a id="a2e71046560df2920a4671aa910d8a05b"></a>
#define </td><td class="memItemRight" valign="bottom"><b>__UNUSED</b>(x)   (void)x</td></tr>
<tr class="separator:a2e71046560df2920a4671aa910d8a05b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad44924736167f82a10ae2891fc98a608"><td class="memItemLeft" align="right" valign="top"><a id="ad44924736167f82a10ae2891fc98a608"></a>
#define </td><td class="memItemRight" valign="bottom"><b>_POSIX_PTHREAD_SEMANTICS</b></td></tr>
<tr class="separator:ad44924736167f82a10ae2891fc98a608"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac15da069257627fefd71d875d538b73d"><td class="memItemLeft" align="right" valign="top"><a id="ac15da069257627fefd71d875d538b73d"></a>
#define </td><td class="memItemRight" valign="bottom"><b>_REENTRANT</b>   1</td></tr>
<tr class="separator:ac15da069257627fefd71d875d538b73d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a443747bad6a2c99b390ad3b41496e860"><td class="memItemLeft" align="right" valign="top"><a id="a443747bad6a2c99b390ad3b41496e860"></a>
#define </td><td class="memItemRight" valign="bottom"><b>_THREADSAFE</b>   1</td></tr>
<tr class="separator:a443747bad6a2c99b390ad3b41496e860"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a24d2d71eea325f5251ed56373cc83efd"><td class="memItemLeft" align="right" valign="top"><a id="a24d2d71eea325f5251ed56373cc83efd"></a>
#define </td><td class="memItemRight" valign="bottom"><b>_UCOMMON_EXTENDED_</b></td></tr>
<tr class="separator:a24d2d71eea325f5251ed56373cc83efd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a36b93938ac585a3c1d18aac795630ed8"><td class="memItemLeft" align="right" valign="top"><a id="a36b93938ac585a3c1d18aac795630ed8"></a>
#define </td><td class="memItemRight" valign="bottom"><b>_UCOMMON_PLATFORM_H_</b></td></tr>
<tr class="separator:a36b93938ac585a3c1d18aac795630ed8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aed2dc2ccf257c8305725af7d5fc471e5"><td class="memItemLeft" align="right" valign="top"><a id="aed2dc2ccf257c8305725af7d5fc471e5"></a>
#define </td><td class="memItemRight" valign="bottom"><b>crit</b>(x, text)   if(!(x)) cpr_runtime_error(text)</td></tr>
<tr class="separator:aed2dc2ccf257c8305725af7d5fc471e5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a28886d59fbdc2dccd82cc4887e967d0d"><td class="memItemLeft" align="right" valign="top"><a id="a28886d59fbdc2dccd82cc4887e967d0d"></a>
#define </td><td class="memItemRight" valign="bottom"><b>END_NAMESPACE</b>   }</td></tr>
<tr class="separator:a28886d59fbdc2dccd82cc4887e967d0d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5fdc7facea201bfce4ad308105f88d0c"><td class="memItemLeft" align="right" valign="top"><a id="a5fdc7facea201bfce4ad308105f88d0c"></a>
#define </td><td class="memItemRight" valign="bottom"><b>INVALID_HANDLE_VALUE</b>   -1</td></tr>
<tr class="separator:a5fdc7facea201bfce4ad308105f88d0c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a26769957ec1a2beaf223f33b66ee64ab"><td class="memItemLeft" align="right" valign="top"><a id="a26769957ec1a2beaf223f33b66ee64ab"></a>
#define </td><td class="memItemRight" valign="bottom"><b>INVALID_SOCKET</b>   -1</td></tr>
<tr class="separator:a26769957ec1a2beaf223f33b66ee64ab"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a453fa17a6ece9c8d96c6312c2e333dd9"><td class="memItemLeft" align="right" valign="top"><a id="a453fa17a6ece9c8d96c6312c2e333dd9"></a>
#define </td><td class="memItemRight" valign="bottom"><b>NAMESPACE_UCOMMON</b>   namespace ucommon {</td></tr>
<tr class="separator:a453fa17a6ece9c8d96c6312c2e333dd9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8de3ed741dadc9c979a4ff17c0a9116e"><td class="memItemLeft" align="right" valign="top"><a id="a8de3ed741dadc9c979a4ff17c0a9116e"></a>
#define </td><td class="memItemRight" valign="bottom"><b>NDEBUG</b></td></tr>
<tr class="separator:a8de3ed741dadc9c979a4ff17c0a9116e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8b0e54f1ca1e0a9ce1cfd20e7a22b8f9"><td class="memItemLeft" align="right" valign="top"><a id="a8b0e54f1ca1e0a9ce1cfd20e7a22b8f9"></a>
#define </td><td class="memItemRight" valign="bottom"><b>PROGRAM_EXIT</b>(code)   return code</td></tr>
<tr class="separator:a8b0e54f1ca1e0a9ce1cfd20e7a22b8f9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aef5ca8866cc3f53c0801c614c1fecfe8"><td class="memItemLeft" align="right" valign="top"><a id="aef5ca8866cc3f53c0801c614c1fecfe8"></a>
#define </td><td class="memItemRight" valign="bottom"><b>PROGRAM_MAIN</b>(argc, argv)   extern "C" int main(int argc, char **argv)</td></tr>
<tr class="separator:aef5ca8866cc3f53c0801c614c1fecfe8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a29f642485be9a0f4c56373bc2f8db1dd"><td class="memItemLeft" align="right" valign="top"><a id="a29f642485be9a0f4c56373bc2f8db1dd"></a>
#define </td><td class="memItemRight" valign="bottom"><b>SERVICE_MAIN</b>(id, argc, argv)   void service_##id(int argc, char **argv)</td></tr>
<tr class="separator:a29f642485be9a0f4c56373bc2f8db1dd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abe6604c42dad18d6d9ec76a270ef850d"><td class="memItemLeft" align="right" valign="top"><a id="abe6604c42dad18d6d9ec76a270ef850d"></a>
#define </td><td class="memItemRight" valign="bottom"><b>UCOMMON_ABI</b>   7</td></tr>
<tr class="separator:abe6604c42dad18d6d9ec76a270ef850d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6e4fce0fa13b36f8b31f4d56111b0a44"><td class="memItemLeft" align="right" valign="top"><a id="a6e4fce0fa13b36f8b31f4d56111b0a44"></a>
#define </td><td class="memItemRight" valign="bottom"><b>UCOMMON_NAMESPACE</b>   ucommon</td></tr>
<tr class="separator:a6e4fce0fa13b36f8b31f4d56111b0a44"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9eb74a57634804b95f5294f912f9df59"><td class="memItemLeft" align="right" valign="top"><a id="a9eb74a57634804b95f5294f912f9df59"></a>
#define </td><td class="memItemRight" valign="bottom"><b>UCOMMON_RTTI</b>   1</td></tr>
<tr class="separator:a9eb74a57634804b95f5294f912f9df59"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:afa26f40bb46270263a62577eaf689ade"><td class="memItemLeft" align="right" valign="top"><a id="afa26f40bb46270263a62577eaf689ade"></a>
typedef void(* </td><td class="memItemRight" valign="bottom"><b>cpr_service_t</b>) (int argc, char **argv)</td></tr>
<tr class="separator:afa26f40bb46270263a62577eaf689ade"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1540dca57d43779772b9c10fc2f17f83"><td class="memItemLeft" align="right" valign="top"><a id="a1540dca57d43779772b9c10fc2f17f83"></a>
typedef int </td><td class="memItemRight" valign="bottom"><b>fd_t</b></td></tr>
<tr class="separator:a1540dca57d43779772b9c10fc2f17f83"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8bcc2ce32e3b6f7502f4e3bf46b342ba"><td class="memItemLeft" align="right" valign="top"><a id="a8bcc2ce32e3b6f7502f4e3bf46b342ba"></a>
typedef long </td><td class="memItemRight" valign="bottom"><b>Integer</b></td></tr>
<tr class="separator:a8bcc2ce32e3b6f7502f4e3bf46b342ba"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a445a5f0e2a34c9d97d69a3c2d1957907"><td class="memItemLeft" align="right" valign="top"><a id="a445a5f0e2a34c9d97d69a3c2d1957907"></a>
typedef double </td><td class="memItemRight" valign="bottom"><b>Real</b></td></tr>
<tr class="separator:a445a5f0e2a34c9d97d69a3c2d1957907"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a754cdc0bcfffe07baa426dc252c9101a"><td class="memItemLeft" align="right" valign="top">typedef void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="a00467.html#a754cdc0bcfffe07baa426dc252c9101a">sighandler_t</a>) (int)</td></tr>
<tr class="memdesc:a754cdc0bcfffe07baa426dc252c9101a"><td class="mdescLeft"> </td><td class="mdescRight">Convenient typedef for signal handlers. <a href="#a754cdc0bcfffe07baa426dc252c9101a">More...</a><br /></td></tr>
<tr class="separator:a754cdc0bcfffe07baa426dc252c9101a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a30353f381f5fccbb956eea1f3a110b6c"><td class="memItemLeft" align="right" valign="top"><a id="a30353f381f5fccbb956eea1f3a110b6c"></a>
typedef int </td><td class="memItemRight" valign="bottom"><b>socket_t</b></td></tr>
<tr class="separator:a30353f381f5fccbb956eea1f3a110b6c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae33ff70373caffa86ca5f3030f468adc"><td class="memItemLeft" align="right" valign="top"><a id="ae33ff70373caffa86ca5f3030f468adc"></a>
typedef size_t </td><td class="memItemRight" valign="bottom"><b>socksize_t</b></td></tr>
<tr class="separator:ae33ff70373caffa86ca5f3030f468adc"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aace2eaf63b20cdb6de310e52311a4fc4"><td class="memItemLeft" align="right" valign="top"><a id="aace2eaf63b20cdb6de310e52311a4fc4"></a>
typedef size_t </td><td class="memItemRight" valign="bottom"><b>stacksize_t</b></td></tr>
<tr class="separator:aace2eaf63b20cdb6de310e52311a4fc4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af412159e5cef839836a5e7b19ee75d1c"><td class="memItemLeft" align="right" valign="top"><a id="af412159e5cef839836a5e7b19ee75d1c"></a>
typedef unsigned long </td><td class="memItemRight" valign="bottom"><b>timeout_t</b></td></tr>
<tr class="separator:af412159e5cef839836a5e7b19ee75d1c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6570073c724a8368364f363cd45b5b44"><td class="memItemLeft" align="right" valign="top"><a id="a6570073c724a8368364f363cd45b5b44"></a>
typedef uint8_t </td><td class="memItemRight" valign="bottom"><b>ubyte_t</b></td></tr>
<tr class="separator:a6570073c724a8368364f363cd45b5b44"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7161af27b4528120d5a94d59db0352fb"><td class="memItemLeft" align="right" valign="top"><a id="a7161af27b4528120d5a94d59db0352fb"></a>
typedef unsigned long </td><td class="memItemRight" valign="bottom"><b>Unsigned</b></td></tr>
<tr class="separator:a7161af27b4528120d5a94d59db0352fb"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a051770e5c7e4cffa9ea7c4205b1737e3"><td class="memTemplParams" colspan="2"><a id="a051770e5c7e4cffa9ea7c4205b1737e3"></a>
template<typename T > </td></tr>
<tr class="memitem:a051770e5c7e4cffa9ea7c4205b1737e3"><td class="memTemplItemLeft" align="right" valign="top">const T </td><td class="memTemplItemRight" valign="bottom"><b>immutable_cast</b> (T p)</td></tr>
<tr class="separator:a051770e5c7e4cffa9ea7c4205b1737e3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afe8e952d8c396ae9dc6d4bfd7a134a42"><td class="memTemplParams" colspan="2">template<class T > </td></tr>
<tr class="memitem:afe8e952d8c396ae9dc6d4bfd7a134a42"><td class="memTemplItemLeft" align="right" valign="top">T * </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00467.html#afe8e952d8c396ae9dc6d4bfd7a134a42">init</a> (T *memory)</td></tr>
<tr class="memdesc:afe8e952d8c396ae9dc6d4bfd7a134a42"><td class="mdescLeft"> </td><td class="mdescRight">Template function to initialize memory by invoking default constructor. <a href="#afe8e952d8c396ae9dc6d4bfd7a134a42">More...</a><br /></td></tr>
<tr class="separator:afe8e952d8c396ae9dc6d4bfd7a134a42"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a81b8441b554cab644710e6f50e9a6b8b"><td class="memTemplParams" colspan="2"><a id="a81b8441b554cab644710e6f50e9a6b8b"></a>
template<class T , class S > </td></tr>
<tr class="memitem:a81b8441b554cab644710e6f50e9a6b8b"><td class="memTemplItemLeft" align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><b>polyconst_cast</b> (S *s)</td></tr>
<tr class="separator:a81b8441b554cab644710e6f50e9a6b8b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4a2d3614118f48467be47067990f7259"><td class="memTemplParams" colspan="2"><a id="a4a2d3614118f48467be47067990f7259"></a>
template<class T , class S > </td></tr>
<tr class="memitem:a4a2d3614118f48467be47067990f7259"><td class="memTemplItemLeft" align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><b>polydynamic_cast</b> (S *s)</td></tr>
<tr class="separator:a4a2d3614118f48467be47067990f7259"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9fdd0b2818e781a3ba47df6600663089"><td class="memTemplParams" colspan="2"><a id="a9fdd0b2818e781a3ba47df6600663089"></a>
template<class T , class S > </td></tr>
<tr class="memitem:a9fdd0b2818e781a3ba47df6600663089"><td class="memTemplItemLeft" align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><b>polypointer_cast</b> (S *s)</td></tr>
<tr class="separator:a9fdd0b2818e781a3ba47df6600663089"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a062963d59ec65be8be46eaf0c1e25f64"><td class="memTemplParams" colspan="2"><a id="a062963d59ec65be8be46eaf0c1e25f64"></a>
template<class T , class S > </td></tr>
<tr class="memitem:a062963d59ec65be8be46eaf0c1e25f64"><td class="memTemplItemLeft" align="right" valign="top">T & </td><td class="memTemplItemRight" valign="bottom"><b>polyreference_cast</b> (S *s)</td></tr>
<tr class="separator:a062963d59ec65be8be46eaf0c1e25f64"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa02722aa659672bd2586b7782637cc13"><td class="memTemplParams" colspan="2"><a id="aa02722aa659672bd2586b7782637cc13"></a>
template<class T , class S > </td></tr>
<tr class="memitem:aa02722aa659672bd2586b7782637cc13"><td class="memTemplItemLeft" align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><b>polystatic_cast</b> (S *s)</td></tr>
<tr class="separator:aa02722aa659672bd2586b7782637cc13"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a21dcc176eb8c46ead75bfeaa956652e5"><td class="memTemplParams" colspan="2"><a id="a21dcc176eb8c46ead75bfeaa956652e5"></a>
template<typename T , typename S > </td></tr>
<tr class="memitem:a21dcc176eb8c46ead75bfeaa956652e5"><td class="memTemplItemLeft" align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><b>protocol_cast</b> (S *s)</td></tr>
<tr class="separator:a21dcc176eb8c46ead75bfeaa956652e5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9040893071a71d70406d7fd840f00789"><td class="memTemplParams" colspan="2"><a id="a9040893071a71d70406d7fd840f00789"></a>
template<typename T > </td></tr>
<tr class="memitem:a9040893071a71d70406d7fd840f00789"><td class="memTemplItemLeft" align="right" valign="top">T & </td><td class="memTemplItemRight" valign="bottom"><b>reference_cast</b> (T *pointer)</td></tr>
<tr class="separator:a9040893071a71d70406d7fd840f00789"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af0cb996696c29a81c537d6e60d5a36b3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00467.html#af0cb996696c29a81c537d6e60d5a36b3">strfree</a> (char *str)</td></tr>
<tr class="memdesc:af0cb996696c29a81c537d6e60d5a36b3"><td class="mdescLeft"> </td><td class="mdescRight">Matching function for strdup(). <a href="#af0cb996696c29a81c537d6e60d5a36b3">More...</a><br /></td></tr>
<tr class="separator:af0cb996696c29a81c537d6e60d5a36b3"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a8f82b4a59bc53396cb59e6a6a3198f83"><td class="memItemLeft" align="right" valign="top"><a id="a8f82b4a59bc53396cb59e6a6a3198f83"></a>
const class nullptr_t </td><td class="memItemRight" valign="bottom"><b>nullptr</b> = {}</td></tr>
<tr class="separator:a8f82b4a59bc53396cb59e6a6a3198f83"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Various miscellaneous platform specific headers and defines. </p>
<p>This is used to support ucommon on different platforms. The ucommon library assumes at least a real posix threading library is present or will build thread support native on Microsoft Windows legacy platform. This header also deals with issues related to common base types. </p>
<p class="definition">Definition in file <a class="el" href="a00467_source.html">platform.h</a>.</p>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a8b1a8b9cf6fac44475650780fbf59938"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8b1a8b9cf6fac44475650780fbf59938">◆ </a></span>__DELETE_COPY</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define __DELETE_COPY</td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname">x</td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"><span class="keyword">inline</span> x(<span class="keyword">const</span> x&);\</div><div class="line"> inline x& operator=(<span class="keyword">const</span> x&)</div></div><!-- fragment -->
<p class="definition">Definition at line <a class="el" href="a00467_source.html#l00160">160</a> of file <a class="el" href="a00467_source.html">platform.h</a>.</p>
</div>
</div>
<a id="ae017f926b6cac393086982719c717b9c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae017f926b6cac393086982719c717b9c">◆ </a></span>__DELETE_DEFAULTS</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define __DELETE_DEFAULTS</td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname">x</td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"><span class="keyword">inline</span> x();\</div><div class="line"> __DELETE_COPY(x)</div></div><!-- fragment -->
<p class="definition">Definition at line <a class="el" href="a00467_source.html#l00162">162</a> of file <a class="el" href="a00467_source.html">platform.h</a>.</p>
</div>
</div>
<a id="acb75cccc0d0300704ab26c7c754e1220"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acb75cccc0d0300704ab26c7c754e1220">◆ </a></span>__THROW_DEREF</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define __THROW_DEREF</td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname">v</td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"><span class="keywordflow">if</span>(v == <span class="keyword">nullptr</span>) \</div><div class="line"> throw std::runtime_error(<span class="stringliteral">"Dereference NULL"</span>)</div></div><!-- fragment -->
<p class="definition">Definition at line <a class="el" href="a00467_source.html#l00053">53</a> of file <a class="el" href="a00467_source.html">platform.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Typedef Documentation</h2>
<a id="a754cdc0bcfffe07baa426dc252c9101a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a754cdc0bcfffe07baa426dc252c9101a">◆ </a></span>sighandler_t</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef void(* sighandler_t) (int)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Convenient typedef for signal handlers. </p>
<p class="definition">Definition at line <a class="el" href="a00467_source.html#l00451">451</a> of file <a class="el" href="a00467_source.html">platform.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="afe8e952d8c396ae9dc6d4bfd7a134a42"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afe8e952d8c396ae9dc6d4bfd7a134a42">◆ </a></span>init()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class T > </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">T* init </td>
<td>(</td>
<td class="paramtype">T * </td>
<td class="paramname"><em>memory</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Template function to initialize memory by invoking default constructor. </p>
<p>If NULL is passed, then NULL is returned without any constructor called. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">memory</td><td>to initialize. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>memory initialized. </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="a00772.html#a0">cipher.cpp</a>.</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="a00467_source.html#l00551">551</a> of file <a class="el" href="a00467_source.html">platform.h</a>.</p>
</div>
</div>
<a id="af0cb996696c29a81c537d6e60d5a36b3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af0cb996696c29a81c537d6e60d5a36b3">◆ </a></span>strfree()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void strfree </td>
<td>(</td>
<td class="paramtype">char * </td>
<td class="paramname"><em>str</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Matching function for strdup(). </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">string</td><td>to release from allocated memory. </td></tr>
</table>
</dd>
</dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="a00774.html#a5">string.cpp</a>.</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="a00467_source.html#l00563">563</a> of file <a class="el" href="a00467_source.html">platform.h</a>.</p>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
|