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.
- checksums.yaml +5 -5
- data/CHANGES.md +3 -0
- data/README.md +149 -0
- data/cmake/AutoC.cmake +39 -0
- data/lib/autoc/allocators.rb +51 -0
- data/lib/autoc/association.rb +126 -0
- data/lib/autoc/box.rb +311 -0
- data/lib/autoc/cmake.rb +54 -0
- data/lib/autoc/collection.rb +83 -110
- data/lib/autoc/composite.rb +333 -0
- data/lib/autoc/cstring.rb +263 -0
- data/lib/autoc/function.rb +247 -0
- data/lib/autoc/hash_map.rb +328 -0
- data/lib/autoc/hash_set.rb +339 -0
- data/lib/autoc/hashers.rb +102 -0
- data/lib/autoc/list.rb +444 -0
- data/lib/autoc/module.rb +434 -0
- data/lib/autoc/openmp.rb +15 -0
- data/lib/autoc/primitive.rb +27 -0
- data/lib/autoc/ranges.rb +707 -0
- data/lib/autoc/record.rb +247 -0
- data/lib/autoc/scaffold/docs.rb +117 -0
- data/lib/autoc/scaffold/generic_value.rb +86 -0
- data/lib/autoc/scaffold/project.rb +75 -0
- data/lib/autoc/scaffold/test_cstring.rb +113 -0
- data/lib/autoc/scaffold/test_cstring_hash_set.rb +35 -0
- data/lib/autoc/scaffold/test_int_box.rb +22 -0
- data/lib/autoc/scaffold/test_int_hash_set.rb +448 -0
- data/lib/autoc/scaffold/test_int_list.rb +106 -0
- data/lib/autoc/scaffold/test_int_vector.rb +83 -0
- data/lib/autoc/scaffold/test_v2v_hash_map.rb +83 -0
- data/lib/autoc/scaffold/test_value_hash_set.rb +60 -0
- data/lib/autoc/scaffold/test_value_vector.rb +146 -0
- data/{test/test.rb → lib/autoc/scaffold/tests.rb} +179 -158
- data/lib/autoc/scaffold.rb +12 -0
- data/lib/autoc/sequential.rb +99 -0
- data/lib/autoc/set.rb +331 -0
- data/lib/autoc/std.rb +149 -0
- data/lib/autoc/type.rb +93 -531
- data/lib/autoc/vector.rb +290 -0
- data/lib/autoc.rb +4 -35
- metadata +55 -85
- data/.yardopts +0 -4
- data/CHANGES +0 -23
- data/README +0 -28
- data/doc/AutoC/Code.html +0 -523
- data/doc/AutoC/Collection.html +0 -1214
- data/doc/AutoC/HashMap.html +0 -1441
- data/doc/AutoC/HashSet.html +0 -916
- data/doc/AutoC/Iterators/Bidirectional.html +0 -204
- data/doc/AutoC/Iterators/Unidirectional.html +0 -200
- data/doc/AutoC/Iterators.html +0 -126
- data/doc/AutoC/List.html +0 -1039
- data/doc/AutoC/Maps.html +0 -290
- data/doc/AutoC/Module/File.html +0 -415
- data/doc/AutoC/Module/Header.html +0 -437
- data/doc/AutoC/Module/Source.html +0 -707
- data/doc/AutoC/Module.html +0 -948
- data/doc/AutoC/Priority.html +0 -138
- data/doc/AutoC/Queue.html +0 -1172
- data/doc/AutoC/Reference.html +0 -735
- data/doc/AutoC/Sets.html +0 -520
- data/doc/AutoC/String.html +0 -1394
- data/doc/AutoC/TreeMap.html +0 -1565
- data/doc/AutoC/TreeSet.html +0 -1447
- data/doc/AutoC/Type.html +0 -2148
- data/doc/AutoC/UserDefinedType.html +0 -1047
- data/doc/AutoC/Vector.html +0 -987
- data/doc/AutoC.html +0 -331
- data/doc/_index.html +0 -388
- data/doc/class_list.html +0 -51
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -58
- data/doc/css/style.css +0 -481
- data/doc/file.CHANGES.html +0 -117
- data/doc/file.README.html +0 -116
- data/doc/file_list.html +0 -61
- data/doc/frames.html +0 -17
- data/doc/index.html +0 -116
- data/doc/js/app.js +0 -243
- data/doc/js/full_list.js +0 -216
- data/doc/js/jquery.js +0 -4
- data/doc/method_list.html +0 -1307
- data/doc/top-level-namespace.html +0 -112
- data/lib/autoc/code.rb +0 -237
- data/lib/autoc/collection/hash_map.rb +0 -385
- data/lib/autoc/collection/hash_set.rb +0 -337
- data/lib/autoc/collection/iterator.rb +0 -39
- data/lib/autoc/collection/list.rb +0 -429
- data/lib/autoc/collection/map.rb +0 -41
- data/lib/autoc/collection/queue.rb +0 -517
- data/lib/autoc/collection/set.rb +0 -134
- data/lib/autoc/collection/tree_map.rb +0 -464
- data/lib/autoc/collection/tree_set.rb +0 -611
- data/lib/autoc/collection/vector.rb +0 -336
- data/lib/autoc/string.rb +0 -492
- data/test/test_auto.c +0 -7141
- data/test/test_auto.h +0 -753
- data/test/test_char_string.rb +0 -270
- data/test/test_int_list.rb +0 -35
- data/test/test_int_tree_set.rb +0 -111
- data/test/test_int_vector.rb +0 -34
- data/test/test_value_hash_map.rb +0 -162
- data/test/test_value_hash_set.rb +0 -173
- data/test/test_value_list.rb +0 -193
- data/test/test_value_queue.rb +0 -275
- data/test/test_value_tree_map.rb +0 -176
- data/test/test_value_tree_set.rb +0 -173
- data/test/test_value_vector.rb +0 -155
- data/test/value.rb +0 -80
data/doc/AutoC/Module/File.html
DELETED
@@ -1,415 +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::File
|
8
|
-
|
9
|
-
— 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::File";
|
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 (F)</a> »
|
40
|
-
<span class='title'><span class='object_link'><a href="../../AutoC.html" title="AutoC (module)">AutoC</a></span></span> » <span class='title'><span class='object_link'><a href="../Module.html" title="AutoC::Module (class)">Module</a></span></span>
|
41
|
-
»
|
42
|
-
<span class="title">File</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::File
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
</h1>
|
69
|
-
<div class="box_info">
|
70
|
-
|
71
|
-
<dl>
|
72
|
-
<dt>Inherits:</dt>
|
73
|
-
<dd>
|
74
|
-
<span class="inheritName">Object</span>
|
75
|
-
|
76
|
-
<ul class="fullTree">
|
77
|
-
<li>Object</li>
|
78
|
-
|
79
|
-
<li class="next">AutoC::Module::File</li>
|
80
|
-
|
81
|
-
</ul>
|
82
|
-
<a href="#" class="inheritanceTree">show all</a>
|
83
|
-
|
84
|
-
</dd>
|
85
|
-
</dl>
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
<dl>
|
98
|
-
<dt>Defined in:</dt>
|
99
|
-
<dd>lib/autoc/code.rb</dd>
|
100
|
-
</dl>
|
101
|
-
|
102
|
-
</div>
|
103
|
-
|
104
|
-
<div id="subclasses">
|
105
|
-
<h2>Direct Known Subclasses</h2>
|
106
|
-
<p class="children"><span class='object_link'><a href="Header.html" title="AutoC::Module::Header (class)">Header</a></span>, <span class='object_link'><a href="Source.html" title="AutoC::Module::Source (class)">Source</a></span></p>
|
107
|
-
</div>
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
113
|
-
<ul class="summary">
|
114
|
-
|
115
|
-
<li class="public ">
|
116
|
-
<span class="summary_signature">
|
117
|
-
|
118
|
-
<a href="#entities-instance_method" title="#entities (instance method)">#<strong>entities</strong> ⇒ Object </a>
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
</span>
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
<span class="note title readonly">readonly</span>
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
<span class="summary_desc"><div class='inline'><div class="paragraph">
|
138
|
-
<p>Returns the value of attribute entities.</p>
|
139
|
-
</div></div></span>
|
140
|
-
|
141
|
-
</li>
|
142
|
-
|
143
|
-
|
144
|
-
</ul>
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
<h2>
|
151
|
-
Instance Method Summary
|
152
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
153
|
-
</h2>
|
154
|
-
|
155
|
-
<ul class="summary">
|
156
|
-
|
157
|
-
<li class="public ">
|
158
|
-
<span class="summary_signature">
|
159
|
-
|
160
|
-
<a href="#%3C%3C-instance_method" title="#<< (instance method)">#<strong><<</strong>(e) ⇒ Object </a>
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
</span>
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
175
|
-
|
176
|
-
</li>
|
177
|
-
|
178
|
-
|
179
|
-
<li class="public ">
|
180
|
-
<span class="summary_signature">
|
181
|
-
|
182
|
-
<a href="#generate-instance_method" title="#generate (instance method)">#<strong>generate</strong> ⇒ Object </a>
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
</span>
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
197
|
-
|
198
|
-
</li>
|
199
|
-
|
200
|
-
|
201
|
-
<li class="public ">
|
202
|
-
<span class="summary_signature">
|
203
|
-
|
204
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(m) ⇒ File </a>
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
</span>
|
209
|
-
|
210
|
-
|
211
|
-
<span class="note title constructor">constructor</span>
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
<span class="summary_desc"><div class='inline'><div class="paragraph">
|
221
|
-
<p>def write(stream).</p>
|
222
|
-
</div></div></span>
|
223
|
-
|
224
|
-
</li>
|
225
|
-
|
226
|
-
|
227
|
-
</ul>
|
228
|
-
|
229
|
-
|
230
|
-
<div id="constructor_details" class="method_details_list">
|
231
|
-
<h2>Constructor Details</h2>
|
232
|
-
|
233
|
-
<div class="method_details first">
|
234
|
-
<h3 class="signature first" id="initialize-instance_method">
|
235
|
-
|
236
|
-
#<strong>initialize</strong>(m) ⇒ <tt><span class='object_link'><a href="" title="AutoC::Module::File (class)">File</a></span></tt>
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
</h3><div class="docstring">
|
243
|
-
<div class="discussion">
|
244
|
-
<div class="paragraph">
|
245
|
-
<p>def write(stream)</p>
|
246
|
-
</div>
|
247
|
-
|
248
|
-
</div>
|
249
|
-
</div>
|
250
|
-
<div class="tags">
|
251
|
-
|
252
|
-
|
253
|
-
</div><table class="source_code">
|
254
|
-
<tr>
|
255
|
-
<td>
|
256
|
-
<pre class="lines">
|
257
|
-
|
258
|
-
|
259
|
-
144
|
260
|
-
145
|
261
|
-
146
|
262
|
-
147</pre>
|
263
|
-
</td>
|
264
|
-
<td>
|
265
|
-
<pre class="code"><span class="info file"># File 'lib/autoc/code.rb', line 144</span>
|
266
|
-
|
267
|
-
<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='rparen'>)</span>
|
268
|
-
<span class='ivar'>@entities</span> <span class='op'>=</span> <span class='const'>Set</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
269
|
-
<span class='ivar'>@module</span> <span class='op'>=</span> <span class='id identifier rubyid_m'>m</span>
|
270
|
-
<span class='kw'>end</span></pre>
|
271
|
-
</td>
|
272
|
-
</tr>
|
273
|
-
</table>
|
274
|
-
</div>
|
275
|
-
|
276
|
-
</div>
|
277
|
-
|
278
|
-
<div id="instance_attr_details" class="attr_details">
|
279
|
-
<h2>Instance Attribute Details</h2>
|
280
|
-
|
281
|
-
|
282
|
-
<span id=""></span>
|
283
|
-
<div class="method_details first">
|
284
|
-
<h3 class="signature first" id="entities-instance_method">
|
285
|
-
|
286
|
-
#<strong>entities</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
</h3><div class="docstring">
|
293
|
-
<div class="discussion">
|
294
|
-
<div class="paragraph">
|
295
|
-
<p>Returns the value of attribute entities</p>
|
296
|
-
</div>
|
297
|
-
|
298
|
-
</div>
|
299
|
-
</div>
|
300
|
-
<div class="tags">
|
301
|
-
|
302
|
-
|
303
|
-
</div><table class="source_code">
|
304
|
-
<tr>
|
305
|
-
<td>
|
306
|
-
<pre class="lines">
|
307
|
-
|
308
|
-
|
309
|
-
138
|
310
|
-
139
|
311
|
-
140</pre>
|
312
|
-
</td>
|
313
|
-
<td>
|
314
|
-
<pre class="code"><span class="info file"># File 'lib/autoc/code.rb', line 138</span>
|
315
|
-
|
316
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_entities'>entities</span>
|
317
|
-
<span class='ivar'>@entities</span>
|
318
|
-
<span class='kw'>end</span></pre>
|
319
|
-
</td>
|
320
|
-
</tr>
|
321
|
-
</table>
|
322
|
-
</div>
|
323
|
-
|
324
|
-
</div>
|
325
|
-
|
326
|
-
|
327
|
-
<div id="instance_method_details" class="method_details_list">
|
328
|
-
<h2>Instance Method Details</h2>
|
329
|
-
|
330
|
-
|
331
|
-
<div class="method_details first">
|
332
|
-
<h3 class="signature first" id="<<-instance_method">
|
333
|
-
|
334
|
-
#<strong><<</strong>(e) ⇒ <tt>Object</tt>
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
</h3><table class="source_code">
|
341
|
-
<tr>
|
342
|
-
<td>
|
343
|
-
<pre class="lines">
|
344
|
-
|
345
|
-
|
346
|
-
158
|
347
|
-
159
|
348
|
-
160
|
349
|
-
161</pre>
|
350
|
-
</td>
|
351
|
-
<td>
|
352
|
-
<pre class="code"><span class="info file"># File 'lib/autoc/code.rb', line 158</span>
|
353
|
-
|
354
|
-
<span class='kw'>def</span> <span class='op'><<</span><span class='lparen'>(</span><span class='id identifier rubyid_e'>e</span><span class='rparen'>)</span>
|
355
|
-
<span class='ivar'>@entities</span> <span class='op'><<</span> <span class='id identifier rubyid_e'>e</span>
|
356
|
-
<span class='kw'>self</span>
|
357
|
-
<span class='kw'>end</span></pre>
|
358
|
-
</td>
|
359
|
-
</tr>
|
360
|
-
</table>
|
361
|
-
</div>
|
362
|
-
|
363
|
-
<div class="method_details ">
|
364
|
-
<h3 class="signature " id="generate-instance_method">
|
365
|
-
|
366
|
-
#<strong>generate</strong> ⇒ <tt>Object</tt>
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
</h3><table class="source_code">
|
373
|
-
<tr>
|
374
|
-
<td>
|
375
|
-
<pre class="lines">
|
376
|
-
|
377
|
-
|
378
|
-
149
|
379
|
-
150
|
380
|
-
151
|
381
|
-
152
|
382
|
-
153
|
383
|
-
154
|
384
|
-
155
|
385
|
-
156</pre>
|
386
|
-
</td>
|
387
|
-
<td>
|
388
|
-
<pre class="code"><span class="info file"># File 'lib/autoc/code.rb', line 149</span>
|
389
|
-
|
390
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_generate'>generate</span>
|
391
|
-
<span class='id identifier rubyid_stream'>stream</span> <span class='op'>=</span> <span class='id identifier rubyid_new_stream'>new_stream</span>
|
392
|
-
<span class='kw'>begin</span>
|
393
|
-
<span class='id identifier rubyid_write'>write</span><span class='lparen'>(</span><span class='id identifier rubyid_stream'>stream</span><span class='rparen'>)</span>
|
394
|
-
<span class='kw'>ensure</span>
|
395
|
-
<span class='id identifier rubyid_stream'>stream</span><span class='period'>.</span><span class='id identifier rubyid_close'>close</span>
|
396
|
-
<span class='kw'>end</span>
|
397
|
-
<span class='kw'>end</span></pre>
|
398
|
-
</td>
|
399
|
-
</tr>
|
400
|
-
</table>
|
401
|
-
</div>
|
402
|
-
|
403
|
-
</div>
|
404
|
-
|
405
|
-
</div>
|
406
|
-
|
407
|
-
<div id="footer">
|
408
|
-
Generated on Wed Oct 12 12:27:11 2016 by
|
409
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
410
|
-
0.9.5 (ruby-2.3.1).
|
411
|
-
</div>
|
412
|
-
|
413
|
-
</div>
|
414
|
-
</body>
|
415
|
-
</html>
|