File: DescriptorSet.html

package info (click to toggle)
tom 1.1.1-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 6,340 kB
  • ctags: 2,244
  • sloc: objc: 27,863; ansic: 9,804; sh: 7,411; yacc: 3,377; lex: 966; asm: 208; makefile: 62; cpp: 10
file content (72 lines) | stat: -rw-r--r-- 2,811 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<html><head><title>File too/DescriptorSet</title></head>
<body BGCOLOR="#ffffff" TEXT="#000000" LINK="#000000" VLINK="#000000">
<h1>File too/DescriptorSet</h1>
<hr><h2>class <a href="index.html">too</a>.<a name="DescriptorSet" href="#i_DescriptorSet">DescriptorSet</a></h2>
<h3>Inherits</h3>
<dl>
<dt>State supers
<dd><a href="../tom/index.html">tom</a>.<a href="../tom/State.html#State">State</a>, <a href="../tom/index.html">tom</a>.<a href="../tom/C.html#C">C</a>
</dl>
<h2>instance <a href="index.html">too</a>.<a name="i_DescriptorSet" href="#DescriptorSet">DescriptorSet</a></h2>
<h3>variables</h3>
<dl>
<dt><b><code>
pointer set;</code></b>
<dd>The bitset of descriptors usable to select(2).

<dt><b><code>
int cap;</code></b>
<dd>One beyond the highest descriptor that can be put in the set.

<dt><b><code>
int beyond_last;</code></b>
<dd>One beyond the highest descriptor present in the set.

<dt><b><code>
int num;</code></b>
<dd>The number of descriptors present in the set.

<dt><b><code>
<a href="../tom/index.html">tom</a>.<a href="../tom/MutableObjectArray.html#MutableObjectArray">MutableObjectArray</a> descriptors;</code></b>
<dd>The array of <b><code><a href="../tom/index.html">tom</a>.<a href="../tom/Descriptor.html#Descriptor">Descriptor</a></b></code> objects.

<dt><b><code>
<a href="../tom/index.html">tom</a>.<a href="../tom/MutableObjectArray.html#MutableObjectArray">MutableObjectArray</a> delegates;</code></b>
<dd>The array of <b><code><a href="DescriptorDelegate.html#DescriptorDelegate">DescriptorDelegate</a></b></code> objects.

</dl>
<h3>methods</h3>
<dl><dt><b><pre>void
  dealloc;
</pre></b><dd>
Deallocate the memory occupied by the <code>set</code>.
<p><dt><b><pre>id (self)
  init;
</pre></b><dd>
Designated initializer.
<p><dt><b><pre>void
  remove <a href="../tom/index.html">tom</a>.<a href="../tom/Descriptor.html#Descriptor">Descriptor</a> descriptor;
</pre></b><dd>
Undocumented.
<p><dt><b><pre>void
  set <a href="DescriptorDelegate.html#DescriptorDelegate">DescriptorDelegate</a> delegate
   at <a href="../tom/index.html">tom</a>.<a href="../tom/Descriptor.html#Descriptor">Descriptor</a> descriptor;
</pre></b><dd>
Undocumented.
<p><dt><b><pre>(pointer, int)
  vitals;
</pre></b><dd>
Return a pointer to the low-level descriptor <code>set</code>, and the one
    beyond the highest value in that set.
<p></dl><h4>Event dispatching</h4>
<dl><dt><b><pre>void
  readEvent int d;
</pre></b><dd>
Dispatch a read event on the file descriptor <code>d</code>, to the delegate at
    index <code>d</code> in the delegates.
<p><dt><b><pre>void
  writeEvent int d;
</pre></b><dd>
Dispatch a write event on the file descriptor <code>d</code>, to the delegate at
    index <code>d</code> in the delegates.
<p></dl><hr><address>Generated by tm 1.01.</address></body></html>