autoc 1.4 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGES.md +3 -0
  3. data/README.md +149 -0
  4. data/cmake/AutoC.cmake +39 -0
  5. data/lib/autoc/allocators.rb +51 -0
  6. data/lib/autoc/association.rb +126 -0
  7. data/lib/autoc/box.rb +311 -0
  8. data/lib/autoc/cmake.rb +54 -0
  9. data/lib/autoc/collection.rb +83 -110
  10. data/lib/autoc/composite.rb +333 -0
  11. data/lib/autoc/cstring.rb +263 -0
  12. data/lib/autoc/function.rb +247 -0
  13. data/lib/autoc/hash_map.rb +328 -0
  14. data/lib/autoc/hash_set.rb +339 -0
  15. data/lib/autoc/hashers.rb +102 -0
  16. data/lib/autoc/list.rb +444 -0
  17. data/lib/autoc/module.rb +434 -0
  18. data/lib/autoc/openmp.rb +15 -0
  19. data/lib/autoc/primitive.rb +27 -0
  20. data/lib/autoc/ranges.rb +707 -0
  21. data/lib/autoc/record.rb +247 -0
  22. data/lib/autoc/scaffold/docs.rb +117 -0
  23. data/lib/autoc/scaffold/generic_value.rb +86 -0
  24. data/lib/autoc/scaffold/project.rb +75 -0
  25. data/lib/autoc/scaffold/test_cstring.rb +113 -0
  26. data/lib/autoc/scaffold/test_cstring_hash_set.rb +35 -0
  27. data/lib/autoc/scaffold/test_int_box.rb +22 -0
  28. data/lib/autoc/scaffold/test_int_hash_set.rb +448 -0
  29. data/lib/autoc/scaffold/test_int_list.rb +106 -0
  30. data/lib/autoc/scaffold/test_int_vector.rb +83 -0
  31. data/lib/autoc/scaffold/test_v2v_hash_map.rb +83 -0
  32. data/lib/autoc/scaffold/test_value_hash_set.rb +60 -0
  33. data/lib/autoc/scaffold/test_value_vector.rb +146 -0
  34. data/{test/test.rb → lib/autoc/scaffold/tests.rb} +179 -158
  35. data/lib/autoc/scaffold.rb +12 -0
  36. data/lib/autoc/sequential.rb +99 -0
  37. data/lib/autoc/set.rb +331 -0
  38. data/lib/autoc/std.rb +149 -0
  39. data/lib/autoc/type.rb +93 -531
  40. data/lib/autoc/vector.rb +290 -0
  41. data/lib/autoc.rb +4 -35
  42. metadata +55 -85
  43. data/.yardopts +0 -4
  44. data/CHANGES +0 -23
  45. data/README +0 -28
  46. data/doc/AutoC/Code.html +0 -523
  47. data/doc/AutoC/Collection.html +0 -1214
  48. data/doc/AutoC/HashMap.html +0 -1441
  49. data/doc/AutoC/HashSet.html +0 -916
  50. data/doc/AutoC/Iterators/Bidirectional.html +0 -204
  51. data/doc/AutoC/Iterators/Unidirectional.html +0 -200
  52. data/doc/AutoC/Iterators.html +0 -126
  53. data/doc/AutoC/List.html +0 -1039
  54. data/doc/AutoC/Maps.html +0 -290
  55. data/doc/AutoC/Module/File.html +0 -415
  56. data/doc/AutoC/Module/Header.html +0 -437
  57. data/doc/AutoC/Module/Source.html +0 -707
  58. data/doc/AutoC/Module.html +0 -948
  59. data/doc/AutoC/Priority.html +0 -138
  60. data/doc/AutoC/Queue.html +0 -1172
  61. data/doc/AutoC/Reference.html +0 -735
  62. data/doc/AutoC/Sets.html +0 -520
  63. data/doc/AutoC/String.html +0 -1394
  64. data/doc/AutoC/TreeMap.html +0 -1565
  65. data/doc/AutoC/TreeSet.html +0 -1447
  66. data/doc/AutoC/Type.html +0 -2148
  67. data/doc/AutoC/UserDefinedType.html +0 -1047
  68. data/doc/AutoC/Vector.html +0 -987
  69. data/doc/AutoC.html +0 -331
  70. data/doc/_index.html +0 -388
  71. data/doc/class_list.html +0 -51
  72. data/doc/css/common.css +0 -1
  73. data/doc/css/full_list.css +0 -58
  74. data/doc/css/style.css +0 -481
  75. data/doc/file.CHANGES.html +0 -117
  76. data/doc/file.README.html +0 -116
  77. data/doc/file_list.html +0 -61
  78. data/doc/frames.html +0 -17
  79. data/doc/index.html +0 -116
  80. data/doc/js/app.js +0 -243
  81. data/doc/js/full_list.js +0 -216
  82. data/doc/js/jquery.js +0 -4
  83. data/doc/method_list.html +0 -1307
  84. data/doc/top-level-namespace.html +0 -112
  85. data/lib/autoc/code.rb +0 -237
  86. data/lib/autoc/collection/hash_map.rb +0 -385
  87. data/lib/autoc/collection/hash_set.rb +0 -337
  88. data/lib/autoc/collection/iterator.rb +0 -39
  89. data/lib/autoc/collection/list.rb +0 -429
  90. data/lib/autoc/collection/map.rb +0 -41
  91. data/lib/autoc/collection/queue.rb +0 -517
  92. data/lib/autoc/collection/set.rb +0 -134
  93. data/lib/autoc/collection/tree_map.rb +0 -464
  94. data/lib/autoc/collection/tree_set.rb +0 -611
  95. data/lib/autoc/collection/vector.rb +0 -336
  96. data/lib/autoc/string.rb +0 -492
  97. data/test/test_auto.c +0 -7141
  98. data/test/test_auto.h +0 -753
  99. data/test/test_char_string.rb +0 -270
  100. data/test/test_int_list.rb +0 -35
  101. data/test/test_int_tree_set.rb +0 -111
  102. data/test/test_int_vector.rb +0 -34
  103. data/test/test_value_hash_map.rb +0 -162
  104. data/test/test_value_hash_set.rb +0 -173
  105. data/test/test_value_list.rb +0 -193
  106. data/test/test_value_queue.rb +0 -275
  107. data/test/test_value_tree_map.rb +0 -176
  108. data/test/test_value_tree_set.rb +0 -173
  109. data/test/test_value_vector.rb +0 -155
  110. data/test/value.rb +0 -80
