autoc 1.3 → 1.4
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 +4 -4
- data/CHANGES +4 -0
- data/doc/AutoC.html +55 -55
- data/doc/AutoC/Code.html +60 -57
- data/doc/AutoC/Collection.html +134 -124
- data/doc/AutoC/HashMap.html +147 -185
- data/doc/AutoC/HashSet.html +114 -325
- data/doc/AutoC/Iterators.html +126 -0
- data/doc/AutoC/Iterators/Bidirectional.html +204 -0
- data/doc/AutoC/Iterators/Unidirectional.html +200 -0
- data/doc/AutoC/List.html +81 -76
- data/doc/AutoC/Maps.html +290 -0
- data/doc/AutoC/Module.html +72 -69
- data/doc/AutoC/Module/File.html +55 -52
- data/doc/AutoC/Module/Header.html +55 -52
- data/doc/AutoC/Module/Source.html +63 -60
- data/doc/AutoC/Priority.html +57 -57
- data/doc/AutoC/Queue.html +75 -74
- data/doc/AutoC/Reference.html +92 -91
- data/doc/AutoC/Sets.html +520 -0
- data/doc/AutoC/String.html +70 -69
- data/doc/AutoC/TreeMap.html +1565 -0
- data/doc/AutoC/TreeSet.html +1447 -0
- data/doc/AutoC/Type.html +184 -110
- data/doc/AutoC/UserDefinedType.html +102 -102
- data/doc/AutoC/Vector.html +100 -91
- data/doc/_index.html +97 -33
- data/doc/class_list.html +24 -31
- data/doc/css/full_list.css +32 -31
- data/doc/css/style.css +220 -78
- data/doc/file.CHANGES.html +37 -30
- data/doc/file.README.html +29 -30
- data/doc/file_list.html +29 -31
- data/doc/frames.html +7 -16
- data/doc/index.html +29 -30
- data/doc/js/app.js +100 -76
- data/doc/js/full_list.js +170 -135
- data/doc/method_list.html +877 -431
- data/doc/top-level-namespace.html +35 -35
- data/lib/autoc.rb +4 -2
- data/lib/autoc/collection.rb +10 -4
- data/lib/autoc/collection/hash_map.rb +22 -41
- data/lib/autoc/collection/hash_set.rb +13 -120
- data/lib/autoc/collection/iterator.rb +39 -0
- data/lib/autoc/collection/list.rb +7 -5
- data/lib/autoc/collection/map.rb +41 -0
- data/lib/autoc/collection/queue.rb +8 -8
- data/lib/autoc/collection/set.rb +134 -0
- data/lib/autoc/collection/tree_map.rb +464 -0
- data/lib/autoc/collection/tree_set.rb +611 -0
- data/lib/autoc/collection/vector.rb +8 -4
- data/lib/autoc/string.rb +1 -1
- data/lib/autoc/type.rb +3 -0
- data/test/test.rb +2 -2
- data/test/test_auto.c +7141 -0
- data/test/test_auto.h +753 -0
- data/test/test_int_tree_set.rb +111 -0
- data/test/test_value_hash_map.rb +1 -1
- data/test/test_value_hash_set.rb +1 -1
- data/test/test_value_tree_map.rb +176 -0
- data/test/test_value_tree_set.rb +173 -0
- metadata +21 -5
data/doc/AutoC/Collection.html
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
4
3
|
<head>
|
5
|
-
<meta
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
7
|
Class: AutoC::Collection
|
8
8
|
|
9
|
-
— Documentation by YARD 0.
|
9
|
+
— Documentation by YARD 0.9.5
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -15,9 +15,8 @@
|
|
15
15
|
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
|
-
|
18
|
+
pathId = "AutoC::Collection";
|
19
19
|
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!AutoC/Collection.html";
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,51 +27,50 @@
|
|
28
27
|
|
29
28
|
</head>
|
30
29
|
<body>
|
31
|
-
<div
|
32
|
-
<
|
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">
|
33
38
|
|
34
39
|
<a href="../_index.html">Index (C)</a> »
|
35
40
|
<span class='title'><span class='object_link'><a href="../AutoC.html" title="AutoC (module)">AutoC</a></span></span>
|
36
41
|
»
|
37
42
|
<span class="title">Collection</span>
|
38
43
|
|
39
|
-
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
44
|
</div>
|
42
45
|
|
43
|
-
|
46
|
+
<div id="search">
|
44
47
|
|
45
48
|
<a class="full_list_link" id="class_list_link"
|
46
49
|
href="../class_list.html">
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
</a>
|
54
|
-
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
56
|
-
href="../file_list.html">
|
57
|
-
File List
|
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>
|
58
56
|
</a>
|
59
57
|
|
60
58
|
</div>
|
61
|
-
|
62
|
-
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
63
61
|
|
64
|
-
|
62
|
+
<iframe id="search_frame" src="../class_list.html"></iframe>
|
65
63
|
|
66
|
-
|
64
|
+
<div id="content"><h1>Class: AutoC::Collection
|
67
65
|
|
68
66
|
|
69
67
|
|
70
68
|
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
69
|
+
<div class="box_info">
|
73
70
|
|
74
|
-
|
75
|
-
<
|
71
|
+
<dl>
|
72
|
+
<dt>Inherits:</dt>
|
73
|
+
<dd>
|
76
74
|
<span class="inheritName"><span class='object_link'><a href="Type.html" title="AutoC::Type (class)">Type</a></span></span>
|
77
75
|
|
78
76
|
<ul class="fullTree">
|
@@ -87,25 +85,30 @@
|
|
87
85
|
</ul>
|
88
86
|
<a href="#" class="inheritanceTree">show all</a>
|
89
87
|
|
90
|
-
|
91
|
-
|
88
|
+
</dd>
|
89
|
+
</dl>
|
90
|
+
|
91
|
+
|
92
92
|
|
93
93
|
|
94
|
-
|
95
94
|
|
96
|
-
|
97
|
-
<dt class="r2">Includes:</dt>
|
98
|
-
<dd class="r2">Redirecting</dd>
|
99
|
-
|
100
|
-
|
101
95
|
|
96
|
+
<dl>
|
97
|
+
<dt>Includes:</dt>
|
98
|
+
<dd>Redirecting</dd>
|
99
|
+
</dl>
|
102
100
|
|
103
101
|
|
104
|
-
|
105
|
-
<dd class="r1 last">lib/autoc/collection.rb</dd>
|
102
|
+
|
106
103
|
|
107
|
-
|
108
|
-
|
104
|
+
|
105
|
+
|
106
|
+
<dl>
|
107
|
+
<dt>Defined in:</dt>
|
108
|
+
<dd>lib/autoc/collection.rb</dd>
|
109
|
+
</dl>
|
110
|
+
|
111
|
+
</div>
|
109
112
|
|
110
113
|
<h2>Overview</h2><div class="docstring">
|
111
114
|
<div class="discussion">
|
@@ -120,6 +123,9 @@
|
|
120
123
|
<li>
|
121
124
|
<p><span class='object_link'><a href="Reference.html" title="AutoC::Reference (class)">Reference</a></span> counted reference type</p>
|
122
125
|
</li>
|
126
|
+
<li>
|
127
|
+
<p><span class='object_link'><a href="String.html" title="AutoC::String (class)">String</a></span> string builder type with value semantics</p>
|
128
|
+
</li>
|
123
129
|
</ul>
|
124
130
|
</div>
|
125
131
|
</div>
|
@@ -133,16 +139,22 @@
|
|
133
139
|
<p><span class='object_link'><a href="Vector.html" title="AutoC::Vector (class)">Vector</a></span> resizable array</p>
|
134
140
|
</li>
|
135
141
|
<li>
|
136
|
-
<p><span class='object_link'><a href="List.html" title="AutoC::List (class)">List</a></span>
|
142
|
+
<p><span class='object_link'><a href="List.html" title="AutoC::List (class)">List</a></span> singly linked list</p>
|
143
|
+
</li>
|
144
|
+
<li>
|
145
|
+
<p><span class='object_link'><a href="Queue.html" title="AutoC::Queue (class)">Queue</a></span> doubly linked list</p>
|
137
146
|
</li>
|
138
147
|
<li>
|
139
|
-
<p><span class='object_link'><a href="
|
148
|
+
<p><span class='object_link'><a href="HashSet.html" title="AutoC::HashSet (class)">HashSet</a></span> hash-based unordered set</p>
|
140
149
|
</li>
|
141
150
|
<li>
|
142
|
-
<p><span class='object_link'><a href="
|
151
|
+
<p><span class='object_link'><a href="HashMap.html" title="AutoC::HashMap (class)">HashMap</a></span> hash-based unordered map</p>
|
143
152
|
</li>
|
144
153
|
<li>
|
145
|
-
<p><span class='object_link'><a href="
|
154
|
+
<p><span class='object_link'><a href="TreeSet.html" title="AutoC::TreeSet (class)">TreeSet</a></span> tree-based sorted set</p>
|
155
|
+
</li>
|
156
|
+
<li>
|
157
|
+
<p><span class='object_link'><a href="TreeMap.html" title="AutoC::TreeMap (class)">TreeMap</a></span> tree-based sorted map</p>
|
146
158
|
</li>
|
147
159
|
</ul>
|
148
160
|
</div>
|
@@ -234,22 +246,19 @@ the collection being iterated <strong>must not</strong> be modified in any way o
|
|
234
246
|
|
235
247
|
</div><div id="subclasses">
|
236
248
|
<h2>Direct Known Subclasses</h2>
|
237
|
-
<p class="children"><span class='object_link'><a href="HashMap.html" title="AutoC::HashMap (class)">HashMap</a></span>, <span class='object_link'><a href="HashSet.html" title="AutoC::HashSet (class)">HashSet</a></span>, <span class='object_link'><a href="List.html" title="AutoC::List (class)">List</a></span>, <span class='object_link'><a href="Queue.html" title="AutoC::Queue (class)">Queue</a></span>, <span class='object_link'><a href="Vector.html" title="AutoC::Vector (class)">Vector</a></span></p>
|
249
|
+
<p class="children"><span class='object_link'><a href="HashMap.html" title="AutoC::HashMap (class)">HashMap</a></span>, <span class='object_link'><a href="HashSet.html" title="AutoC::HashSet (class)">HashSet</a></span>, <span class='object_link'><a href="List.html" title="AutoC::List (class)">List</a></span>, <span class='object_link'><a href="Queue.html" title="AutoC::Queue (class)">Queue</a></span>, <span class='object_link'><a href="TreeMap.html" title="AutoC::TreeMap (class)">TreeMap</a></span>, <span class='object_link'><a href="TreeSet.html" title="AutoC::TreeSet (class)">TreeSet</a></span>, <span class='object_link'><a href="Vector.html" title="AutoC::Vector (class)">Vector</a></span></p>
|
238
250
|
</div>
|
239
251
|
|
240
|
-
<h2>Constant Summary</h2>
|
241
|
-
|
242
252
|
|
243
253
|
|
244
254
|
|
245
|
-
|
246
|
-
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
255
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
247
256
|
<ul class="summary">
|
248
257
|
|
249
258
|
<li class="public ">
|
250
259
|
<span class="summary_signature">
|
251
260
|
|
252
|
-
<a href="#element-instance_method" title="#element (instance method)"
|
261
|
+
<a href="#element-instance_method" title="#element (instance method)">#<strong>element</strong> ⇒ Object </a>
|
253
262
|
|
254
263
|
|
255
264
|
|
@@ -278,7 +287,7 @@ the collection being iterated <strong>must not</strong> be modified in any way o
|
|
278
287
|
<li class="public ">
|
279
288
|
<span class="summary_signature">
|
280
289
|
|
281
|
-
<a href="#it_ref-instance_method" title="#it_ref (instance method)"
|
290
|
+
<a href="#it_ref-instance_method" title="#it_ref (instance method)">#<strong>it_ref</strong> ⇒ Object </a>
|
282
291
|
|
283
292
|
|
284
293
|
|
@@ -317,7 +326,7 @@ the collection being iterated <strong>must not</strong> be modified in any way o
|
|
317
326
|
|
318
327
|
<h2>
|
319
328
|
Instance Method Summary
|
320
|
-
<small
|
329
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
321
330
|
</h2>
|
322
331
|
|
323
332
|
<ul class="summary">
|
@@ -325,7 +334,7 @@ the collection being iterated <strong>must not</strong> be modified in any way o
|
|
325
334
|
<li class="public ">
|
326
335
|
<span class="summary_signature">
|
327
336
|
|
328
|
-
<a href="#%3D%3D-instance_method" title="#== (instance method)"
|
337
|
+
<a href="#%3D%3D-instance_method" title="#== (instance method)">#<strong>==</strong>(other) ⇒ Object </a>
|
329
338
|
|
330
339
|
|
331
340
|
|
@@ -349,7 +358,7 @@ the collection being iterated <strong>must not</strong> be modified in any way o
|
|
349
358
|
<li class="public ">
|
350
359
|
<span class="summary_signature">
|
351
360
|
|
352
|
-
<a href="#comparable%3F-instance_method" title="#comparable? (instance method)"
|
361
|
+
<a href="#comparable%3F-instance_method" title="#comparable? (instance method)">#<strong>comparable?</strong> ⇒ Boolean </a>
|
353
362
|
|
354
363
|
|
355
364
|
|
@@ -373,7 +382,7 @@ the collection being iterated <strong>must not</strong> be modified in any way o
|
|
373
382
|
<li class="public ">
|
374
383
|
<span class="summary_signature">
|
375
384
|
|
376
|
-
<a href="#constructible%3F-instance_method" title="#constructible? (instance method)"
|
385
|
+
<a href="#constructible%3F-instance_method" title="#constructible? (instance method)">#<strong>constructible?</strong> ⇒ Boolean </a>
|
377
386
|
|
378
387
|
|
379
388
|
|
@@ -397,7 +406,7 @@ the collection being iterated <strong>must not</strong> be modified in any way o
|
|
397
406
|
<li class="public ">
|
398
407
|
<span class="summary_signature">
|
399
408
|
|
400
|
-
<a href="#copyable%3F-instance_method" title="#copyable? (instance method)"
|
409
|
+
<a href="#copyable%3F-instance_method" title="#copyable? (instance method)">#<strong>copyable?</strong> ⇒ Boolean </a>
|
401
410
|
|
402
411
|
|
403
412
|
|
@@ -421,7 +430,7 @@ the collection being iterated <strong>must not</strong> be modified in any way o
|
|
421
430
|
<li class="public ">
|
422
431
|
<span class="summary_signature">
|
423
432
|
|
424
|
-
<a href="#destructible%3F-instance_method" title="#destructible? (instance method)"
|
433
|
+
<a href="#destructible%3F-instance_method" title="#destructible? (instance method)">#<strong>destructible?</strong> ⇒ Boolean </a>
|
425
434
|
|
426
435
|
|
427
436
|
|
@@ -445,7 +454,7 @@ the collection being iterated <strong>must not</strong> be modified in any way o
|
|
445
454
|
<li class="public ">
|
446
455
|
<span class="summary_signature">
|
447
456
|
|
448
|
-
<a href="#entities-instance_method" title="#entities (instance method)"
|
457
|
+
<a href="#entities-instance_method" title="#entities (instance method)">#<strong>entities</strong> ⇒ Object </a>
|
449
458
|
|
450
459
|
|
451
460
|
|
@@ -467,7 +476,7 @@ the collection being iterated <strong>must not</strong> be modified in any way o
|
|
467
476
|
<li class="public ">
|
468
477
|
<span class="summary_signature">
|
469
478
|
|
470
|
-
<a href="#hash-instance_method" title="#hash (instance method)"
|
479
|
+
<a href="#hash-instance_method" title="#hash (instance method)">#<strong>hash</strong> ⇒ Object </a>
|
471
480
|
|
472
481
|
|
473
482
|
|
@@ -489,7 +498,7 @@ the collection being iterated <strong>must not</strong> be modified in any way o
|
|
489
498
|
<li class="public ">
|
490
499
|
<span class="summary_signature">
|
491
500
|
|
492
|
-
<a href="#hashable%3F-instance_method" title="#hashable? (instance method)"
|
501
|
+
<a href="#hashable%3F-instance_method" title="#hashable? (instance method)">#<strong>hashable?</strong> ⇒ Boolean </a>
|
493
502
|
|
494
503
|
|
495
504
|
|
@@ -513,7 +522,7 @@ the collection being iterated <strong>must not</strong> be modified in any way o
|
|
513
522
|
<li class="public ">
|
514
523
|
<span class="summary_signature">
|
515
524
|
|
516
|
-
<a href="#initializable%3F-instance_method" title="#initializable? (instance method)"
|
525
|
+
<a href="#initializable%3F-instance_method" title="#initializable? (instance method)">#<strong>initializable?</strong> ⇒ Boolean </a>
|
517
526
|
|
518
527
|
|
519
528
|
|
@@ -537,7 +546,7 @@ the collection being iterated <strong>must not</strong> be modified in any way o
|
|
537
546
|
<li class="public ">
|
538
547
|
<span class="summary_signature">
|
539
548
|
|
540
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)"
|
549
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(type_name, element_type, visibility = :public) ⇒ Collection </a>
|
541
550
|
|
542
551
|
|
543
552
|
|
@@ -563,7 +572,7 @@ the collection being iterated <strong>must not</strong> be modified in any way o
|
|
563
572
|
<li class="public ">
|
564
573
|
<span class="summary_signature">
|
565
574
|
|
566
|
-
<a href="#write_intf_decls-instance_method" title="#write_intf_decls (instance method)"
|
575
|
+
<a href="#write_intf_decls-instance_method" title="#write_intf_decls (instance method)">#<strong>write_intf_decls</strong>(stream, declare, define) ⇒ Object </a>
|
567
576
|
|
568
577
|
|
569
578
|
|
@@ -596,7 +605,7 @@ the collection being iterated <strong>must not</strong> be modified in any way o
|
|
596
605
|
|
597
606
|
|
598
607
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Type.html" title="AutoC::Type (class)">Type</a></span></h3>
|
599
|
-
<p class="inherited"><span class='object_link'><a href="Type.html#abort-instance_method" title="AutoC::Type#abort (method)">#abort</a></span>, <span class='object_link'><a href="Type.html#assert-instance_method" title="AutoC::Type#assert (method)">#assert</a></span>, <span class='object_link'><a href="Type.html#calloc-instance_method" title="AutoC::Type#calloc (method)">#calloc</a></span>, <span class='object_link'><a href="Type.html#coerce-class_method" title="AutoC::Type.coerce (method)">coerce</a></span>, <span class='object_link'><a href="Type.html#extern-instance_method" title="AutoC::Type#extern (method)">#extern</a></span>, <span class='object_link'><a href="Type.html#free-instance_method" title="AutoC::Type#free (method)">#free</a></span>, <span class='object_link'><a href="Type.html#inline-instance_method" title="AutoC::Type#inline (method)">#inline</a></span>, <span class='object_link'><a href="Type.html#malloc-instance_method" title="AutoC::Type#malloc (method)">#malloc</a></span>, <span class='object_link'><a href="Type.html#method_missing-instance_method" title="AutoC::Type#method_missing (method)">#method_missing</a></span>, <span class='object_link'><a href="Type.html#orderable%3F-instance_method" title="AutoC::Type#orderable? (method)">#orderable?</a></span>, <span class='object_link'><a href="Type.html#prefix-instance_method" title="AutoC::Type#prefix (method)">#prefix</a></span>, <span class='object_link'><a href="Type.html#private%3F-instance_method" title="AutoC::Type#private? (method)">#private?</a></span>, <span class='object_link'><a href="Type.html#public%3F-instance_method" title="AutoC::Type#public? (method)">#public?</a></span>, <span class='object_link'><a href="Type.html#static-instance_method" title="AutoC::Type#static (method)">#static</a></span>, <span class='object_link'><a href="Type.html#static%3F-instance_method" title="AutoC::Type#static? (method)">#static?</a></span>, <span class='object_link'><a href="Type.html#write_decls-instance_method" title="AutoC::Type#write_decls (method)">#write_decls</a></span>, <span class='object_link'><a href="Type.html#write_defs-instance_method" title="AutoC::Type#write_defs (method)">#write_defs</a></span>, <span class='object_link'><a href="Type.html#write_intf-instance_method" title="AutoC::Type#write_intf (method)">#write_intf</a></span></p>
|
608
|
+
<p class="inherited"><span class='object_link'><a href="Type.html#abort-instance_method" title="AutoC::Type#abort (method)">#abort</a></span>, <span class='object_link'><a href="Type.html#assert-instance_method" title="AutoC::Type#assert (method)">#assert</a></span>, <span class='object_link'><a href="Type.html#calloc-instance_method" title="AutoC::Type#calloc (method)">#calloc</a></span>, <span class='object_link'><a href="Type.html#coerce-class_method" title="AutoC::Type.coerce (method)">coerce</a></span>, <span class='object_link'><a href="Type.html#extern-instance_method" title="AutoC::Type#extern (method)">#extern</a></span>, <span class='object_link'><a href="Type.html#free-instance_method" title="AutoC::Type#free (method)">#free</a></span>, <span class='object_link'><a href="Type.html#inline-instance_method" title="AutoC::Type#inline (method)">#inline</a></span>, <span class='object_link'><a href="Type.html#malloc-instance_method" title="AutoC::Type#malloc (method)">#malloc</a></span>, <span class='object_link'><a href="Type.html#method_missing-instance_method" title="AutoC::Type#method_missing (method)">#method_missing</a></span>, <span class='object_link'><a href="Type.html#orderable%3F-instance_method" title="AutoC::Type#orderable? (method)">#orderable?</a></span>, <span class='object_link'><a href="Type.html#prefix-instance_method" title="AutoC::Type#prefix (method)">#prefix</a></span>, <span class='object_link'><a href="Type.html#private%3F-instance_method" title="AutoC::Type#private? (method)">#private?</a></span>, <span class='object_link'><a href="Type.html#public%3F-instance_method" title="AutoC::Type#public? (method)">#public?</a></span>, <span class='object_link'><a href="Type.html#sortable%3F-instance_method" title="AutoC::Type#sortable? (method)">#sortable?</a></span>, <span class='object_link'><a href="Type.html#static-instance_method" title="AutoC::Type#static (method)">#static</a></span>, <span class='object_link'><a href="Type.html#static%3F-instance_method" title="AutoC::Type#static? (method)">#static?</a></span>, <span class='object_link'><a href="Type.html#write_decls-instance_method" title="AutoC::Type#write_decls (method)">#write_decls</a></span>, <span class='object_link'><a href="Type.html#write_defs-instance_method" title="AutoC::Type#write_defs (method)">#write_defs</a></span>, <span class='object_link'><a href="Type.html#write_intf-instance_method" title="AutoC::Type#write_intf (method)">#write_intf</a></span></p>
|
600
609
|
|
601
610
|
|
602
611
|
|
@@ -614,7 +623,7 @@ the collection being iterated <strong>must not</strong> be modified in any way o
|
|
614
623
|
<div class="method_details first">
|
615
624
|
<h3 class="signature first" id="initialize-instance_method">
|
616
625
|
|
617
|
-
|
626
|
+
#<strong>initialize</strong>(type_name, element_type, visibility = :public) ⇒ <tt><span class='object_link'><a href="" title="AutoC::Collection (class)">Collection</a></span></tt>
|
618
627
|
|
619
628
|
|
620
629
|
|
@@ -637,16 +646,16 @@ the collection being iterated <strong>must not</strong> be modified in any way o
|
|
637
646
|
<pre class="lines">
|
638
647
|
|
639
648
|
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
649
|
+
93
|
650
|
+
94
|
651
|
+
95
|
652
|
+
96
|
653
|
+
97
|
654
|
+
98
|
655
|
+
99</pre>
|
647
656
|
</td>
|
648
657
|
<td>
|
649
|
-
<pre class="code"><span class="info file"># File 'lib/autoc/collection.rb', line
|
658
|
+
<pre class="code"><span class="info file"># File 'lib/autoc/collection.rb', line 93</span>
|
650
659
|
|
651
660
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_type_name'>type_name</span><span class='comma'>,</span> <span class='id identifier rubyid_element_type'>element_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>
|
652
661
|
<span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_type_name'>type_name</span><span class='comma'>,</span> <span class='id identifier rubyid_visibility'>visibility</span><span class='rparen'>)</span>
|
@@ -680,7 +689,7 @@ the collection being iterated <strong>must not</strong> be modified in any way o
|
|
680
689
|
<div class="method_details first">
|
681
690
|
<h3 class="signature first" id="element-instance_method">
|
682
691
|
|
683
|
-
|
692
|
+
#<strong>element</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
684
693
|
|
685
694
|
|
686
695
|
|
@@ -703,12 +712,12 @@ the collection being iterated <strong>must not</strong> be modified in any way o
|
|
703
712
|
<pre class="lines">
|
704
713
|
|
705
714
|
|
706
|
-
|
707
|
-
|
708
|
-
|
715
|
+
83
|
716
|
+
84
|
717
|
+
85</pre>
|
709
718
|
</td>
|
710
719
|
<td>
|
711
|
-
<pre class="code"><span class="info file"># File 'lib/autoc/collection.rb', line
|
720
|
+
<pre class="code"><span class="info file"># File 'lib/autoc/collection.rb', line 83</span>
|
712
721
|
|
713
722
|
<span class='kw'>def</span> <span class='id identifier rubyid_element'>element</span>
|
714
723
|
<span class='ivar'>@element</span>
|
@@ -723,7 +732,7 @@ the collection being iterated <strong>must not</strong> be modified in any way o
|
|
723
732
|
<div class="method_details ">
|
724
733
|
<h3 class="signature " id="it_ref-instance_method">
|
725
734
|
|
726
|
-
|
735
|
+
#<strong>it_ref</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
727
736
|
|
728
737
|
|
729
738
|
|
@@ -746,12 +755,12 @@ the collection being iterated <strong>must not</strong> be modified in any way o
|
|
746
755
|
<pre class="lines">
|
747
756
|
|
748
757
|
|
749
|
-
|
750
|
-
|
751
|
-
|
758
|
+
83
|
759
|
+
84
|
760
|
+
85</pre>
|
752
761
|
</td>
|
753
762
|
<td>
|
754
|
-
<pre class="code"><span class="info file"># File 'lib/autoc/collection.rb', line
|
763
|
+
<pre class="code"><span class="info file"># File 'lib/autoc/collection.rb', line 83</span>
|
755
764
|
|
756
765
|
<span class='kw'>def</span> <span class='id identifier rubyid_it_ref'>it_ref</span>
|
757
766
|
<span class='ivar'>@it_ref</span>
|
@@ -771,7 +780,7 @@ the collection being iterated <strong>must not</strong> be modified in any way o
|
|
771
780
|
<div class="method_details first">
|
772
781
|
<h3 class="signature first" id="==-instance_method">
|
773
782
|
|
774
|
-
|
783
|
+
#<strong>==</strong>(other) ⇒ <tt>Object</tt>
|
775
784
|
|
776
785
|
|
777
786
|
|
@@ -787,10 +796,10 @@ the collection being iterated <strong>must not</strong> be modified in any way o
|
|
787
796
|
<pre class="lines">
|
788
797
|
|
789
798
|
|
790
|
-
|
799
|
+
87</pre>
|
791
800
|
</td>
|
792
801
|
<td>
|
793
|
-
<pre class="code"><span class="info file"># File 'lib/autoc/collection.rb', line
|
802
|
+
<pre class="code"><span class="info file"># File 'lib/autoc/collection.rb', line 87</span>
|
794
803
|
|
795
804
|
<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'>super</span> <span class='op'>&&</span> <span class='id identifier rubyid_element'>element</span> <span class='op'>==</span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_element'>element</span> <span class='kw'>end</span></pre>
|
796
805
|
</td>
|
@@ -801,7 +810,7 @@ the collection being iterated <strong>must not</strong> be modified in any way o
|
|
801
810
|
<div class="method_details ">
|
802
811
|
<h3 class="signature " id="comparable?-instance_method">
|
803
812
|
|
804
|
-
|
813
|
+
#<strong>comparable?</strong> ⇒ <tt>Boolean</tt>
|
805
814
|
|
806
815
|
|
807
816
|
|
@@ -838,10 +847,10 @@ because collection comparison incurs comparison of all contained elements</p>
|
|
838
847
|
<pre class="lines">
|
839
848
|
|
840
849
|
|
841
|
-
|
850
|
+
120</pre>
|
842
851
|
</td>
|
843
852
|
<td>
|
844
|
-
<pre class="code"><span class="info file"># File 'lib/autoc/collection.rb', line
|
853
|
+
<pre class="code"><span class="info file"># File 'lib/autoc/collection.rb', line 120</span>
|
845
854
|
|
846
855
|
<span class='kw'>def</span> <span class='id identifier rubyid_comparable?'>comparable?</span><span class='semicolon'>;</span> <span class='kw'>true</span> <span class='op'>&&</span> <span class='id identifier rubyid_element'>element</span><span class='period'>.</span><span class='id identifier rubyid_comparable?'>comparable?</span> <span class='kw'>end</span></pre>
|
847
856
|
</td>
|
@@ -852,7 +861,7 @@ because collection comparison incurs comparison of all contained elements</p>
|
|
852
861
|
<div class="method_details ">
|
853
862
|
<h3 class="signature " id="constructible?-instance_method">
|
854
863
|
|
855
|
-
|
864
|
+
#<strong>constructible?</strong> ⇒ <tt>Boolean</tt>
|
856
865
|
|
857
866
|
|
858
867
|
|
@@ -888,10 +897,10 @@ because collection comparison incurs comparison of all contained elements</p>
|
|
888
897
|
<pre class="lines">
|
889
898
|
|
890
899
|
|
891
|
-
|
900
|
+
105</pre>
|
892
901
|
</td>
|
893
902
|
<td>
|
894
|
-
<pre class="code"><span class="info file"># File 'lib/autoc/collection.rb', line
|
903
|
+
<pre class="code"><span class="info file"># File 'lib/autoc/collection.rb', line 105</span>
|
895
904
|
|
896
905
|
<span class='kw'>def</span> <span class='id identifier rubyid_constructible?'>constructible?</span><span class='semicolon'>;</span> <span class='kw'>true</span> <span class='kw'>end</span></pre>
|
897
906
|
</td>
|
@@ -902,7 +911,7 @@ because collection comparison incurs comparison of all contained elements</p>
|
|
902
911
|
<div class="method_details ">
|
903
912
|
<h3 class="signature " id="copyable?-instance_method">
|
904
913
|
|
905
|
-
|
914
|
+
#<strong>copyable?</strong> ⇒ <tt>Boolean</tt>
|
906
915
|
|
907
916
|
|
908
917
|
|
@@ -939,10 +948,10 @@ because collection copying incurs copying of all contained elements</p>
|
|
939
948
|
<pre class="lines">
|
940
949
|
|
941
950
|
|
942
|
-
|
951
|
+
116</pre>
|
943
952
|
</td>
|
944
953
|
<td>
|
945
|
-
<pre class="code"><span class="info file"># File 'lib/autoc/collection.rb', line
|
954
|
+
<pre class="code"><span class="info file"># File 'lib/autoc/collection.rb', line 116</span>
|
946
955
|
|
947
956
|
<span class='kw'>def</span> <span class='id identifier rubyid_copyable?'>copyable?</span><span class='semicolon'>;</span> <span class='kw'>true</span> <span class='op'>&&</span> <span class='id identifier rubyid_element'>element</span><span class='period'>.</span><span class='id identifier rubyid_copyable?'>copyable?</span> <span class='kw'>end</span></pre>
|
948
957
|
</td>
|
@@ -953,7 +962,7 @@ because collection copying incurs copying of all contained elements</p>
|
|
953
962
|
<div class="method_details ">
|
954
963
|
<h3 class="signature " id="destructible?-instance_method">
|
955
964
|
|
956
|
-
|
965
|
+
#<strong>destructible?</strong> ⇒ <tt>Boolean</tt>
|
957
966
|
|
958
967
|
|
959
968
|
|
@@ -990,10 +999,10 @@ because collection destruction incurs destruction of all contained elements</p>
|
|
990
999
|
<pre class="lines">
|
991
1000
|
|
992
1001
|
|
993
|
-
|
1002
|
+
112</pre>
|
994
1003
|
</td>
|
995
1004
|
<td>
|
996
|
-
<pre class="code"><span class="info file"># File 'lib/autoc/collection.rb', line
|
1005
|
+
<pre class="code"><span class="info file"># File 'lib/autoc/collection.rb', line 112</span>
|
997
1006
|
|
998
1007
|
<span class='kw'>def</span> <span class='id identifier rubyid_destructible?'>destructible?</span><span class='semicolon'>;</span> <span class='kw'>true</span> <span class='op'>&&</span> <span class='id identifier rubyid_element'>element</span><span class='period'>.</span><span class='id identifier rubyid_destructible?'>destructible?</span> <span class='kw'>end</span></pre>
|
999
1008
|
</td>
|
@@ -1004,7 +1013,7 @@ because collection destruction incurs destruction of all contained elements</p>
|
|
1004
1013
|
<div class="method_details ">
|
1005
1014
|
<h3 class="signature " id="entities-instance_method">
|
1006
1015
|
|
1007
|
-
|
1016
|
+
#<strong>entities</strong> ⇒ <tt>Object</tt>
|
1008
1017
|
|
1009
1018
|
|
1010
1019
|
|
@@ -1016,10 +1025,10 @@ because collection destruction incurs destruction of all contained elements</p>
|
|
1016
1025
|
<pre class="lines">
|
1017
1026
|
|
1018
1027
|
|
1019
|
-
|
1028
|
+
91</pre>
|
1020
1029
|
</td>
|
1021
1030
|
<td>
|
1022
|
-
<pre class="code"><span class="info file"># File 'lib/autoc/collection.rb', line
|
1031
|
+
<pre class="code"><span class="info file"># File 'lib/autoc/collection.rb', line 91</span>
|
1023
1032
|
|
1024
1033
|
<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'><<</span> <span class='id identifier rubyid_element'>element</span> <span class='kw'>end</span></pre>
|
1025
1034
|
</td>
|
@@ -1030,7 +1039,7 @@ because collection destruction incurs destruction of all contained elements</p>
|
|
1030
1039
|
<div class="method_details ">
|
1031
1040
|
<h3 class="signature " id="hash-instance_method">
|
1032
1041
|
|
1033
|
-
|
1042
|
+
#<strong>hash</strong> ⇒ <tt>Object</tt>
|
1034
1043
|
|
1035
1044
|
|
1036
1045
|
|
@@ -1042,10 +1051,10 @@ because collection destruction incurs destruction of all contained elements</p>
|
|
1042
1051
|
<pre class="lines">
|
1043
1052
|
|
1044
1053
|
|
1045
|
-
|
1054
|
+
85</pre>
|
1046
1055
|
</td>
|
1047
1056
|
<td>
|
1048
|
-
<pre class="code"><span class="info file"># File 'lib/autoc/collection.rb', line
|
1057
|
+
<pre class="code"><span class="info file"># File 'lib/autoc/collection.rb', line 85</span>
|
1049
1058
|
|
1050
1059
|
<span class='kw'>def</span> <span class='id identifier rubyid_hash'>hash</span><span class='semicolon'>;</span> <span class='kw'>super</span> <span class='op'>^</span> <span class='id identifier rubyid_element'>element</span><span class='period'>.</span><span class='id identifier rubyid_hash'>hash</span> <span class='kw'>end</span></pre>
|
1051
1060
|
</td>
|
@@ -1056,7 +1065,7 @@ because collection destruction incurs destruction of all contained elements</p>
|
|
1056
1065
|
<div class="method_details ">
|
1057
1066
|
<h3 class="signature " id="hashable?-instance_method">
|
1058
1067
|
|
1059
|
-
|
1068
|
+
#<strong>hashable?</strong> ⇒ <tt>Boolean</tt>
|
1060
1069
|
|
1061
1070
|
|
1062
1071
|
|
@@ -1093,13 +1102,13 @@ because collection comparison incurs hash calculation for all contained elements
|
|
1093
1102
|
<pre class="lines">
|
1094
1103
|
|
1095
1104
|
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1105
|
+
126
|
1106
|
+
127
|
1107
|
+
128
|
1108
|
+
129</pre>
|
1100
1109
|
</td>
|
1101
1110
|
<td>
|
1102
|
-
<pre class="code"><span class="info file"># File 'lib/autoc/collection.rb', line
|
1111
|
+
<pre class="code"><span class="info file"># File 'lib/autoc/collection.rb', line 126</span>
|
1103
1112
|
|
1104
1113
|
<span class='kw'>def</span> <span class='id identifier rubyid_hashable?'>hashable?</span>
|
1105
1114
|
<span class='comment'># Since using collection as an element of a hash-based container also requires it to be comparable as well
|
@@ -1113,7 +1122,7 @@ because collection comparison incurs hash calculation for all contained elements
|
|
1113
1122
|
<div class="method_details ">
|
1114
1123
|
<h3 class="signature " id="initializable?-instance_method">
|
1115
1124
|
|
1116
|
-
|
1125
|
+
#<strong>initializable?</strong> ⇒ <tt>Boolean</tt>
|
1117
1126
|
|
1118
1127
|
|
1119
1128
|
|
@@ -1149,10 +1158,10 @@ because collection comparison incurs hash calculation for all contained elements
|
|
1149
1158
|
<pre class="lines">
|
1150
1159
|
|
1151
1160
|
|
1152
|
-
|
1161
|
+
108</pre>
|
1153
1162
|
</td>
|
1154
1163
|
<td>
|
1155
|
-
<pre class="code"><span class="info file"># File 'lib/autoc/collection.rb', line
|
1164
|
+
<pre class="code"><span class="info file"># File 'lib/autoc/collection.rb', line 108</span>
|
1156
1165
|
|
1157
1166
|
<span class='kw'>def</span> <span class='id identifier rubyid_initializable?'>initializable?</span><span class='semicolon'>;</span> <span class='kw'>true</span> <span class='kw'>end</span></pre>
|
1158
1167
|
</td>
|
@@ -1163,7 +1172,7 @@ because collection comparison incurs hash calculation for all contained elements
|
|
1163
1172
|
<div class="method_details ">
|
1164
1173
|
<h3 class="signature " id="write_intf_decls-instance_method">
|
1165
1174
|
|
1166
|
-
|
1175
|
+
#<strong>write_intf_decls</strong>(stream, declare, define) ⇒ <tt>Object</tt>
|
1167
1176
|
|
1168
1177
|
|
1169
1178
|
|
@@ -1175,12 +1184,12 @@ because collection comparison incurs hash calculation for all contained elements
|
|
1175
1184
|
<pre class="lines">
|
1176
1185
|
|
1177
1186
|
|
1178
|
-
|
1179
|
-
|
1180
|
-
|
1187
|
+
131
|
1188
|
+
132
|
1189
|
+
133</pre>
|
1181
1190
|
</td>
|
1182
1191
|
<td>
|
1183
|
-
<pre class="code"><span class="info file"># File 'lib/autoc/collection.rb', line
|
1192
|
+
<pre class="code"><span class="info file"># File 'lib/autoc/collection.rb', line 131</span>
|
1184
1193
|
|
1185
1194
|
<span class='kw'>def</span> <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_declare'>declare</span><span class='comma'>,</span> <span class='id identifier rubyid_define'>define</span><span class='rparen'>)</span>
|
1186
1195
|
<span class='id identifier rubyid_write_redirectors'>write_redirectors</span><span class='lparen'>(</span><span class='id identifier rubyid_stream'>stream</span><span class='comma'>,</span> <span class='id identifier rubyid_declare'>declare</span><span class='comma'>,</span> <span class='id identifier rubyid_define'>define</span><span class='rparen'>)</span>
|
@@ -1194,11 +1203,12 @@ because collection comparison incurs hash calculation for all contained elements
|
|
1194
1203
|
|
1195
1204
|
</div>
|
1196
1205
|
|
1197
|
-
|
1198
|
-
Generated on
|
1206
|
+
<div id="footer">
|
1207
|
+
Generated on Wed Oct 12 12:27:11 2016 by
|
1199
1208
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1200
|
-
0.
|
1209
|
+
0.9.5 (ruby-2.3.1).
|
1201
1210
|
</div>
|
1202
1211
|
|
1212
|
+
</div>
|
1203
1213
|
</body>
|
1204
1214
|
</html>
|