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,437 +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::Header
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::Header";
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 (H)</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">Header</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::Header
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::Header</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
- </ul>
143
-
144
-
145
-
146
-
147
-
148
- <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="File.html" title="AutoC::Module::File (class)">File</a></span></h3>
149
- <p class="inherited"><span class='object_link'><a href="File.html#entities-instance_method" title="AutoC::Module::File#entities (method)">#entities</a></span></p>
150
-
151
-
152
-
153
- <h2>
154
- Instance Method Summary
155
- <small><a href="#" class="summary_toggle">collapse</a></small>
156
- </h2>
157
-
158
- <ul class="summary">
159
-
160
- <li class="public ">
161
- <span class="summary_signature">
162
-
163
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(*args) &#x21d2; Header </a>
164
-
165
-
166
-
167
- </span>
168
-
169
-
170
- <span class="note title constructor">constructor</span>
171
-
172
-
173
-
174
-
175
-
176
-
177
-
178
-
179
- <span class="summary_desc"><div class='inline'><div class="paragraph">
180
- <p>A new instance of Header.</p>
181
- </div></div></span>
182
-
183
- </li>
184
-
185
-
186
- <li class="public ">
187
- <span class="summary_signature">
188
-
189
- <a href="#new_stream-instance_method" title="#new_stream (instance method)">#<strong>new_stream</strong> &#x21d2; Object </a>
190
-
191
-
192
-
193
- </span>
194
-
195
-
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
- <span class="summary_desc"><div class='inline'></div></span>
204
-
205
- </li>
206
-
207
-
208
- <li class="public ">
209
- <span class="summary_signature">
210
-
211
- <a href="#write-instance_method" title="#write (instance method)">#<strong>write</strong>(stream) &#x21d2; Object </a>
212
-
213
-
214
-
215
- </span>
216
-
217
-
218
-
219
-
220
-
221
-
222
-
223
-
224
-
225
- <span class="summary_desc"><div class='inline'></div></span>
226
-
227
- </li>
228
-
229
-
230
- </ul>
231
-
232
-
233
-
234
-
235
-
236
-
237
-
238
-
239
-
240
-
241
-
242
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="File.html" title="AutoC::Module::File (class)">File</a></span></h3>
243
- <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>
244
- <div id="constructor_details" class="method_details_list">
245
- <h2>Constructor Details</h2>
246
-
247
- <div class="method_details first">
248
- <h3 class="signature first" id="initialize-instance_method">
249
-
250
- #<strong>initialize</strong>(*args) &#x21d2; <tt><span class='object_link'><a href="" title="AutoC::Module::Header (class)">Header</a></span></tt>
251
-
252
-
253
-
254
-
255
-
256
- </h3><div class="docstring">
257
- <div class="discussion">
258
- <div class="paragraph">
259
- <p>Returns a new instance of Header</p>
260
- </div>
261
-
262
- </div>
263
- </div>
264
- <div class="tags">
265
-
266
-
267
- </div><table class="source_code">
268
- <tr>
269
- <td>
270
- <pre class="lines">
271
-
272
-
273
- 170
274
- 171
275
- 172
276
- 173
277
- 174</pre>
278
- </td>
279
- <td>
280
- <pre class="code"><span class="info file"># File 'lib/autoc/code.rb', line 170</span>
281
-
282
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
283
- <span class='kw'>super</span>
284
- <span class='ivar'>@file_name</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.h</span><span class='tstring_end'>&quot;</span></span>
285
- <span class='ivar'>@guard_macro</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_upcase'>upcase</span><span class='embexpr_end'>}</span><span class='tstring_content'>_AUTO_H</span><span class='tstring_end'>&quot;</span></span>
286
- <span class='kw'>end</span></pre>
287
- </td>
288
- </tr>
289
- </table>
290
- </div>
291
-
292
- </div>
293
-
294
- <div id="instance_attr_details" class="attr_details">
295
- <h2>Instance Attribute Details</h2>
296
-
297
-
298
- <span id=""></span>
299
- <div class="method_details first">
300
- <h3 class="signature first" id="file_name-instance_method">
301
-
302
- #<strong>file_name</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
303
-
304
-
305
-
306
-
307
-
308
- </h3><div class="docstring">
309
- <div class="discussion">
310
- <div class="paragraph">
311
- <p>Returns the value of attribute file_name</p>
312
- </div>
313
-
314
- </div>
315
- </div>
316
- <div class="tags">
317
-
318
-
319
- </div><table class="source_code">
320
- <tr>
321
- <td>
322
- <pre class="lines">
323
-
324
-
325
- 168
326
- 169
327
- 170</pre>
328
- </td>
329
- <td>
330
- <pre class="code"><span class="info file"># File 'lib/autoc/code.rb', line 168</span>
331
-
332
- <span class='kw'>def</span> <span class='id identifier rubyid_file_name'>file_name</span>
333
- <span class='ivar'>@file_name</span>
334
- <span class='kw'>end</span></pre>
335
- </td>
336
- </tr>
337
- </table>
338
- </div>
339
-
340
- </div>
341
-
342
-
343
- <div id="instance_method_details" class="method_details_list">
344
- <h2>Instance Method Details</h2>
345
-
346
-
347
- <div class="method_details first">
348
- <h3 class="signature first" id="new_stream-instance_method">
349
-
350
- #<strong>new_stream</strong> &#x21d2; <tt>Object</tt>
351
-
352
-
353
-
354
-
355
-
356
- </h3><table class="source_code">
357
- <tr>
358
- <td>
359
- <pre class="lines">
360
-
361
-
362
- 176
363
- 177
364
- 178</pre>
365
- </td>
366
- <td>
367
- <pre class="code"><span class="info file"># File 'lib/autoc/code.rb', line 176</span>
368
-
369
- <span class='kw'>def</span> <span class='id identifier rubyid_new_stream'>new_stream</span>
370
- <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>
371
- <span class='kw'>end</span></pre>
372
- </td>
373
- </tr>
374
- </table>
375
- </div>
376
-
377
- <div class="method_details ">
378
- <h3 class="signature " id="write-instance_method">
379
-
380
- #<strong>write</strong>(stream) &#x21d2; <tt>Object</tt>
381
-
382
-
383
-
384
-
385
-
386
- </h3><table class="source_code">
387
- <tr>
388
- <td>
389
- <pre class="lines">
390
-
391
-
392
- 180
393
- 181
394
- 182
395
- 183
396
- 184
397
- 185
398
- 186
399
- 187
400
- 188
401
- 189
402
- 190
403
- 191</pre>
404
- </td>
405
- <td>
406
- <pre class="code"><span class="info file"># File 'lib/autoc/code.rb', line 180</span>
407
-
408
- <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>
409
- <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'>
410
- /* AUTOMATICALLY GENERATED HEADER FILE. DO NOT MODIFY. */
411
- #ifndef </span><span class='embexpr_beg'>#{</span><span class='ivar'>@guard_macro</span><span class='embexpr_end'>}</span><span class='tstring_content'>
412
- #define </span><span class='embexpr_beg'>#{</span><span class='ivar'>@guard_macro</span><span class='embexpr_end'>}</span><span class='tstring_content'>
413
- </span><span class='tstring_end'>$</span></span>
414
- <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><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_intf'>write_intf</span><span class='lparen'>(</span><span class='id identifier rubyid_stream'>stream</span><span class='rparen'>)</span><span class='rbrace'>}</span>
415
- <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'>
416
- #endif
417
- </span><span class='tstring_end'>$</span></span>
418
- <span class='id identifier rubyid_stream'>stream</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n</span><span class='tstring_end'>&quot;</span></span> <span class='comment'># DigitalMars C in strict ANSI (-A) mode complains about absent empty line at the very end so let&#39;s make it happy
419
- </span><span class='kw'>end</span></pre>
420
- </td>
421
- </tr>
422
- </table>
423
- </div>
424
-
425
- </div>
426
-
427
- </div>
428
-
429
- <div id="footer">
430
- Generated on Wed Oct 12 12:27:11 2016 by
431
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
432
- 0.9.5 (ruby-2.3.1).
433
- </div>
434
-
435
- </div>
436
- </body>
437
- </html>