data/doc/AutoC/Type.html DELETED
@@ -1,2148 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Class: AutoC::Type
8
-
9
- &mdash; Documentation by YARD 0.9.5
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- pathId = "AutoC::Type";
19
- relpath = '../';
20
- </script>
21
-
22
-
23
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
24
-
25
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
26
-
27
-
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="../class_list.html"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="../_index.html">Index (T)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../AutoC.html" title="AutoC (module)">AutoC</a></span></span>
41
- &raquo;
42
- <span class="title">Type</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="../class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
60
- </div>
61
-
62
- <iframe id="search_frame" src="../class_list.html"></iframe>
63
-
64
- <div id="content"><h1>Class: AutoC::Type
65
-
66
-
67
-
68
- </h1>
69
- <div class="box_info">
70
-
71
- <dl>
72
- <dt>Inherits:</dt>
73
- <dd>
74
- <span class="inheritName"><span class='object_link'><a href="Code.html" title="AutoC::Code (class)">Code</a></span></span>
75
-
76
- <ul class="fullTree">
77
- <li>Object</li>
78
-
79
- <li class="next"><span class='object_link'><a href="Code.html" title="AutoC::Code (class)">Code</a></span></li>
80
-
81
- <li class="next">AutoC::Type</li>
82
-
83
- </ul>
84
- <a href="#" class="inheritanceTree">show all</a>
85
-
86
- </dd>
87
- </dl>
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
- <dl>
100
- <dt>Defined in:</dt>
101
- <dd>lib/autoc/type.rb</dd>
102
- </dl>
103
-
104
- </div>
105
-
106
- <div id="subclasses">
107
- <h2>Direct Known Subclasses</h2>
108
- <p class="children"><span class='object_link'><a href="Collection.html" title="AutoC::Collection (class)">Collection</a></span>, <span class='object_link'><a href="Reference.html" title="AutoC::Reference (class)">Reference</a></span>, <span class='object_link'><a href="String.html" title="AutoC::String (class)">String</a></span>, <span class='object_link'><a href="UserDefinedType.html" title="AutoC::UserDefinedType (class)">UserDefinedType</a></span></p>
109
- </div>
110
-
111
-
112
-
113
-
114
- <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
115
- <ul class="summary">
116
-
117
- <li class="public ">
118
- <span class="summary_signature">
119
-
120
- <a href="#type-instance_method" title="#type (instance method)">#<strong>type</strong> &#x21d2; Object </a>
121
-
122
-
123
-
124
- </span>
125
-
126
-
127
-
128
-
129
- <span class="note title readonly">readonly</span>
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
- <span class="summary_desc"><div class='inline'><div class="paragraph">
140
- <p>Returns the value of attribute type.</p>
141
- </div></div></span>
142
-
143
- </li>
144
-
145
-
146
- <li class="public ">
147
- <span class="summary_signature">
148
-
149
- <a href="#type_ref-instance_method" title="#type_ref (instance method)">#<strong>type_ref</strong> &#x21d2; Object </a>
150
-
151
-
152
-
153
- </span>
154
-
155
-
156
-
157
-
158
- <span class="note title readonly">readonly</span>
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
-
167
-
168
- <span class="summary_desc"><div class='inline'><div class="paragraph">
169
- <p>Returns the value of attribute type_ref.</p>
170
- </div></div></span>
171
-
172
- </li>
173
-
174
-
175
- </ul>
176
-
177
-
178
-
179
-
180
-
181
- <h2>
182
- Class Method Summary
183
- <small><a href="#" class="summary_toggle">collapse</a></small>
184
- </h2>
185
-
186
- <ul class="summary">
187
-
188
- <li class="public ">
189
- <span class="summary_signature">
190
-
191
- <a href="#coerce-class_method" title="coerce (class method)">.<strong>coerce</strong>(type) &#x21d2; Object </a>
192
-
193
-
194
-
195
- </span>
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
-
204
-
205
- <span class="summary_desc"><div class='inline'></div></span>
206
-
207
- </li>
208
-
209
-
210
- </ul>
211
-
212
- <h2>
213
- Instance Method Summary
214
- <small><a href="#" class="summary_toggle">collapse</a></small>
215
- </h2>
216
-
217
- <ul class="summary">
218
-
219
- <li class="public ">
220
- <span class="summary_signature">
221
-
222
- <a href="#%3D%3D-instance_method" title="#== (instance method)">#<strong>==</strong>(other) &#x21d2; Object </a>
223
-
224
-
225
-
226
- (also: #eql?)
227
-
228
- </span>
229
-
230
-
231
-
232
-
233
-
234
-
235
-
236
-
237
-
238
- <span class="summary_desc"><div class='inline'></div></span>
239
-
240
- </li>
241
-
242
-
243
- <li class="public ">
244
- <span class="summary_signature">
245
-
246
- <a href="#abort-instance_method" title="#abort (instance method)">#<strong>abort</strong> &#x21d2; Object </a>
247
-
248
-
249
-
250
- </span>
251
-
252
-
253
-
254
-
255
-
256
-
257
-
258
-
259
-
260
- <span class="summary_desc"><div class='inline'></div></span>
261
-
262
- </li>
263
-
264
-
265
- <li class="public ">
266
- <span class="summary_signature">
267
-
268
- <a href="#assert-instance_method" title="#assert (instance method)">#<strong>assert</strong> &#x21d2; Object </a>
269
-
270
-
271
-
272
- </span>
273
-
274
-
275
-
276
-
277
-
278
-
279
-
280
-
281
-
282
- <span class="summary_desc"><div class='inline'></div></span>
283
-
284
- </li>
285
-
286
-
287
- <li class="public ">
288
- <span class="summary_signature">
289
-
290
- <a href="#calloc-instance_method" title="#calloc (instance method)">#<strong>calloc</strong> &#x21d2; Object </a>
291
-
292
-
293
-
294
- </span>
295
-
296
-
297
-
298
-
299
-
300
-
301
-
302
-
303
-
304
- <span class="summary_desc"><div class='inline'></div></span>
305
-
306
- </li>
307
-
308
-
309
- <li class="public ">
310
- <span class="summary_signature">
311
-
312
- <a href="#comparable%3F-instance_method" title="#comparable? (instance method)">#<strong>comparable?</strong> &#x21d2; Boolean </a>
313
-
314
-
315
-
316
- </span>
317
-
318
-
319
-
320
-
321
-
322
-
323
-
324
-
325
-
326
- <span class="summary_desc"><div class='inline'><div class="paragraph">
327
- <p>Returns <strong>true</strong> if the type provides a well-defined equality test function.</p>
328
- </div></div></span>
329
-
330
- </li>
331
-
332
-
333
- <li class="public ">
334
- <span class="summary_signature">
335
-
336
- <a href="#constructible%3F-instance_method" title="#constructible? (instance method)">#<strong>constructible?</strong> &#x21d2; Boolean </a>
337
-
338
-
339
-
340
- </span>
341
-
342
-
343
-
344
-
345
-
346
-
347
-
348
-
349
-
350
- <span class="summary_desc"><div class='inline'><div class="paragraph">
351
- <p>Returns <strong>true</strong> if the type provides a well-defined parameterless default type constructor.</p>
352
- </div></div></span>
353
-
354
- </li>
355
-
356
-
357
- <li class="public ">
358
- <span class="summary_signature">
359
-
360
- <a href="#copyable%3F-instance_method" title="#copyable? (instance method)">#<strong>copyable?</strong> &#x21d2; Boolean </a>
361
-
362
-
363
-
364
- </span>
365
-
366
-
367
-
368
-
369
-
370
-
371
-
372
-
373
-
374
- <span class="summary_desc"><div class='inline'><div class="paragraph">
375
- <p>Returns <strong>true</strong> if the type provides a well-defined copy constructor to create a clone of an instance.</p>
376
- </div></div></span>
377
-
378
- </li>
379
-
380
-
381
- <li class="public ">
382
- <span class="summary_signature">
383
-
384
- <a href="#destructible%3F-instance_method" title="#destructible? (instance method)">#<strong>destructible?</strong> &#x21d2; Boolean </a>
385
-
386
-
387
-
388
- </span>
389
-
390
-
391
-
392
-
393
-
394
-
395
-
396
-
397
-
398
- <span class="summary_desc"><div class='inline'><div class="paragraph">
399
- <p>Returns <strong>true</strong> if the type provides a well-defined type destructor.</p>
400
- </div></div></span>
401
-
402
- </li>
403
-
404
-
405
- <li class="public ">
406
- <span class="summary_signature">
407
-
408
- <a href="#entities-instance_method" title="#entities (instance method)">#<strong>entities</strong> &#x21d2; Object </a>
409
-
410
-
411
-
412
- </span>
413
-
414
-
415
-
416
-
417
-
418
-
419
-
420
-
421
-
422
- <span class="summary_desc"><div class='inline'></div></span>
423
-
424
- </li>
425
-
426
-
427
- <li class="public ">
428
- <span class="summary_signature">
429
-
430
- <a href="#extern-instance_method" title="#extern (instance method)">#<strong>extern</strong> &#x21d2; Object </a>
431
-
432
-
433
-
434
- </span>
435
-
436
-
437
-
438
-
439
-
440
-
441
-
442
-
443
-
444
- <span class="summary_desc"><div class='inline'><div class="paragraph">
445
- <p>def write_impls(stream, define).</p>
446
- </div></div></span>
447
-
448
- </li>
449
-
450
-
451
- <li class="public ">
452
- <span class="summary_signature">
453
-
454
- <a href="#free-instance_method" title="#free (instance method)">#<strong>free</strong> &#x21d2; Object </a>
455
-
456
-
457
-
458
- </span>
459
-
460
-
461
-
462
-
463
-
464
-
465
-
466
-
467
-
468
- <span class="summary_desc"><div class='inline'></div></span>
469
-
470
- </li>
471
-
472
-
473
- <li class="public ">
474
- <span class="summary_signature">
475
-
476
- <a href="#hash-instance_method" title="#hash (instance method)">#<strong>hash</strong> &#x21d2; Object </a>
477
-
478
-
479
-
480
- </span>
481
-
482
-
483
-
484
-
485
-
486
-
487
-
488
-
489
-
490
- <span class="summary_desc"><div class='inline'></div></span>
491
-
492
- </li>
493
-
494
-
495
- <li class="public ">
496
- <span class="summary_signature">
497
-
498
- <a href="#hashable%3F-instance_method" title="#hashable? (instance method)">#<strong>hashable?</strong> &#x21d2; Boolean </a>
499
-
500
-
501
-
502
- </span>
503
-
504
-
505
-
506
-
507
-
508
-
509
-
510
-
511
-
512
- <span class="summary_desc"><div class='inline'><div class="paragraph">
513
- <p>Returns <strong>true</strong> if the type provides a well-defined hash calculation function.</p>
514
- </div></div></span>
515
-
516
- </li>
517
-
518
-
519
- <li class="public ">
520
- <span class="summary_signature">
521
-
522
- <a href="#initializable%3F-instance_method" title="#initializable? (instance method)">#<strong>initializable?</strong> &#x21d2; Boolean </a>
523
-
524
-
525
-
526
- </span>
527
-
528
-
529
-
530
-
531
-
532
-
533
-
534
-
535
-
536
- <span class="summary_desc"><div class='inline'><div class="paragraph">
537
- <p>Returns <strong>true</strong> if the type provides a well-defined type constructor which can have extra arguments.</p>
538
- </div></div></span>
539
-
540
- </li>
541
-
542
-
543
- <li class="public ">
544
- <span class="summary_signature">
545
-
546
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(type, visibility = :public) &#x21d2; Type </a>
547
-
548
-
549
-
550
- </span>
551
-
552
-
553
- <span class="note title constructor">constructor</span>
554
-
555
-
556
-
557
-
558
-
559
-
560
-
561
-
562
- <span class="summary_desc"><div class='inline'><div class="paragraph">
563
- <p>A new instance of Type.</p>
564
- </div></div></span>
565
-
566
- </li>
567
-
568
-
569
- <li class="public ">
570
- <span class="summary_signature">
571
-
572
- <a href="#inline-instance_method" title="#inline (instance method)">#<strong>inline</strong> &#x21d2; Object </a>
573
-
574
-
575
-
576
- </span>
577
-
578
-
579
-
580
-
581
-
582
-
583
-
584
-
585
-
586
- <span class="summary_desc"><div class='inline'></div></span>
587
-
588
- </li>
589
-
590
-
591
- <li class="public ">
592
- <span class="summary_signature">
593
-
594
- <a href="#malloc-instance_method" title="#malloc (instance method)">#<strong>malloc</strong> &#x21d2; Object </a>
595
-
596
-
597
-
598
- </span>
599
-
600
-
601
-
602
-
603
-
604
-
605
-
606
-
607
-
608
- <span class="summary_desc"><div class='inline'></div></span>
609
-
610
- </li>
611
-
612
-
613
- <li class="public ">
614
- <span class="summary_signature">
615
-
616
- <a href="#method_missing-instance_method" title="#method_missing (instance method)">#<strong>method_missing</strong>(method, *args) &#x21d2; Object </a>
617
-
618
-
619
-
620
- </span>
621
-
622
-
623
-
624
-
625
-
626
-
627
-
628
-
629
-
630
- <span class="summary_desc"><div class='inline'></div></span>
631
-
632
- </li>
633
-
634
-
635
- <li class="public ">
636
- <span class="summary_signature">
637
-
638
- <a href="#orderable%3F-instance_method" title="#orderable? (instance method)">#<strong>orderable?</strong> &#x21d2; Boolean </a>
639
-
640
-
641
-
642
- </span>
643
-
644
-
645
-
646
-
647
-
648
-
649
-
650
-
651
-
652
- <span class="summary_desc"><div class='inline'><div class="paragraph">
653
- <p>Returns <strong>true</strong> if the type provides a well-defined 'less than' test function.</p>
654
- </div></div></span>
655
-
656
- </li>
657
-
658
-
659
- <li class="public ">
660
- <span class="summary_signature">
661
-
662
- <a href="#prefix-instance_method" title="#prefix (instance method)">#<strong>prefix</strong> &#x21d2; Object </a>
663
-
664
-
665
-
666
- </span>
667
-
668
-
669
-
670
-
671
-
672
-
673
-
674
-
675
-
676
- <span class="summary_desc"><div class='inline'></div></span>
677
-
678
- </li>
679
-
680
-
681
- <li class="public ">
682
- <span class="summary_signature">
683
-
684
- <a href="#private%3F-instance_method" title="#private? (instance method)">#<strong>private?</strong> &#x21d2; Boolean </a>
685
-
686
-
687
-
688
- </span>
689
-
690
-
691
-
692
-
693
-
694
-
695
-
696
-
697
-
698
- <span class="summary_desc"><div class='inline'></div></span>
699
-
700
- </li>
701
-
702
-
703
- <li class="public ">
704
- <span class="summary_signature">
705
-
706
- <a href="#public%3F-instance_method" title="#public? (instance method)">#<strong>public?</strong> &#x21d2; Boolean </a>
707
-
708
-
709
-
710
- </span>
711
-
712
-
713
-
714
-
715
-
716
-
717
-
718
-
719
-
720
- <span class="summary_desc"><div class='inline'></div></span>
721
-
722
- </li>
723
-
724
-
725
- <li class="public ">
726
- <span class="summary_signature">
727
-
728
- <a href="#sortable%3F-instance_method" title="#sortable? (instance method)">#<strong>sortable?</strong> &#x21d2; Boolean </a>
729
-
730
-
731
-
732
- </span>
733
-
734
-
735
-
736
-
737
-
738
-
739
-
740
-
741
-
742
- <span class="summary_desc"><div class='inline'><div class="paragraph">
743
- <p>Returns <strong>true</strong> if the type provides corrset soritng routines.</p>
744
- </div></div></span>
745
-
746
- </li>
747
-
748
-
749
- <li class="public ">
750
- <span class="summary_signature">
751
-
752
- <a href="#static-instance_method" title="#static (instance method)">#<strong>static</strong> &#x21d2; Object </a>
753
-
754
-
755
-
756
- </span>
757
-
758
-
759
-
760
-
761
-
762
-
763
-
764
-
765
-
766
- <span class="summary_desc"><div class='inline'></div></span>
767
-
768
- </li>
769
-
770
-
771
- <li class="public ">
772
- <span class="summary_signature">
773
-
774
- <a href="#static%3F-instance_method" title="#static? (instance method)">#<strong>static?</strong> &#x21d2; Boolean </a>
775
-
776
-
777
-
778
- </span>
779
-
780
-
781
-
782
-
783
-
784
-
785
-
786
-
787
-
788
- <span class="summary_desc"><div class='inline'></div></span>
789
-
790
- </li>
791
-
792
-
793
- <li class="public ">
794
- <span class="summary_signature">
795
-
796
- <a href="#write_decls-instance_method" title="#write_decls (instance method)">#<strong>write_decls</strong>(stream) &#x21d2; Object </a>
797
-
798
-
799
-
800
- </span>
801
-
802
-
803
-
804
-
805
-
806
-
807
-
808
-
809
-
810
- <span class="summary_desc"><div class='inline'></div></span>
811
-
812
- </li>
813
-
814
-
815
- <li class="public ">
816
- <span class="summary_signature">
817
-
818
- <a href="#write_defs-instance_method" title="#write_defs (instance method)">#<strong>write_defs</strong>(stream) &#x21d2; Object </a>
819
-
820
-
821
-
822
- </span>
823
-
824
-
825
-
826
-
827
-
828
-
829
-
830
-
831
-
832
- <span class="summary_desc"><div class='inline'></div></span>
833
-
834
- </li>
835
-
836
-
837
- <li class="public ">
838
- <span class="summary_signature">
839
-
840
- <a href="#write_intf-instance_method" title="#write_intf (instance method)">#<strong>write_intf</strong>(stream) &#x21d2; Object </a>
841
-
842
-
843
-
844
- </span>
845
-
846
-
847
-
848
-
849
-
850
-
851
-
852
-
853
-
854
- <span class="summary_desc"><div class='inline'></div></span>
855
-
856
- </li>
857
-
858
-
859
- </ul>
860
-
861
-
862
-
863
-
864
-
865
-
866
-
867
-
868
-
869
-
870
-
871
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Code.html" title="AutoC::Code (class)">Code</a></span></h3>
872
- <p class="inherited"><span class='object_link'><a href="Code.html#attach-instance_method" title="AutoC::Code#attach (method)">#attach</a></span>, <span class='object_link'><a href="Code.html#priority-instance_method" title="AutoC::Code#priority (method)">#priority</a></span>, <span class='object_link'><a href="Code.html#source_size-instance_method" title="AutoC::Code#source_size (method)">#source_size</a></span></p>
873
- <div id="constructor_details" class="method_details_list">
874
- <h2>Constructor Details</h2>
875
-
876
- <div class="method_details first">
877
- <h3 class="signature first" id="initialize-instance_method">
878
-
879
- #<strong>initialize</strong>(type, visibility = :public) &#x21d2; <tt><span class='object_link'><a href="" title="AutoC::Type (class)">Type</a></span></tt>
880
-
881
-
882
-
883
-
884
-
885
- </h3><div class="docstring">
886
- <div class="discussion">
887
- <div class="paragraph">
888
- <p>Returns a new instance of Type</p>
889
- </div>
890
-
891
- </div>
892
- </div>
893
- <div class="tags">
894
-
895
-
896
- </div><table class="source_code">
897
- <tr>
898
- <td>
899
- <pre class="lines">
900
-
901
-
902
- 170
903
- 171
904
- 172
905
- 173
906
- 174
907
- 175
908
- 176
909
- 177
910
- 178
911
- 179
912
- 180
913
- 181
914
- 182
915
- 183</pre>
916
- </td>
917
- <td>
918
- <pre class="code"><span class="info file"># File 'lib/autoc/type.rb', line 170</span>
919
-
920
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_visibility'>visibility</span> <span class='op'>=</span> <span class='symbol'>:public</span><span class='rparen'>)</span>
921
- <span class='ivar'>@type</span> <span class='op'>=</span> <span class='id identifier rubyid_type'>type</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
922
- <span class='ivar'>@type_ref</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_type'>type</span><span class='embexpr_end'>}</span><span class='tstring_content'>*</span><span class='tstring_end'>&quot;</span></span>
923
- <span class='ivar'>@visibility</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='symbol'>:public</span><span class='comma'>,</span> <span class='symbol'>:private</span><span class='comma'>,</span> <span class='symbol'>:static</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_visibility'>visibility</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id identifier rubyid_visibility'>visibility</span> <span class='op'>:</span> <span class='id identifier rubyid_raise'>raise</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>unsupported visibility</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
924
- <span class='comment'># Canonic special method signatures
925
- </span> <span class='ivar'>@signature</span> <span class='op'>=</span> <span class='lbrace'>{</span>
926
- <span class='symbol'>:ctor</span> <span class='op'>=&gt;</span> <span class='const'>Function</span><span class='op'>::</span><span class='const'>Signature</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='id identifier rubyid_type'>type</span><span class='op'>^</span><span class='symbol'>:self</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='comma'>,</span>
927
- <span class='symbol'>:dtor</span> <span class='op'>=&gt;</span> <span class='const'>Function</span><span class='op'>::</span><span class='const'>Signature</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='id identifier rubyid_type'>type</span><span class='op'>^</span><span class='symbol'>:self</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='comma'>,</span>
928
- <span class='symbol'>:copy</span> <span class='op'>=&gt;</span> <span class='const'>Function</span><span class='op'>::</span><span class='const'>Signature</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='id identifier rubyid_type'>type</span><span class='op'>^</span><span class='symbol'>:dst</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='op'>^</span><span class='symbol'>:src</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='comma'>,</span>
929
- <span class='symbol'>:equal</span> <span class='op'>=&gt;</span> <span class='const'>Function</span><span class='op'>::</span><span class='const'>Signature</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='id identifier rubyid_type'>type</span><span class='op'>^</span><span class='symbol'>:lt</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='op'>^</span><span class='symbol'>:rt</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='symbol'>:int</span><span class='rparen'>)</span><span class='comma'>,</span>
930
- <span class='symbol'>:identify</span> <span class='op'>=&gt;</span> <span class='const'>Function</span><span class='op'>::</span><span class='const'>Signature</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='id identifier rubyid_type'>type</span><span class='op'>^</span><span class='symbol'>:self</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='symbol'>:size_t</span><span class='rparen'>)</span><span class='comma'>,</span>
931
- <span class='symbol'>:less</span> <span class='op'>=&gt;</span> <span class='const'>Function</span><span class='op'>::</span><span class='const'>Signature</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='id identifier rubyid_type'>type</span><span class='op'>^</span><span class='symbol'>:lt</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='op'>^</span><span class='symbol'>:rt</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='symbol'>:int</span><span class='rparen'>)</span><span class='comma'>,</span>
932
- <span class='rbrace'>}</span>
933
- <span class='kw'>end</span></pre>
934
- </td>
935
- </tr>
936
- </table>
937
- </div>
938
-
939
- </div>
940
- <div id="method_missing_details" class="method_details_list">
941
- <h2>Dynamic Method Handling</h2>
942
- <p class="notice this">
943
- This class handles dynamic methods through the <tt>method_missing</tt> method
944
-
945
- </p>
946
-
947
- <div class="method_details first">
948
- <h3 class="signature first" id="method_missing-instance_method">
949
-
950
- #<strong>method_missing</strong>(method, *args) &#x21d2; <tt>Object</tt>
951
-
952
-
953
-
954
-
955
-
956
- </h3><table class="source_code">
957
- <tr>
958
- <td>
959
- <pre class="lines">
960
-
961
-
962
- 185
963
- 186
964
- 187
965
- 188
966
- 189
967
- 190
968
- 191
969
- 192
970
- 193
971
- 194
972
- 195
973
- 196
974
- 197
975
- 198
976
- 199
977
- 200
978
- 201
979
- 202</pre>
980
- </td>
981
- <td>
982
- <pre class="code"><span class="info file"># File 'lib/autoc/type.rb', line 185</span>
983
-
984
- <span class='kw'>def</span> <span class='id identifier rubyid_method_missing'>method_missing</span><span class='lparen'>(</span><span class='id identifier rubyid_method'>method</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
985
- <span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='id identifier rubyid_method'>method</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
986
- <span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='id identifier rubyid_str'>str</span><span class='period'>.</span><span class='id identifier rubyid_sub'>sub</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>[\!\?]$</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> <span class='comment'># Strip trailing ? or !
987
- </span> <span class='id identifier rubyid_x'>x</span> <span class='op'>=</span> <span class='kw'>false</span> <span class='comment'># Have leading underscore
988
- </span> <span class='kw'>if</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>_(.*)</span><span class='regexp_end'>/</span></span> <span class='op'>=~</span> <span class='id identifier rubyid_str'>str</span>
989
- <span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='backref'>$1</span>
990
- <span class='id identifier rubyid_x'>x</span> <span class='op'>=</span> <span class='kw'>true</span>
991
- <span class='kw'>end</span>
992
- <span class='id identifier rubyid_fn'>fn</span> <span class='op'>=</span> <span class='id identifier rubyid_prefix'>prefix</span> <span class='op'>+</span> <span class='id identifier rubyid_str'>str</span><span class='lbracket'>[</span><span class='int'>0</span><span class='comma'>,</span><span class='int'>1</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_capitalize'>capitalize</span> <span class='op'>+</span> <span class='id identifier rubyid_str'>str</span><span class='lbracket'>[</span><span class='int'>1</span><span class='op'>..</span><span class='op'>-</span><span class='int'>1</span><span class='rbracket'>]</span> <span class='comment'># Ruby 1.8 compatible
993
- </span> <span class='id identifier rubyid_fn'>fn</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>_</span><span class='tstring_end'>&quot;</span></span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_fn'>fn</span> <span class='kw'>if</span> <span class='id identifier rubyid_x'>x</span> <span class='comment'># Carry over the leading underscore
994
- </span> <span class='kw'>if</span> <span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
995
- <span class='id identifier rubyid_fn'>fn</span> <span class='comment'># Emit bare function name
996
- </span> <span class='kw'>elsif</span> <span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span> <span class='op'>==</span> <span class='int'>1</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span> <span class='op'>==</span> <span class='kw'>nil</span>
997
- <span class='id identifier rubyid_fn'>fn</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>()</span><span class='tstring_end'>&#39;</span></span> <span class='comment'># Use sole nil argument to emit function call with no arguments
998
- </span> <span class='kw'>else</span>
999
- <span class='id identifier rubyid_fn'>fn</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>(</span><span class='tstring_end'>&#39;</span></span> <span class='op'>+</span> <span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>,</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>)</span><span class='tstring_end'>&#39;</span></span> <span class='comment'># Emit normal function call with supplied arguments
1000
- </span> <span class='kw'>end</span>
1001
- <span class='kw'>end</span></pre>
1002
- </td>
1003
- </tr>
1004
- </table>
1005
- </div>
1006
-
1007
- </div>
1008
-
1009
- <div id="instance_attr_details" class="attr_details">
1010
- <h2>Instance Attribute Details</h2>
1011
-
1012
-
1013
- <span id=""></span>
1014
- <div class="method_details first">
1015
- <h3 class="signature first" id="type-instance_method">
1016
-
1017
- #<strong>type</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
1018
-
1019
-
1020
-
1021
-
1022
-
1023
- </h3><div class="docstring">
1024
- <div class="discussion">
1025
- <div class="paragraph">
1026
- <p>Returns the value of attribute type</p>
1027
- </div>
1028
-
1029
- </div>
1030
- </div>
1031
- <div class="tags">
1032
-
1033
-
1034
- </div><table class="source_code">
1035
- <tr>
1036
- <td>
1037
- <pre class="lines">
1038
-
1039
-
1040
- 162
1041
- 163
1042
- 164</pre>
1043
- </td>
1044
- <td>
1045
- <pre class="code"><span class="info file"># File 'lib/autoc/type.rb', line 162</span>
1046
-
1047
- <span class='kw'>def</span> <span class='id identifier rubyid_type'>type</span>
1048
- <span class='ivar'>@type</span>
1049
- <span class='kw'>end</span></pre>
1050
- </td>
1051
- </tr>
1052
- </table>
1053
- </div>
1054
-
1055
-
1056
- <span id=""></span>
1057
- <div class="method_details ">
1058
- <h3 class="signature " id="type_ref-instance_method">
1059
-
1060
- #<strong>type_ref</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
1061
-
1062
-
1063
-
1064
-
1065
-
1066
- </h3><div class="docstring">
1067
- <div class="discussion">
1068
- <div class="paragraph">
1069
- <p>Returns the value of attribute type_ref</p>
1070
- </div>
1071
-
1072
- </div>
1073
- </div>
1074
- <div class="tags">
1075
-
1076
-
1077
- </div><table class="source_code">
1078
- <tr>
1079
- <td>
1080
- <pre class="lines">
1081
-
1082
-
1083
- 162
1084
- 163
1085
- 164</pre>
1086
- </td>
1087
- <td>
1088
- <pre class="code"><span class="info file"># File 'lib/autoc/type.rb', line 162</span>
1089
-
1090
- <span class='kw'>def</span> <span class='id identifier rubyid_type_ref'>type_ref</span>
1091
- <span class='ivar'>@type_ref</span>
1092
- <span class='kw'>end</span></pre>
1093
- </td>
1094
- </tr>
1095
- </table>
1096
- </div>
1097
-
1098
- </div>
1099
-
1100
-
1101
- <div id="class_method_details" class="method_details_list">
1102
- <h2>Class Method Details</h2>
1103
-
1104
-
1105
- <div class="method_details first">
1106
- <h3 class="signature first" id="coerce-class_method">
1107
-
1108
- .<strong>coerce</strong>(type) &#x21d2; <tt>Object</tt>
1109
-
1110
-
1111
-
1112
-
1113
-
1114
- </h3><table class="source_code">
1115
- <tr>
1116
- <td>
1117
- <pre class="lines">
1118
-
1119
-
1120
- 150
1121
- 151
1122
- 152</pre>
1123
- </td>
1124
- <td>
1125
- <pre class="code"><span class="info file"># File 'lib/autoc/type.rb', line 150</span>
1126
-
1127
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_coerce'>coerce</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='rparen'>)</span>
1128
- <span class='id identifier rubyid_type'>type</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Type</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id identifier rubyid_type'>type</span> <span class='op'>:</span> <span class='const'>UserDefinedType</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='rparen'>)</span>
1129
- <span class='kw'>end</span></pre>
1130
- </td>
1131
- </tr>
1132
- </table>
1133
- </div>
1134
-
1135
- </div>
1136
-
1137
- <div id="instance_method_details" class="method_details_list">
1138
- <h2>Instance Method Details</h2>
1139
-
1140
-
1141
- <div class="method_details first">
1142
- <h3 class="signature first" id="==-instance_method">
1143
-
1144
- #<strong>==</strong>(other) &#x21d2; <tt>Object</tt>
1145
-
1146
-
1147
-
1148
- <span class="aliases">Also known as:
1149
- <span class="names"><span id='eql?-instance_method'>eql?</span></span>
1150
- </span>
1151
-
1152
-
1153
-
1154
- </h3><table class="source_code">
1155
- <tr>
1156
- <td>
1157
- <pre class="lines">
1158
-
1159
-
1160
- 156</pre>
1161
- </td>
1162
- <td>
1163
- <pre class="code"><span class="info file"># File 'lib/autoc/type.rb', line 156</span>
1164
-
1165
- <span class='kw'>def</span> <span class='op'>==</span><span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span> <span class='op'>==</span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_type'>type</span> <span class='op'>==</span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_type'>type</span> <span class='kw'>end</span></pre>
1166
- </td>
1167
- </tr>
1168
- </table>
1169
- </div>
1170
-
1171
- <div class="method_details ">
1172
- <h3 class="signature " id="abort-instance_method">
1173
-
1174
- #<strong>abort</strong> &#x21d2; <tt>Object</tt>
1175
-
1176
-
1177
-
1178
-
1179
-
1180
- </h3><table class="source_code">
1181
- <tr>
1182
- <td>
1183
- <pre class="lines">
1184
-
1185
-
1186
- 251</pre>
1187
- </td>
1188
- <td>
1189
- <pre class="code"><span class="info file"># File 'lib/autoc/type.rb', line 251</span>
1190
-
1191
- <span class='kw'>def</span> <span class='id identifier rubyid_abort'>abort</span><span class='semicolon'>;</span> <span class='symbol'>:abort</span> <span class='kw'>end</span></pre>
1192
- </td>
1193
- </tr>
1194
- </table>
1195
- </div>
1196
-
1197
- <div class="method_details ">
1198
- <h3 class="signature " id="assert-instance_method">
1199
-
1200
- #<strong>assert</strong> &#x21d2; <tt>Object</tt>
1201
-
1202
-
1203
-
1204
-
1205
-
1206
- </h3><table class="source_code">
1207
- <tr>
1208
- <td>
1209
- <pre class="lines">
1210
-
1211
-
1212
- 243</pre>
1213
- </td>
1214
- <td>
1215
- <pre class="code"><span class="info file"># File 'lib/autoc/type.rb', line 243</span>
1216
-
1217
- <span class='kw'>def</span> <span class='id identifier rubyid_assert'>assert</span><span class='semicolon'>;</span> <span class='symbol'>:assert</span> <span class='kw'>end</span></pre>
1218
- </td>
1219
- </tr>
1220
- </table>
1221
- </div>
1222
-
1223
- <div class="method_details ">
1224
- <h3 class="signature " id="calloc-instance_method">
1225
-
1226
- #<strong>calloc</strong> &#x21d2; <tt>Object</tt>
1227
-
1228
-
1229
-
1230
-
1231
-
1232
- </h3><table class="source_code">
1233
- <tr>
1234
- <td>
1235
- <pre class="lines">
1236
-
1237
-
1238
- 247</pre>
1239
- </td>
1240
- <td>
1241
- <pre class="code"><span class="info file"># File 'lib/autoc/type.rb', line 247</span>
1242
-
1243
- <span class='kw'>def</span> <span class='id identifier rubyid_calloc'>calloc</span><span class='semicolon'>;</span> <span class='symbol'>:calloc</span> <span class='kw'>end</span></pre>
1244
- </td>
1245
- </tr>
1246
- </table>
1247
- </div>
1248
-
1249
- <div class="method_details ">
1250
- <h3 class="signature " id="comparable?-instance_method">
1251
-
1252
- #<strong>comparable?</strong> &#x21d2; <tt>Boolean</tt>
1253
-
1254
-
1255
-
1256
-
1257
-
1258
- </h3><div class="docstring">
1259
- <div class="discussion">
1260
- <div class="paragraph">
1261
- <p>Returns <strong>true</strong> if the type provides a well-defined equality test function</p>
1262
- </div>
1263
-
1264
- </div>
1265
- </div>
1266
- <div class="tags">
1267
-
1268
- <p class="tag_title">Returns:</p>
1269
- <ul class="return">
1270
-
1271
- <li>
1272
-
1273
-
1274
- <span class='type'>(<tt>Boolean</tt>)</span>
1275
-
1276
-
1277
-
1278
- </li>
1279
-
1280
- </ul>
1281
-
1282
- </div><table class="source_code">
1283
- <tr>
1284
- <td>
1285
- <pre class="lines">
1286
-
1287
-
1288
- 275</pre>
1289
- </td>
1290
- <td>
1291
- <pre class="code"><span class="info file"># File 'lib/autoc/type.rb', line 275</span>
1292
-
1293
- <span class='kw'>def</span> <span class='id identifier rubyid_comparable?'>comparable?</span><span class='semicolon'>;</span> <span class='kw'>false</span> <span class='kw'>end</span></pre>
1294
- </td>
1295
- </tr>
1296
- </table>
1297
- </div>
1298
-
1299
- <div class="method_details ">
1300
- <h3 class="signature " id="constructible?-instance_method">
1301
-
1302
- #<strong>constructible?</strong> &#x21d2; <tt>Boolean</tt>
1303
-
1304
-
1305
-
1306
-
1307
-
1308
- </h3><div class="docstring">
1309
- <div class="discussion">
1310
- <div class="paragraph">
1311
- <p>Returns <strong>true</strong> if the type provides a well-defined parameterless default type constructor</p>
1312
- </div>
1313
-
1314
- </div>
1315
- </div>
1316
- <div class="tags">
1317
-
1318
- <p class="tag_title">Returns:</p>
1319
- <ul class="return">
1320
-
1321
- <li>
1322
-
1323
-
1324
- <span class='type'>(<tt>Boolean</tt>)</span>
1325
-
1326
-
1327
-
1328
- </li>
1329
-
1330
- </ul>
1331
-
1332
- </div><table class="source_code">
1333
- <tr>
1334
- <td>
1335
- <pre class="lines">
1336
-
1337
-
1338
- 263</pre>
1339
- </td>
1340
- <td>
1341
- <pre class="code"><span class="info file"># File 'lib/autoc/type.rb', line 263</span>
1342
-
1343
- <span class='kw'>def</span> <span class='id identifier rubyid_constructible?'>constructible?</span><span class='semicolon'>;</span> <span class='kw'>false</span> <span class='kw'>end</span></pre>
1344
- </td>
1345
- </tr>
1346
- </table>
1347
- </div>
1348
-
1349
- <div class="method_details ">
1350
- <h3 class="signature " id="copyable?-instance_method">
1351
-
1352
- #<strong>copyable?</strong> &#x21d2; <tt>Boolean</tt>
1353
-
1354
-
1355
-
1356
-
1357
-
1358
- </h3><div class="docstring">
1359
- <div class="discussion">
1360
- <div class="paragraph">
1361
- <p>Returns <strong>true</strong> if the type provides a well-defined copy constructor to create a clone of an instance</p>
1362
- </div>
1363
-
1364
- </div>
1365
- </div>
1366
- <div class="tags">
1367
-
1368
- <p class="tag_title">Returns:</p>
1369
- <ul class="return">
1370
-
1371
- <li>
1372
-
1373
-
1374
- <span class='type'>(<tt>Boolean</tt>)</span>
1375
-
1376
-
1377
-
1378
- </li>
1379
-
1380
- </ul>
1381
-
1382
- </div><table class="source_code">
1383
- <tr>
1384
- <td>
1385
- <pre class="lines">
1386
-
1387
-
1388
- 272</pre>
1389
- </td>
1390
- <td>
1391
- <pre class="code"><span class="info file"># File 'lib/autoc/type.rb', line 272</span>
1392
-
1393
- <span class='kw'>def</span> <span class='id identifier rubyid_copyable?'>copyable?</span><span class='semicolon'>;</span> <span class='kw'>false</span> <span class='kw'>end</span></pre>
1394
- </td>
1395
- </tr>
1396
- </table>
1397
- </div>
1398
-
1399
- <div class="method_details ">
1400
- <h3 class="signature " id="destructible?-instance_method">
1401
-
1402
- #<strong>destructible?</strong> &#x21d2; <tt>Boolean</tt>
1403
-
1404
-
1405
-
1406
-
1407
-
1408
- </h3><div class="docstring">
1409
- <div class="discussion">
1410
- <div class="paragraph">
1411
- <p>Returns <strong>true</strong> if the type provides a well-defined type destructor</p>
1412
- </div>
1413
-
1414
- </div>
1415
- </div>
1416
- <div class="tags">
1417
-
1418
- <p class="tag_title">Returns:</p>
1419
- <ul class="return">
1420
-
1421
- <li>
1422
-
1423
-
1424
- <span class='type'>(<tt>Boolean</tt>)</span>
1425
-
1426
-
1427
-
1428
- </li>
1429
-
1430
- </ul>
1431
-
1432
- </div><table class="source_code">
1433
- <tr>
1434
- <td>
1435
- <pre class="lines">
1436
-
1437
-
1438
- 269</pre>
1439
- </td>
1440
- <td>
1441
- <pre class="code"><span class="info file"># File 'lib/autoc/type.rb', line 269</span>
1442
-
1443
- <span class='kw'>def</span> <span class='id identifier rubyid_destructible?'>destructible?</span><span class='semicolon'>;</span> <span class='kw'>false</span> <span class='kw'>end</span></pre>
1444
- </td>
1445
- </tr>
1446
- </table>
1447
- </div>
1448
-
1449
- <div class="method_details ">
1450
- <h3 class="signature " id="entities-instance_method">
1451
-
1452
- #<strong>entities</strong> &#x21d2; <tt>Object</tt>
1453
-
1454
-
1455
-
1456
-
1457
-
1458
- </h3><table class="source_code">
1459
- <tr>
1460
- <td>
1461
- <pre class="lines">
1462
-
1463
-
1464
- 160</pre>
1465
- </td>
1466
- <td>
1467
- <pre class="code"><span class="info file"># File 'lib/autoc/type.rb', line 160</span>
1468
-
1469
- <span class='kw'>def</span> <span class='id identifier rubyid_entities'>entities</span><span class='semicolon'>;</span> <span class='kw'>super</span> <span class='op'>&lt;&lt;</span> <span class='const'>CommonCode</span> <span class='kw'>end</span></pre>
1470
- </td>
1471
- </tr>
1472
- </table>
1473
- </div>
1474
-
1475
- <div class="method_details ">
1476
- <h3 class="signature " id="extern-instance_method">
1477
-
1478
- #<strong>extern</strong> &#x21d2; <tt>Object</tt>
1479
-
1480
-
1481
-
1482
-
1483
-
1484
- </h3><div class="docstring">
1485
- <div class="discussion">
1486
- <div class="paragraph">
1487
- <p>def write_impls(stream, define)</p>
1488
- </div>
1489
-
1490
- </div>
1491
- </div>
1492
- <div class="tags">
1493
-
1494
-
1495
- </div><table class="source_code">
1496
- <tr>
1497
- <td>
1498
- <pre class="lines">
1499
-
1500
-
1501
- 237</pre>
1502
- </td>
1503
- <td>
1504
- <pre class="code"><span class="info file"># File 'lib/autoc/type.rb', line 237</span>
1505
-
1506
- <span class='kw'>def</span> <span class='id identifier rubyid_extern'>extern</span><span class='semicolon'>;</span> <span class='symbol'>:AUTOC_EXTERN</span> <span class='kw'>end</span></pre>
1507
- </td>
1508
- </tr>
1509
- </table>
1510
- </div>
1511
-
1512
- <div class="method_details ">
1513
- <h3 class="signature " id="free-instance_method">
1514
-
1515
- #<strong>free</strong> &#x21d2; <tt>Object</tt>
1516
-
1517
-
1518
-
1519
-
1520
-
1521
- </h3><table class="source_code">
1522
- <tr>
1523
- <td>
1524
- <pre class="lines">
1525
-
1526
-
1527
- 249</pre>
1528
- </td>
1529
- <td>
1530
- <pre class="code"><span class="info file"># File 'lib/autoc/type.rb', line 249</span>
1531
-
1532
- <span class='kw'>def</span> <span class='id identifier rubyid_free'>free</span><span class='semicolon'>;</span> <span class='symbol'>:free</span> <span class='kw'>end</span></pre>
1533
- </td>
1534
- </tr>
1535
- </table>
1536
- </div>
1537
-
1538
- <div class="method_details ">
1539
- <h3 class="signature " id="hash-instance_method">
1540
-
1541
- #<strong>hash</strong> &#x21d2; <tt>Object</tt>
1542
-
1543
-
1544
-
1545
-
1546
-
1547
- </h3><table class="source_code">
1548
- <tr>
1549
- <td>
1550
- <pre class="lines">
1551
-
1552
-
1553
- 154</pre>
1554
- </td>
1555
- <td>
1556
- <pre class="code"><span class="info file"># File 'lib/autoc/type.rb', line 154</span>
1557
-
1558
- <span class='kw'>def</span> <span class='id identifier rubyid_hash'>hash</span><span class='semicolon'>;</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_hash'>hash</span> <span class='op'>^</span> <span class='id identifier rubyid_type'>type</span><span class='period'>.</span><span class='id identifier rubyid_hash'>hash</span> <span class='kw'>end</span></pre>
1559
- </td>
1560
- </tr>
1561
- </table>
1562
- </div>
1563
-
1564
- <div class="method_details ">
1565
- <h3 class="signature " id="hashable?-instance_method">
1566
-
1567
- #<strong>hashable?</strong> &#x21d2; <tt>Boolean</tt>
1568
-
1569
-
1570
-
1571
-
1572
-
1573
- </h3><div class="docstring">
1574
- <div class="discussion">
1575
- <div class="paragraph">
1576
- <p>Returns <strong>true</strong> if the type provides a well-defined hash calculation function</p>
1577
- </div>
1578
-
1579
- </div>
1580
- </div>
1581
- <div class="tags">
1582
-
1583
- <p class="tag_title">Returns:</p>
1584
- <ul class="return">
1585
-
1586
- <li>
1587
-
1588
-
1589
- <span class='type'>(<tt>Boolean</tt>)</span>
1590
-
1591
-
1592
-
1593
- </li>
1594
-
1595
- </ul>
1596
-
1597
- </div><table class="source_code">
1598
- <tr>
1599
- <td>
1600
- <pre class="lines">
1601
-
1602
-
1603
- 284</pre>
1604
- </td>
1605
- <td>
1606
- <pre class="code"><span class="info file"># File 'lib/autoc/type.rb', line 284</span>
1607
-
1608
- <span class='kw'>def</span> <span class='id identifier rubyid_hashable?'>hashable?</span><span class='semicolon'>;</span> <span class='kw'>false</span> <span class='kw'>end</span></pre>
1609
- </td>
1610
- </tr>
1611
- </table>
1612
- </div>
1613
-
1614
- <div class="method_details ">
1615
- <h3 class="signature " id="initializable?-instance_method">
1616
-
1617
- #<strong>initializable?</strong> &#x21d2; <tt>Boolean</tt>
1618
-
1619
-
1620
-
1621
-
1622
-
1623
- </h3><div class="docstring">
1624
- <div class="discussion">
1625
- <div class="paragraph">
1626
- <p>Returns <strong>true</strong> if the type provides a well-defined type constructor which can have extra arguments</p>
1627
- </div>
1628
-
1629
- </div>
1630
- </div>
1631
- <div class="tags">
1632
-
1633
- <p class="tag_title">Returns:</p>
1634
- <ul class="return">
1635
-
1636
- <li>
1637
-
1638
-
1639
- <span class='type'>(<tt>Boolean</tt>)</span>
1640
-
1641
-
1642
-
1643
- </li>
1644
-
1645
- </ul>
1646
-
1647
- </div><table class="source_code">
1648
- <tr>
1649
- <td>
1650
- <pre class="lines">
1651
-
1652
-
1653
- 266</pre>
1654
- </td>
1655
- <td>
1656
- <pre class="code"><span class="info file"># File 'lib/autoc/type.rb', line 266</span>
1657
-
1658
- <span class='kw'>def</span> <span class='id identifier rubyid_initializable?'>initializable?</span><span class='semicolon'>;</span> <span class='kw'>false</span> <span class='kw'>end</span></pre>
1659
- </td>
1660
- </tr>
1661
- </table>
1662
- </div>
1663
-
1664
- <div class="method_details ">
1665
- <h3 class="signature " id="inline-instance_method">
1666
-
1667
- #<strong>inline</strong> &#x21d2; <tt>Object</tt>
1668
-
1669
-
1670
-
1671
-
1672
-
1673
- </h3><table class="source_code">
1674
- <tr>
1675
- <td>
1676
- <pre class="lines">
1677
-
1678
-
1679
- 239</pre>
1680
- </td>
1681
- <td>
1682
- <pre class="code"><span class="info file"># File 'lib/autoc/type.rb', line 239</span>
1683
-
1684
- <span class='kw'>def</span> <span class='id identifier rubyid_inline'>inline</span><span class='semicolon'>;</span> <span class='symbol'>:AUTOC_INLINE</span> <span class='kw'>end</span></pre>
1685
- </td>
1686
- </tr>
1687
- </table>
1688
- </div>
1689
-
1690
- <div class="method_details ">
1691
- <h3 class="signature " id="malloc-instance_method">
1692
-
1693
- #<strong>malloc</strong> &#x21d2; <tt>Object</tt>
1694
-
1695
-
1696
-
1697
-
1698
-
1699
- </h3><table class="source_code">
1700
- <tr>
1701
- <td>
1702
- <pre class="lines">
1703
-
1704
-
1705
- 245</pre>
1706
- </td>
1707
- <td>
1708
- <pre class="code"><span class="info file"># File 'lib/autoc/type.rb', line 245</span>
1709
-
1710
- <span class='kw'>def</span> <span class='id identifier rubyid_malloc'>malloc</span><span class='semicolon'>;</span> <span class='symbol'>:malloc</span> <span class='kw'>end</span></pre>
1711
- </td>
1712
- </tr>
1713
- </table>
1714
- </div>
1715
-
1716
- <div class="method_details ">
1717
- <h3 class="signature " id="orderable?-instance_method">
1718
-
1719
- #<strong>orderable?</strong> &#x21d2; <tt>Boolean</tt>
1720
-
1721
-
1722
-
1723
-
1724
-
1725
- </h3><div class="docstring">
1726
- <div class="discussion">
1727
- <div class="paragraph">
1728
- <p>Returns <strong>true</strong> if the type provides a well-defined 'less than' test function</p>
1729
- </div>
1730
-
1731
- </div>
1732
- </div>
1733
- <div class="tags">
1734
-
1735
- <p class="tag_title">Returns:</p>
1736
- <ul class="return">
1737
-
1738
- <li>
1739
-
1740
-
1741
- <span class='type'>(<tt>Boolean</tt>)</span>
1742
-
1743
-
1744
-
1745
- </li>
1746
-
1747
- </ul>
1748
-
1749
- </div><table class="source_code">
1750
- <tr>
1751
- <td>
1752
- <pre class="lines">
1753
-
1754
-
1755
- 278</pre>
1756
- </td>
1757
- <td>
1758
- <pre class="code"><span class="info file"># File 'lib/autoc/type.rb', line 278</span>
1759
-
1760
- <span class='kw'>def</span> <span class='id identifier rubyid_orderable?'>orderable?</span><span class='semicolon'>;</span> <span class='kw'>false</span> <span class='kw'>end</span></pre>
1761
- </td>
1762
- </tr>
1763
- </table>
1764
- </div>
1765
-
1766
- <div class="method_details ">
1767
- <h3 class="signature " id="prefix-instance_method">
1768
-
1769
- #<strong>prefix</strong> &#x21d2; <tt>Object</tt>
1770
-
1771
-
1772
-
1773
-
1774
-
1775
- </h3><table class="source_code">
1776
- <tr>
1777
- <td>
1778
- <pre class="lines">
1779
-
1780
-
1781
- 164
1782
- 165
1783
- 166
1784
- 167
1785
- 168</pre>
1786
- </td>
1787
- <td>
1788
- <pre class="code"><span class="info file"># File 'lib/autoc/type.rb', line 164</span>
1789
-
1790
- <span class='kw'>def</span> <span class='id identifier rubyid_prefix'>prefix</span>
1791
- <span class='comment'># Lazy evaluator for simple types like char* which do not actually use
1792
- </span> <span class='comment'># this method and hence do not require the prefix to be a valid C identifier
1793
- </span> <span class='const'>AutoC</span><span class='period'>.</span><span class='id identifier rubyid_c_id'>c_id</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='rparen'>)</span>
1794
- <span class='kw'>end</span></pre>
1795
- </td>
1796
- </tr>
1797
- </table>
1798
- </div>
1799
-
1800
- <div class="method_details ">
1801
- <h3 class="signature " id="private?-instance_method">
1802
-
1803
- #<strong>private?</strong> &#x21d2; <tt>Boolean</tt>
1804
-
1805
-
1806
-
1807
-
1808
-
1809
- </h3><div class="docstring">
1810
- <div class="discussion">
1811
-
1812
-
1813
- </div>
1814
- </div>
1815
- <div class="tags">
1816
-
1817
- <p class="tag_title">Returns:</p>
1818
- <ul class="return">
1819
-
1820
- <li>
1821
-
1822
-
1823
- <span class='type'>(<tt>Boolean</tt>)</span>
1824
-
1825
-
1826
-
1827
- </li>
1828
-
1829
- </ul>
1830
-
1831
- </div><table class="source_code">
1832
- <tr>
1833
- <td>
1834
- <pre class="lines">
1835
-
1836
-
1837
- 255</pre>
1838
- </td>
1839
- <td>
1840
- <pre class="code"><span class="info file"># File 'lib/autoc/type.rb', line 255</span>
1841
-
1842
- <span class='kw'>def</span> <span class='id identifier rubyid_private?'>private?</span><span class='semicolon'>;</span> <span class='ivar'>@visibility</span> <span class='op'>==</span> <span class='symbol'>:private</span> <span class='kw'>end</span></pre>
1843
- </td>
1844
- </tr>
1845
- </table>
1846
- </div>
1847
-
1848
- <div class="method_details ">
1849
- <h3 class="signature " id="public?-instance_method">
1850
-
1851
- #<strong>public?</strong> &#x21d2; <tt>Boolean</tt>
1852
-
1853
-
1854
-
1855
-
1856
-
1857
- </h3><div class="docstring">
1858
- <div class="discussion">
1859
-
1860
-
1861
- </div>
1862
- </div>
1863
- <div class="tags">
1864
-
1865
- <p class="tag_title">Returns:</p>
1866
- <ul class="return">
1867
-
1868
- <li>
1869
-
1870
-
1871
- <span class='type'>(<tt>Boolean</tt>)</span>
1872
-
1873
-
1874
-
1875
- </li>
1876
-
1877
- </ul>
1878
-
1879
- </div><table class="source_code">
1880
- <tr>
1881
- <td>
1882
- <pre class="lines">
1883
-
1884
-
1885
- 253</pre>
1886
- </td>
1887
- <td>
1888
- <pre class="code"><span class="info file"># File 'lib/autoc/type.rb', line 253</span>
1889
-
1890
- <span class='kw'>def</span> <span class='id identifier rubyid_public?'>public?</span><span class='semicolon'>;</span> <span class='ivar'>@visibility</span> <span class='op'>==</span> <span class='symbol'>:public</span> <span class='kw'>end</span></pre>
1891
- </td>
1892
- </tr>
1893
- </table>
1894
- </div>
1895
-
1896
- <div class="method_details ">
1897
- <h3 class="signature " id="sortable?-instance_method">
1898
-
1899
- #<strong>sortable?</strong> &#x21d2; <tt>Boolean</tt>
1900
-
1901
-
1902
-
1903
-
1904
-
1905
- </h3><div class="docstring">
1906
- <div class="discussion">
1907
- <div class="paragraph">
1908
- <p>Returns <strong>true</strong> if the type provides corrset soritng routines</p>
1909
- </div>
1910
-
1911
- </div>
1912
- </div>
1913
- <div class="tags">
1914
-
1915
- <p class="tag_title">Returns:</p>
1916
- <ul class="return">
1917
-
1918
- <li>
1919
-
1920
-
1921
- <span class='type'>(<tt>Boolean</tt>)</span>
1922
-
1923
-
1924
-
1925
- </li>
1926
-
1927
- </ul>
1928
-
1929
- </div><table class="source_code">
1930
- <tr>
1931
- <td>
1932
- <pre class="lines">
1933
-
1934
-
1935
- 281</pre>
1936
- </td>
1937
- <td>
1938
- <pre class="code"><span class="info file"># File 'lib/autoc/type.rb', line 281</span>
1939
-
1940
- <span class='kw'>def</span> <span class='id identifier rubyid_sortable?'>sortable?</span><span class='semicolon'>;</span> <span class='id identifier rubyid_comparable?'>comparable?</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_orderable?'>orderable?</span> <span class='kw'>end</span></pre>
1941
- </td>
1942
- </tr>
1943
- </table>
1944
- </div>
1945
-
1946
- <div class="method_details ">
1947
- <h3 class="signature " id="static-instance_method">
1948
-
1949
- #<strong>static</strong> &#x21d2; <tt>Object</tt>
1950
-
1951
-
1952
-
1953
-
1954
-
1955
- </h3><table class="source_code">
1956
- <tr>
1957
- <td>
1958
- <pre class="lines">
1959
-
1960
-
1961
- 241</pre>
1962
- </td>
1963
- <td>
1964
- <pre class="code"><span class="info file"># File 'lib/autoc/type.rb', line 241</span>
1965
-
1966
- <span class='kw'>def</span> <span class='id identifier rubyid_static'>static</span><span class='semicolon'>;</span> <span class='symbol'>:AUTOC_STATIC</span> <span class='kw'>end</span></pre>
1967
- </td>
1968
- </tr>
1969
- </table>
1970
- </div>
1971
-
1972
- <div class="method_details ">
1973
- <h3 class="signature " id="static?-instance_method">
1974
-
1975
- #<strong>static?</strong> &#x21d2; <tt>Boolean</tt>
1976
-
1977
-
1978
-
1979
-
1980
-
1981
- </h3><div class="docstring">
1982
- <div class="discussion">
1983
-
1984
-
1985
- </div>
1986
- </div>
1987
- <div class="tags">
1988
-
1989
- <p class="tag_title">Returns:</p>
1990
- <ul class="return">
1991
-
1992
- <li>
1993
-
1994
-
1995
- <span class='type'>(<tt>Boolean</tt>)</span>
1996
-
1997
-
1998
-
1999
- </li>
2000
-
2001
- </ul>
2002
-
2003
- </div><table class="source_code">
2004
- <tr>
2005
- <td>
2006
- <pre class="lines">
2007
-
2008
-
2009
- 257</pre>
2010
- </td>
2011
- <td>
2012
- <pre class="code"><span class="info file"># File 'lib/autoc/type.rb', line 257</span>
2013
-
2014
- <span class='kw'>def</span> <span class='id identifier rubyid_static?'>static?</span><span class='semicolon'>;</span> <span class='ivar'>@visibility</span> <span class='op'>==</span> <span class='symbol'>:static</span> <span class='kw'>end</span></pre>
2015
- </td>
2016
- </tr>
2017
- </table>
2018
- </div>
2019
-
2020
- <div class="method_details ">
2021
- <h3 class="signature " id="write_decls-instance_method">
2022
-
2023
- #<strong>write_decls</strong>(stream) &#x21d2; <tt>Object</tt>
2024
-
2025
-
2026
-
2027
-
2028
-
2029
- </h3><table class="source_code">
2030
- <tr>
2031
- <td>
2032
- <pre class="lines">
2033
-
2034
-
2035
- 211
2036
- 212
2037
- 213
2038
- 214
2039
- 215
2040
- 216
2041
- 217
2042
- 218
2043
- 219</pre>
2044
- </td>
2045
- <td>
2046
- <pre class="code"><span class="info file"># File 'lib/autoc/type.rb', line 211</span>
2047
-
2048
- <span class='kw'>def</span> <span class='id identifier rubyid_write_decls'>write_decls</span><span class='lparen'>(</span><span class='id identifier rubyid_stream'>stream</span><span class='rparen'>)</span>
2049
- <span class='kw'>if</span> <span class='id identifier rubyid_private?'>private?</span>
2050
- <span class='id identifier rubyid_write_intf_types'>write_intf_types</span><span class='lparen'>(</span><span class='id identifier rubyid_stream'>stream</span><span class='rparen'>)</span>
2051
- <span class='id identifier rubyid_write_intf_decls'>write_intf_decls</span><span class='lparen'>(</span><span class='id identifier rubyid_stream'>stream</span><span class='comma'>,</span> <span class='id identifier rubyid_extern'>extern</span><span class='comma'>,</span> <span class='id identifier rubyid_inline'>inline</span><span class='rparen'>)</span>
2052
- <span class='kw'>elsif</span> <span class='id identifier rubyid_static?'>static?</span>
2053
- <span class='id identifier rubyid_write_intf_types'>write_intf_types</span><span class='lparen'>(</span><span class='id identifier rubyid_stream'>stream</span><span class='rparen'>)</span>
2054
- <span class='id identifier rubyid_write_intf_decls'>write_intf_decls</span><span class='lparen'>(</span><span class='id identifier rubyid_stream'>stream</span><span class='comma'>,</span> <span class='id identifier rubyid_static'>static</span><span class='comma'>,</span> <span class='id identifier rubyid_inline'>inline</span><span class='rparen'>)</span>
2055
- <span class='kw'>end</span>
2056
- <span class='kw'>end</span></pre>
2057
- </td>
2058
- </tr>
2059
- </table>
2060
- </div>
2061
-
2062
- <div class="method_details ">
2063
- <h3 class="signature " id="write_defs-instance_method">
2064
-
2065
- #<strong>write_defs</strong>(stream) &#x21d2; <tt>Object</tt>
2066
-
2067
-
2068
-
2069
-
2070
-
2071
- </h3><table class="source_code">
2072
- <tr>
2073
- <td>
2074
- <pre class="lines">
2075
-
2076
-
2077
- 221
2078
- 222
2079
- 223
2080
- 224
2081
- 225
2082
- 226
2083
- 227</pre>
2084
- </td>
2085
- <td>
2086
- <pre class="code"><span class="info file"># File 'lib/autoc/type.rb', line 221</span>
2087
-
2088
- <span class='kw'>def</span> <span class='id identifier rubyid_write_defs'>write_defs</span><span class='lparen'>(</span><span class='id identifier rubyid_stream'>stream</span><span class='rparen'>)</span>
2089
- <span class='kw'>if</span> <span class='id identifier rubyid_public?'>public?</span> <span class='op'>||</span> <span class='id identifier rubyid_private?'>private?</span>
2090
- <span class='id identifier rubyid_write_impls'>write_impls</span><span class='lparen'>(</span><span class='id identifier rubyid_stream'>stream</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
2091
- <span class='kw'>elsif</span> <span class='id identifier rubyid_static?'>static?</span>
2092
- <span class='id identifier rubyid_write_impls'>write_impls</span><span class='lparen'>(</span><span class='id identifier rubyid_stream'>stream</span><span class='comma'>,</span> <span class='id identifier rubyid_static'>static</span><span class='rparen'>)</span>
2093
- <span class='kw'>end</span>
2094
- <span class='kw'>end</span></pre>
2095
- </td>
2096
- </tr>
2097
- </table>
2098
- </div>
2099
-
2100
- <div class="method_details ">
2101
- <h3 class="signature " id="write_intf-instance_method">
2102
-
2103
- #<strong>write_intf</strong>(stream) &#x21d2; <tt>Object</tt>
2104
-
2105
-
2106
-
2107
-
2108
-
2109
- </h3><table class="source_code">
2110
- <tr>
2111
- <td>
2112
- <pre class="lines">
2113
-
2114
-
2115
- 204
2116
- 205
2117
- 206
2118
- 207
2119
- 208
2120
- 209</pre>
2121
- </td>
2122
- <td>
2123
- <pre class="code"><span class="info file"># File 'lib/autoc/type.rb', line 204</span>
2124
-
2125
- <span class='kw'>def</span> <span class='id identifier rubyid_write_intf'>write_intf</span><span class='lparen'>(</span><span class='id identifier rubyid_stream'>stream</span><span class='rparen'>)</span>
2126
- <span class='kw'>if</span> <span class='id identifier rubyid_public?'>public?</span>
2127
- <span class='id identifier rubyid_write_intf_types'>write_intf_types</span><span class='lparen'>(</span><span class='id identifier rubyid_stream'>stream</span><span class='rparen'>)</span>
2128
- <span class='id identifier rubyid_write_intf_decls'>write_intf_decls</span><span class='lparen'>(</span><span class='id identifier rubyid_stream'>stream</span><span class='comma'>,</span> <span class='id identifier rubyid_extern'>extern</span><span class='comma'>,</span> <span class='id identifier rubyid_inline'>inline</span><span class='rparen'>)</span>
2129
- <span class='kw'>end</span>
2130
- <span class='kw'>end</span></pre>
2131
- </td>
2132
- </tr>
2133
- </table>
2134
- </div>
2135
-
2136
- </div>
2137
-
2138
- </div>
2139
-
2140
- <div id="footer">
2141
- Generated on Wed Oct 12 12:27:11 2016 by
2142
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2143
- 0.9.5 (ruby-2.3.1).
2144
- </div>
2145
-
2146
- </div>
2147
- </body>
2148
- </html>