autoc 1.4 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -1,707 +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::Module::Source
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::Module::Source";
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 (S)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../../AutoC.html" title="AutoC (module)">AutoC</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Module.html" title="AutoC::Module (class)">Module</a></span></span>
41
- &raquo;
42
- <span class="title">Source</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::Module::Source
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="File.html" title="AutoC::Module::File (class)">File</a></span></span>
75
-
76
- <ul class="fullTree">
77
- <li>Object</li>
78
-
79
- <li class="next"><span class='object_link'><a href="File.html" title="AutoC::Module::File (class)">File</a></span></li>
80
-
81
- <li class="next">AutoC::Module::Source</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/code.rb</dd>
102
- </dl>
103
-
104
- </div>
105
-
106
-
107
-
108
-
109
-
110
- <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
111
- <ul class="summary">
112
-
113
- <li class="public ">
114
- <span class="summary_signature">
115
-
116
- <a href="#file_name-instance_method" title="#file_name (instance method)">#<strong>file_name</strong> &#x21d2; Object </a>
117
-
118
-
119
-
120
- </span>
121
-
122
-
123
-
124
-
125
- <span class="note title readonly">readonly</span>
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
- <span class="summary_desc"><div class='inline'><div class="paragraph">
136
- <p>Returns the value of attribute file_name.</p>
137
- </div></div></span>
138
-
139
- </li>
140
-
141
-
142
- <li class="public ">
143
- <span class="summary_signature">
144
-
145
- <a href="#index-instance_method" title="#index (instance method)">#<strong>index</strong> &#x21d2; Object </a>
146
-
147
-
148
-
149
- </span>
150
-
151
-
152
-
153
-
154
- <span class="note title readonly">readonly</span>
155
-
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
- <span class="summary_desc"><div class='inline'><div class="paragraph">
165
- <p>Returns the value of attribute index.</p>
166
- </div></div></span>
167
-
168
- </li>
169
-
170
-
171
- </ul>
172
-
173
-
174
-
175
-
176
-
177
- <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="File.html" title="AutoC::Module::File (class)">File</a></span></h3>
178
- <p class="inherited"><span class='object_link'><a href="File.html#entities-instance_method" title="AutoC::Module::File#entities (method)">#entities</a></span></p>
179
-
180
-
181
-
182
- <h2>
183
- Instance Method Summary
184
- <small><a href="#" class="summary_toggle">collapse</a></small>
185
- </h2>
186
-
187
- <ul class="summary">
188
-
189
- <li class="public ">
190
- <span class="summary_signature">
191
-
192
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(m, i) &#x21d2; Source </a>
193
-
194
-
195
-
196
- </span>
197
-
198
-
199
- <span class="note title constructor">constructor</span>
200
-
201
-
202
-
203
-
204
-
205
-
206
-
207
-
208
- <span class="summary_desc"><div class='inline'><div class="paragraph">
209
- <p>A new instance of Source.</p>
210
- </div></div></span>
211
-
212
- </li>
213
-
214
-
215
- <li class="public ">
216
- <span class="summary_signature">
217
-
218
- <a href="#main%3F-instance_method" title="#main? (instance method)">#<strong>main?</strong> &#x21d2; Boolean </a>
219
-
220
-
221
-
222
- </span>
223
-
224
-
225
-
226
-
227
-
228
-
229
-
230
-
231
-
232
- <span class="summary_desc"><div class='inline'></div></span>
233
-
234
- </li>
235
-
236
-
237
- <li class="public ">
238
- <span class="summary_signature">
239
-
240
- <a href="#new_stream-instance_method" title="#new_stream (instance method)">#<strong>new_stream</strong> &#x21d2; Object </a>
241
-
242
-
243
-
244
- </span>
245
-
246
-
247
-
248
-
249
-
250
-
251
-
252
-
253
-
254
- <span class="summary_desc"><div class='inline'></div></span>
255
-
256
- </li>
257
-
258
-
259
- <li class="public ">
260
- <span class="summary_signature">
261
-
262
- <a href="#size-instance_method" title="#size (instance method)">#<strong>size</strong> &#x21d2; Object </a>
263
-
264
-
265
-
266
- </span>
267
-
268
-
269
-
270
-
271
-
272
-
273
-
274
-
275
-
276
- <span class="summary_desc"><div class='inline'></div></span>
277
-
278
- </li>
279
-
280
-
281
- <li class="public ">
282
- <span class="summary_signature">
283
-
284
- <a href="#smallest%3F-instance_method" title="#smallest? (instance method)">#<strong>smallest?</strong> &#x21d2; Boolean </a>
285
-
286
-
287
-
288
- </span>
289
-
290
-
291
-
292
-
293
-
294
-
295
-
296
-
297
-
298
- <span class="summary_desc"><div class='inline'></div></span>
299
-
300
- </li>
301
-
302
-
303
- <li class="public ">
304
- <span class="summary_signature">
305
-
306
- <a href="#write-instance_method" title="#write (instance method)">#<strong>write</strong>(stream) &#x21d2; Object </a>
307
-
308
-
309
-
310
- </span>
311
-
312
-
313
-
314
-
315
-
316
-
317
-
318
-
319
-
320
- <span class="summary_desc"><div class='inline'></div></span>
321
-
322
- </li>
323
-
324
-
325
- </ul>
326
-
327
-
328
-
329
-
330
-
331
-
332
-
333
-
334
-
335
-
336
-
337
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="File.html" title="AutoC::Module::File (class)">File</a></span></h3>
338
- <p class="inherited"><span class='object_link'><a href="File.html#%3C%3C-instance_method" title="AutoC::Module::File#&lt;&lt; (method)">#<<</a></span>, <span class='object_link'><a href="File.html#generate-instance_method" title="AutoC::Module::File#generate (method)">#generate</a></span></p>
339
- <div id="constructor_details" class="method_details_list">
340
- <h2>Constructor Details</h2>
341
-
342
- <div class="method_details first">
343
- <h3 class="signature first" id="initialize-instance_method">
344
-
345
- #<strong>initialize</strong>(m, i) &#x21d2; <tt><span class='object_link'><a href="" title="AutoC::Module::Source (class)">Source</a></span></tt>
346
-
347
-
348
-
349
-
350
-
351
- </h3><div class="docstring">
352
- <div class="discussion">
353
- <div class="paragraph">
354
- <p>Returns a new instance of Source</p>
355
- </div>
356
-
357
- </div>
358
- </div>
359
- <div class="tags">
360
-
361
-
362
- </div><table class="source_code">
363
- <tr>
364
- <td>
365
- <pre class="lines">
366
-
367
-
368
- 200
369
- 201
370
- 202
371
- 203
372
- 204</pre>
373
- </td>
374
- <td>
375
- <pre class="code"><span class="info file"># File 'lib/autoc/code.rb', line 200</span>
376
-
377
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_m'>m</span><span class='comma'>,</span> <span class='id identifier rubyid_i'>i</span><span class='rparen'>)</span>
378
- <span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_m'>m</span><span class='rparen'>)</span>
379
- <span class='ivar'>@index</span> <span class='op'>=</span> <span class='id identifier rubyid_i'>i</span>
380
- <span class='ivar'>@file_name</span> <span class='op'>=</span> <span class='ivar'>@module</span><span class='period'>.</span><span class='id identifier rubyid_source_count'>source_count</span> <span class='op'>&gt;</span> <span class='int'>1</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='ivar'>@module</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span><span class='embexpr_end'>}</span><span class='tstring_content'>_auto</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_index'>index</span><span class='embexpr_end'>}</span><span class='tstring_content'>.c</span><span class='tstring_end'>&quot;</span></span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='ivar'>@module</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span><span class='embexpr_end'>}</span><span class='tstring_content'>_auto.c</span><span class='tstring_end'>&quot;</span></span>
381
- <span class='kw'>end</span></pre>
382
- </td>
383
- </tr>
384
- </table>
385
- </div>
386
-
387
- </div>
388
-
389
- <div id="instance_attr_details" class="attr_details">
390
- <h2>Instance Attribute Details</h2>
391
-
392
-
393
- <span id=""></span>
394
- <div class="method_details first">
395
- <h3 class="signature first" id="file_name-instance_method">
396
-
397
- #<strong>file_name</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
398
-
399
-
400
-
401
-
402
-
403
- </h3><div class="docstring">
404
- <div class="discussion">
405
- <div class="paragraph">
406
- <p>Returns the value of attribute file_name</p>
407
- </div>
408
-
409
- </div>
410
- </div>
411
- <div class="tags">
412
-
413
-
414
- </div><table class="source_code">
415
- <tr>
416
- <td>
417
- <pre class="lines">
418
-
419
-
420
- 198
421
- 199
422
- 200</pre>
423
- </td>
424
- <td>
425
- <pre class="code"><span class="info file"># File 'lib/autoc/code.rb', line 198</span>
426
-
427
- <span class='kw'>def</span> <span class='id identifier rubyid_file_name'>file_name</span>
428
- <span class='ivar'>@file_name</span>
429
- <span class='kw'>end</span></pre>
430
- </td>
431
- </tr>
432
- </table>
433
- </div>
434
-
435
-
436
- <span id=""></span>
437
- <div class="method_details ">
438
- <h3 class="signature " id="index-instance_method">
439
-
440
- #<strong>index</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
441
-
442
-
443
-
444
-
445
-
446
- </h3><div class="docstring">
447
- <div class="discussion">
448
- <div class="paragraph">
449
- <p>Returns the value of attribute index</p>
450
- </div>
451
-
452
- </div>
453
- </div>
454
- <div class="tags">
455
-
456
-
457
- </div><table class="source_code">
458
- <tr>
459
- <td>
460
- <pre class="lines">
461
-
462
-
463
- 198
464
- 199
465
- 200</pre>
466
- </td>
467
- <td>
468
- <pre class="code"><span class="info file"># File 'lib/autoc/code.rb', line 198</span>
469
-
470
- <span class='kw'>def</span> <span class='id identifier rubyid_index'>index</span>
471
- <span class='ivar'>@index</span>
472
- <span class='kw'>end</span></pre>
473
- </td>
474
- </tr>
475
- </table>
476
- </div>
477
-
478
- </div>
479
-
480
-
481
- <div id="instance_method_details" class="method_details_list">
482
- <h2>Instance Method Details</h2>
483
-
484
-
485
- <div class="method_details first">
486
- <h3 class="signature first" id="main?-instance_method">
487
-
488
- #<strong>main?</strong> &#x21d2; <tt>Boolean</tt>
489
-
490
-
491
-
492
-
493
-
494
- </h3><div class="docstring">
495
- <div class="discussion">
496
-
497
-
498
- </div>
499
- </div>
500
- <div class="tags">
501
-
502
- <p class="tag_title">Returns:</p>
503
- <ul class="return">
504
-
505
- <li>
506
-
507
-
508
- <span class='type'>(<tt>Boolean</tt>)</span>
509
-
510
-
511
-
512
- </li>
513
-
514
- </ul>
515
-
516
- </div><table class="source_code">
517
- <tr>
518
- <td>
519
- <pre class="lines">
520
-
521
-
522
- 206
523
- 207
524
- 208</pre>
525
- </td>
526
- <td>
527
- <pre class="code"><span class="info file"># File 'lib/autoc/code.rb', line 206</span>
528
-
529
- <span class='kw'>def</span> <span class='id identifier rubyid_main?'>main?</span>
530
- <span class='id identifier rubyid_equal?'>equal?</span><span class='lparen'>(</span><span class='ivar'>@module</span><span class='period'>.</span><span class='id identifier rubyid_main_source'>main_source</span><span class='rparen'>)</span>
531
- <span class='kw'>end</span></pre>
532
- </td>
533
- </tr>
534
- </table>
535
- </div>
536
-
537
- <div class="method_details ">
538
- <h3 class="signature " id="new_stream-instance_method">
539
-
540
- #<strong>new_stream</strong> &#x21d2; <tt>Object</tt>
541
-
542
-
543
-
544
-
545
-
546
- </h3><table class="source_code">
547
- <tr>
548
- <td>
549
- <pre class="lines">
550
-
551
-
552
- 220
553
- 221
554
- 222</pre>
555
- </td>
556
- <td>
557
- <pre class="code"><span class="info file"># File 'lib/autoc/code.rb', line 220</span>
558
-
559
- <span class='kw'>def</span> <span class='id identifier rubyid_new_stream'>new_stream</span>
560
- <span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='ivar'>@file_name</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>w</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
561
- <span class='kw'>end</span></pre>
562
- </td>
563
- </tr>
564
- </table>
565
- </div>
566
-
567
- <div class="method_details ">
568
- <h3 class="signature " id="size-instance_method">
569
-
570
- #<strong>size</strong> &#x21d2; <tt>Object</tt>
571
-
572
-
573
-
574
-
575
-
576
- </h3><table class="source_code">
577
- <tr>
578
- <td>
579
- <pre class="lines">
580
-
581
-
582
- 214
583
- 215
584
- 216
585
- 217
586
- 218</pre>
587
- </td>
588
- <td>
589
- <pre class="code"><span class="info file"># File 'lib/autoc/code.rb', line 214</span>
590
-
591
- <span class='kw'>def</span> <span class='id identifier rubyid_size'>size</span>
592
- <span class='id identifier rubyid_size'>size</span> <span class='op'>=</span> <span class='int'>0</span>
593
- <span class='ivar'>@entities</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_e'>e</span><span class='op'>|</span> <span class='id identifier rubyid_size'>size</span> <span class='op'>+=</span> <span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_source_size'>source_size</span><span class='rbrace'>}</span>
594
- <span class='id identifier rubyid_size'>size</span>
595
- <span class='kw'>end</span></pre>
596
- </td>
597
- </tr>
598
- </table>
599
- </div>
600
-
601
- <div class="method_details ">
602
- <h3 class="signature " id="smallest?-instance_method">
603
-
604
- #<strong>smallest?</strong> &#x21d2; <tt>Boolean</tt>
605
-
606
-
607
-
608
-
609
-
610
- </h3><div class="docstring">
611
- <div class="discussion">
612
-
613
-
614
- </div>
615
- </div>
616
- <div class="tags">
617
-
618
- <p class="tag_title">Returns:</p>
619
- <ul class="return">
620
-
621
- <li>
622
-
623
-
624
- <span class='type'>(<tt>Boolean</tt>)</span>
625
-
626
-
627
-
628
- </li>
629
-
630
- </ul>
631
-
632
- </div><table class="source_code">
633
- <tr>
634
- <td>
635
- <pre class="lines">
636
-
637
-
638
- 210
639
- 211
640
- 212</pre>
641
- </td>
642
- <td>
643
- <pre class="code"><span class="info file"># File 'lib/autoc/code.rb', line 210</span>
644
-
645
- <span class='kw'>def</span> <span class='id identifier rubyid_smallest?'>smallest?</span>
646
- <span class='id identifier rubyid_equal?'>equal?</span><span class='lparen'>(</span><span class='ivar'>@module</span><span class='period'>.</span><span class='id identifier rubyid_smallest_source'>smallest_source</span><span class='rparen'>)</span>
647
- <span class='kw'>end</span></pre>
648
- </td>
649
- </tr>
650
- </table>
651
- </div>
652
-
653
- <div class="method_details ">
654
- <h3 class="signature " id="write-instance_method">
655
-
656
- #<strong>write</strong>(stream) &#x21d2; <tt>Object</tt>
657
-
658
-
659
-
660
-
661
-
662
- </h3><table class="source_code">
663
- <tr>
664
- <td>
665
- <pre class="lines">
666
-
667
-
668
- 224
669
- 225
670
- 226
671
- 227
672
- 228
673
- 229
674
- 230
675
- 231
676
- 232</pre>
677
- </td>
678
- <td>
679
- <pre class="code"><span class="info file"># File 'lib/autoc/code.rb', line 224</span>
680
-
681
- <span class='kw'>def</span> <span class='id identifier rubyid_write'>write</span><span class='lparen'>(</span><span class='id identifier rubyid_stream'>stream</span><span class='rparen'>)</span>
682
- <span class='id identifier rubyid_stream'>stream</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>%$</span><span class='tstring_content'>
683
- /* AUTOMATICALLY GENERATED SOURCE FILE. DO NOT MODIFY. */
684
- #include &quot;</span><span class='embexpr_beg'>#{</span><span class='ivar'>@module</span><span class='period'>.</span><span class='id identifier rubyid_header'>header</span><span class='period'>.</span><span class='id identifier rubyid_file_name'>file_name</span><span class='embexpr_end'>}</span><span class='tstring_content'>&quot;
685
- </span><span class='tstring_end'>$</span></span>
686
- <span class='id identifier rubyid_sorted'>sorted</span> <span class='op'>=</span> <span class='const'>AutoC</span><span class='period'>.</span><span class='id identifier rubyid_priority_sort'>priority_sort</span><span class='lparen'>(</span><span class='id identifier rubyid_entities'>entities</span><span class='rparen'>)</span>
687
- <span class='id identifier rubyid_sorted'>sorted</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_e'>e</span><span class='op'>|</span> <span class='id identifier rubyid_e'>e</span><span class='period'>.</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><span class='rbrace'>}</span>
688
- <span class='id identifier rubyid_sorted'>sorted</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_e'>e</span><span class='op'>|</span> <span class='id identifier rubyid_e'>e</span><span class='period'>.</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><span class='rbrace'>}</span>
689
- <span class='kw'>end</span></pre>
690
- </td>
691
- </tr>
692
- </table>
693
- </div>
694
-
695
- </div>
696
-
697
- </div>
698
-
699
- <div id="footer">
700
- Generated on Wed Oct 12 12:27:11 2016 by
701
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
702
- 0.9.5 (ruby-2.3.1).
703
- </div>
704
-
705
- </div>
706
- </body>
707
- </html>