File: dynamicarray.xml

package info (click to toggle)
lazarus 4.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 275,760 kB
  • sloc: pascal: 2,341,904; xml: 509,420; makefile: 348,726; cpp: 93,608; sh: 3,387; java: 609; perl: 297; sql: 222; ansic: 137
file content (346 lines) | stat: -rw-r--r-- 10,023 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
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
<?xml version="1.0" encoding="UTF-8"?>
<!--

Documentation for LCL (Lazarus Component Library) and LazUtils (Lazarus 
Utilities) are published under the Creative Commons Attribution-ShareAlike 4.0 
International public license.

https://creativecommons.org/licenses/by-sa/4.0/legalcode.txt
https://gitlab.com/freepascal.org/lazarus/lazarus/-/blob/main/docs/cc-by-sa-4-0.txt

Copyright (c) 1997-2025, by the Lazarus Development Team.

-->
<fpdoc-descriptions>
<package name="lazutils">
<!--
====================================================================
DynamicArray
====================================================================
-->
<module name="DynamicArray">
<short>Implements a resizable 2-D array of Pointers.</short>
<descr>
<p>
<file>dynamicarray.pas</file> implements a resizable 2-D array of Pointers. It 
is used to implement the Cells, Cols, and Rows properties in 
<var>TCustomGrid</var>, <var>TDrawGrid</var> and <var>TStringGrid</var>.
</p>
<p>
<file>dynamicarray.pas</file> is part of the <file>LazUtils</file> package.
</p>
<p>
Author: Jesus Reyes
</p>
</descr>

<!-- unresolved type reference Visibility: default -->
<element name="Classes"/>
<element name="SysUtils"/>

<element name="EArray">
<short>
Not used in the current LazUtils version.
</short>
<descr>
EArray is an Exception type. Not used in the current LazUtils implementation.
</descr>
<seealso/>
</element>

<element name="TOnNotifyItem">
<short>
Specifies and event handler signalled when an item is added to or removed 
from TPointerPointerArray.
</short>
<descr>
<p>
<var>TOnNotifyItem</var> is the type used for the <var>OnDestroyItem</var> 
and <var>OnNewItem</var> properties in <var>TPointerPointerArray</var>.
</p>
</descr>
<seealso>
<link id="TPointerPointerArray.OnDestroyItem"/>
<link id="TPointerPointerArray.OnNewItem"/>
</seealso>
</element>
<element name="TOnNotifyItem.Sender">
<short>Instance of the TArray that causes the event.</short>
</element>
<element name="TOnNotifyItem.Col">
<short>The Col number for the event.</short>
</element>
<element name="TOnNotifyItem.Row">
<short>The Row number for the event.</short>
</element>
<element name="TOnNotifyItem.Item">
<short>Pointer to the Item date for the event.</short>
</element>

<element name="TOnExchangeItem">
<short>
Not used in the current LazUtils version.
</short>
<descr/>
<seealso/>
</element>
<element name="TOnExchangeItem.Sender">
<short>The instance of the TArray that causes the Exchange event.</short>
</element>
<element name="TOnExchangeItem.Index">
<short>
Ordinal position for an array element exchanged in the handler.
</short>
</element>
<element name="TOnExchangeItem.WithIndex">
<short>
Ordinal position for an array element exchanged in the handler.
</short>
</element>

<element name="TPointerPointerArray">
<short>
Implements a resizable two-dimensional array using Pointers to column and row 
values.
</short>
<descr/>
<seealso/>
<example file="examples/dynamicarray/tarrayexample.pas"/>
</element>

<!-- private -->
<element name="TPointerPointerArray.FCols"/>
<element name="TPointerPointerArray.FOnDestroyItem"/>
<element name="TPointerPointerArray.FOnNewItem"/>
<element name="TPointerPointerArray.GetArr"/>
<element name="TPointerPointerArray.GetArr.Result"/>
<element name="TPointerPointerArray.GetArr.Col"/>
<element name="TPointerPointerArray.GetArr.Row"/>
<element name="TPointerPointerArray.SetArr"/>
<element name="TPointerPointerArray.SetArr.Col"/>
<element name="TPointerPointerArray.SetArr.Row"/>
<element name="TPointerPointerArray.SetArr.AValue"/>
<element name="TPointerPointerArray.ClearCol"/>
<element name="TPointerPointerArray.ClearCol.L"/>
<element name="TPointerPointerArray.ClearCol.Col"/>
<element name="TPointerPointerArray.Aumentar_Rows"/>
<element name="TPointerPointerArray.Aumentar_Rows.Col"/>
<element name="TPointerPointerArray.Aumentar_Rows.Rows"/>
<element name="TPointerPointerArray.Aumentar_Rows.L"/>
<element name="TPointerPointerArray.DestroyItem"/>
<element name="TPointerPointerArray.DestroyItem.Col"/>
<element name="TPointerPointerArray.DestroyItem.Row"/>
<element name="TPointerPointerArray.DestroyItem.P"/>

<!-- public -->
<element name="TPointerPointerArray.Create">
<short>
Constructor for the class instance.
</short>
<descr>
<p>
<var>Create</var> allocates resources for the internal TFPList used to store 
the values in the indexed Arr property.
</p>
</descr>
<seealso>
<link id="TPointerPointerArray.Arr"/>
<link id="#rtl.classes.TFPList">TFPList</link>
</seealso>
</element>

