File: Attribute.html

package info (click to toggle)
ivtools-doc 0.7.10-1
  • links: PTS
  • area: main
  • in suites: potato, woody
  • size: 13,436 kB
  • ctags: 15,900
  • sloc: ansic: 687; sh: 139; makefile: 41; cpp: 24
file content (267 lines) | stat: -rw-r--r-- 4,924 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267

<html><head><TITLE>Description of Attribute</TITLE><BASE TARGET="_parent" ></head>
<body BGCOLOR=#FFFFFF>
<FONT FACE=Helvetica>
<DL><DT>
<FONT SIZE=4> 
  class  
</FONT>
<FONT SIZE=5><B>Attribute</B></FONT>


<A HREF="index.html">(Return to index)</A>

<br><br>

<DD><FONT FACE=Times SIZE=4>
generic symbol/value pair.<br><br>

<B>Type:</B><br>
<UL>
Instantiable
</UL>
<br>



<A HREF=derivedclasses.html#Attribute><B>Derived Classes</B></A>
<p>


<B>Include file:</B><br>
<UL><FONT FACE=Helvetica SIZE=3>
Attribute/attribute.h
</FONT></UL>
<br>


 <B>Description:</B><P>  <A HREF="Attribute.html" >Attribute</A> consists of a symbol, represented by its index into a symbol table,
 paired with a value, represented by an <A HREF="AttributeValue.html" >AttributeValue</A>.  <A HREF="Memory.html" >Memory</A> for the
 <A HREF="AttributeValue.html" >AttributeValue</A> is owned by the <A HREF="Attribute.html" >Attribute</A>.
  <br><br>
</DL></FONT>



<FONT FACE=Times SIZE=4><B>Public:</B></FONT><br><br><UL>

    <DT><FONT FACE=Helvetica>
    <A NAME="Attribute(constAttribute&#38;)">
    <B>Attribute</B> (const <A HREF="Attribute.html" >Attribute</A>&#38;) </FONT> 
    
    
    <DD><FONT FACE=Times SIZE=3><UL>
      
        copy constructor.
 <br> 
      <br>
      
      
      
      
	  
      
      </UL></FONT><br>

    <DT><FONT FACE=Helvetica>
    <A NAME="Attribute(constchar*name=0&#38;&#38;COMMAttributeValue*value=0)">
    <B>Attribute</B> (const char* name =0, <A HREF="AttributeValue.html" >AttributeValue</A>* value =0) </FONT> 
    
    
    <DD><FONT FACE=Times SIZE=3><UL>
      
        construct an attribute by generating a symbol id for the 'name'
 character string, and accepting a pointer to an externally allocated 'value'.
 <br> 
      <br>
      
      
      
      
	  
      
      </UL></FONT><br>

    <DT><FONT FACE=Helvetica>
    <A NAME="Attribute(intsymid&#38;&#38;COMMAttributeValue*value=0)">
    <B>Attribute</B> (int symid, <A HREF="AttributeValue.html" >AttributeValue</A>* value =0) </FONT> 
    
    
    <DD><FONT FACE=Times SIZE=3><UL>
      
        construct an attribute with a symbol id instead of a character string, 
 and accepting a pointer to an externally allocated 'value'.
 <br> 
      <br>
      
      
      
      
	  
      
      </UL></FONT><br>

    <DT><FONT FACE=Helvetica>char* 
    <A NAME="Name()">
    <B>Name</B> () </FONT> 
    
    
    <DD><FONT FACE=Times SIZE=3><UL>
      
        look up and return symbol string.
 <br> 
      <br>
      
      
      
      
	  
      
      </UL></FONT><br>

    <DT><FONT FACE=Helvetica>int 
    <A NAME="SymbolId()">
    <B>SymbolId</B> () </FONT> 
    
    
    <DD><FONT FACE=Times SIZE=3><UL>
      
        return the id of the symbol in the symbol table.
 <br> 
      <br>
      
      
      
      
	  
      
      </UL></FONT><br>

    <DT><FONT FACE=Helvetica><A HREF="AttributeValue.html" >AttributeValue</A>* 
    <A NAME="Value()">
    <B>Value</B> () </FONT> 
    
    
    <DD><FONT FACE=Times SIZE=3><UL>
      
        return a pointer to the internal <A HREF="AttributeValue.html" >AttributeValue</A>.
 <br> 
      <br>
      
      
      
      
	  
      
      </UL></FONT><br>

    <DT><FONT FACE=Helvetica>void 
    <A NAME="Value(AttributeValue*)">
    <B>Value</B> (<A HREF="AttributeValue.html" >AttributeValue</A>*) </FONT> 
    
    
    <DD><FONT FACE=Times SIZE=3><UL>
      
        accept new pointer to an externally allocated <A HREF="AttributeValue.html" >AttributeValue</A>,
 deleting the old pointer.
 <br> 
      <br>
      
      
      
      
	  
      
      </UL></FONT><br>

    <DT><FONT FACE=Helvetica>
    <A NAME="~Attribute()">
    <B>~Attribute</B> () </FONT> 
    
    
    <DD><FONT FACE=Times SIZE=3><UL>
      
        deallocate memory for internal <A HREF="AttributeValue.html" >AttributeValue</A>.
 <br> 
      <br>
      
      
      
      
	  
      
      </UL></FONT><br>

</UL><br><br>




<FONT FACE=Times SIZE=4><B>Protected:</B></FONT><br><br><UL>

    <DT><FONT FACE=Helvetica>int 
    <A NAME="symbolid">
    <B>symbolid</B>
    
    <DD><FONT FACE=Times SIZE=3><UL>
      
      
      <br>
      
      
      
      
      
      
      </UL></FONT><br>

    <DT><FONT FACE=Helvetica><A HREF="AttributeValue.html" >AttributeValue</A>* 
    <A NAME="valueptr">
    <B>valueptr</B>
    
    <DD><FONT FACE=Times SIZE=3><UL>
      
      
      <br>
      
      
      
      
      
      
      </UL></FONT><br>

</UL><br><br>



<FONT FACE=Times SIZE=4><B>Friend methods:</B></FONT><br><br><UL>

    <DT><FONT FACE=Helvetica>
    friend 
    <A NAME="AttributeList">
    <B>AttributeList</B>
    
    <DD><FONT FACE=Times SIZE=3><UL>
      
      
      <br>
      
      
      
      
      
      
      </UL></FONT><br>

</UL><br><br>



<A HREF="../index.html">(more documentation)</A>

<br><br>

</FONT>
</body>
</html>