<element name="TPointerPointerArray.Destroy">
<short>
Destructor for the class instance.
</short>
<descr>
<p>
<var>Destroy</var> calls the Clear method to ensure that nested TFPList 
instances and Pointers in the Arr property are freed. The TFPList resource 
allocated for the Arr property is also freed.
</p>
</descr>
<seealso>
<link id="TPointerPointerArray.Arr"/>
<link id="TPointerPointerArray.Clear"/>
<link id="#rtl.classes.TFPList">TFPList</link>
</seealso>
</element>

<element name="TPointerPointerArray.SetLength">
<short>
Sets the dimensions for the array to the specified number of columns and rows.
</short>
<descr>
<p>
<var>SetLength</var> ensures that columns and/or rows are adjusted when the 
the new size values are smaller than the existing dimensions for the array. 
The OnDestroyItem event handler is signalled (when assigned) to perform 
actions needed for Pointers removed from the array elements.
</p>
<p>
Cols contains the new number of columns for the array.
</p>
<p>
Rows contains the new number of rows for the array.
</p>
</descr>
<seealso>
<link id="TPointerPointerArray.OnDestroyItem"/>
<link id="TPointerPointerArray.Arr"/>
<link id="#rtl.classes.TFPList">TFPList</link>
</seealso>
<example file="examples/dynamicarray/tarrayexample.pas"/>
</element>
<element name="TPointerPointerArray.SetLength.Cols">
<short>
Number of columns for the two-dimensional array.
</short>
</element>
<element name="TPointerPointerArray.SetLength.Rows">
<short>
Number of rows for the two-dimensional array.
</short>
</element>

<element name="TPointerPointerArray.DeleteColRow">
<short>
Deletes a column or row at the specified ordinal position in the array.
</short>
<descr>
<p>
<var>DeleteColRow</var> is a method used to delete the specified column or 
row from the two-dimensional array. DeleteColRow signals the OnDestroyItem 
event handler (when assigned) to perform actions needed for the Pointers in 
the array elements.
</p>
</descr>
<seealso/>
<example file="examples/dynamicarray/tarrayexample.pas"/>
</element>
<element name="TPointerPointerArray.DeleteColRow.IsColumn">
<short>
<b>True</b> if a column is removed. <b>False</b> if a row is removed.
</short>
</element>
<element name="TPointerPointerArray.DeleteColRow.Index">
<short>
Ordinal position for the column or row deleted in the method.
</short>
</element>

<element name="TPointerPointerArray.MoveColRow">
<short>
Moves a column or row at the specified ordinal position to a new location in 
the array.
</short>
<descr/>
<seealso>
<link id="#rtl.classes.TFPList.Move">TFPList.Move</link>
</seealso>
<example file="examples/dynamicarray/tarrayexample.pas"/>
</element>
<element name="TPointerPointerArray.MoveColRow.IsColumn">
<short>
<b>True</b> if a column is moved in the method. <b>False</b> if a row is 
moved.
</short>
</element>
<element name="TPointerPointerArray.MoveColRow.FromIndex">
<short>
Ordinal position for the column or row moved in the method.
</short>
</element>
<element name="TPointerPointerArray.MoveColRow.ToIndex">
<short>
New ordinal position where the column or row is stored.
</short>
</element>

<element name="TPointerPointerArray.ExchangeColRow">
<short>
Exchanges values for array elements in the specified columns or rows in the 
array.
</short>
<descr/>
<seealso>
<link id="#rtl.classes.TFPList.Move">TFPList.Move</link>
</seealso>
<example file="examples/dynamicarray/tarrayexample.pas"/>
</element>
<element name="TPointerPointerArray.ExchangeColRow.IsColumn">
<short>
<b>True</b> if a values in columns are exchanged in the method. <b>False</b> 
if values in rows are exchanged.
</short>
</element>
<element name="TPointerPointerArray.ExchangeColRow.Index">
<short>
Ordinal position for a column or row affected in the method.
</short>
</element>
<element name="TPointerPointerArray.ExchangeColRow.WithIndex">
<short>
Ordinal position for a column or row affected in the method.
</short>
</element>

<element name="TPointerPointerArray.Clear">
<short>
Removes pointers and frees resources for all columns and rows in the 
two-dimensional array.
</short>
<descr/>
<seealso>
<link id="TPointerPointerArray.OnDestroyItem"/>
</seealso>
<example file="examples/dynamicarray/tarrayexample.pas"/>
</element>

<element name="TPointerPointerArray.Arr">
<short>
Provides indexed access Pointer values in the elements for the array.
</short>
<descr>
<p>
<var>Arr</var> is an indexed Pointer property which provides access to array 
elements by their ordinal column and row positions. Array is the default 
property for the class instance.
</p>
</descr>
<seealso>
<link id="#rtl.classes.TFPList">TFPList</link>
</seealso>
<example file="examples/dynamicarray/tarrayexample.pas"/>
</element>

<element name="TPointerPointerArray.OnDestroyItem">
<short>
Performs actions needed when the Pointer in an array element is removed from 
the array.
</short>
<descr/>
<seealso>
<link id="TPointerPointerArray.SetLength"/>
<link id="TPointerPointerArray.DeleteColRow"/>
<link id="TPointerPointerArray.Clear"/>
<link id="TOnNotifyItem"/>
</seealso>
<example file="examples/dynamicarray/tarrayexample.pas"/>
</element>

<element name="TPointerPointerArray.OnNewItem">
<short>
Performs actions needed when a new Pointer is needed for an array element 
added to a column or row in the array.
</short>
<descr/>
<seealso>
<link id="TPointerPointerArray.SetLength"/>
</seealso>
<example file="examples/dynamicarray/tarrayexample.pas"/>
</element>
</module>
<!-- DynamicArray -->
</package>
</fpdoc-descriptions>