Reference Codebot.Collections.pas
Part of the Codebot package
The Codebot.Collections unit defines the generic collection classes used throughout the library.
- TList
is a list that grows as items are added. - TIndexedList
extends TList so that items can be found and removed by value. - TObjectList
holds objects and can optionally manage their lifetime. - TDictionary<K, V> holds key and value pairs indexed by their key.
The unit also defines IList
Items 108 items
| Name | Kind | Line |
|---|---|---|
| IList | interface | 254 |
| Add | function | 278 |
| Clear | procedure | 264 |
| Data | function | 284 |
| Delete | procedure | 266 |
| Exchange | procedure | 270 |
| Find | function | 274 |
| First | function | 272 |
| IndexOf | function | 276 |
| Last | function | 280 |
| Remove | function | 282 |
| Sort | procedure | 268 |
| Capacity | property | 286 |
| Count | property | 288 |
| Items | property | 290 |
| TAggregateStream | class | 367 |
| AddFile | procedure | 386 |
| AddStream | procedure | 388 |
| AddText | procedure | 384 |
| Clear | procedure | 382 |
| Create | constructor | 378 |
| Destroy | destructor | 380 |
| GetSize | function | 375 |
| Read | function | 390 |
| TDictionary | class | 176 |
| TKeyValue | class | 183 |
| Create | constructor | 189 |
| Key | property | 191 |
| Value | property | 193 |
| AddKeyValue | procedure | 211 |
| ChangeKeyValue | procedure | 217 |
| Clear | procedure | 231 |
| Create | constructor | 225 |
| CreateKeyValue | function | 213 |
| DefaultValue | function | 219 |
| Destroy | destructor | 227 |
| DestroyKeyValue | procedure | 215 |
| GetEnumerator | function | 198 |
| KeyExists | function | 233 |
| Remove | procedure | 229 |
| AutoKey | property | 222 |
| Comparer | property | 235 |
| Count | property | 243 |
| Items | property | 237 |
| Keys | property | 239 |
| Values | property | 241 |
| TFindProc | procedural | 248 |
| TIndexedList | class | 132 |
| AddItem | procedure | 137 |
| Contains | function | 142 |
| IndexOf | function | 144 |
| Remove | function | 146 |
| Duplicates | property | 139 |
| TInterfaces | class | 354 |
| AddItem | procedure | 357 |
| AsPointer | function | 356 |
| IndexOf | function | 361 |
| RemoveItem | procedure | 358 |
| TList | class | 53 |
| ItemType | alias | 56 |
| PItemType | pointer | 58 |
| TListCompare | alias | 60 |
| FItems | field | 77 |
| Add | procedure | 92 |
| AddItem | procedure | 79 |
| Clear | procedure | 100 |
| Compact | procedure | 102 |
| Delete | procedure | 94 |
| DeleteItem | procedure | 81 |
| Destroy | destructor | 90 |
| Exchange | procedure | 98 |
| Find | function | 85 |
| GetEnumerator | function | 62 |
| Grow | procedure | 87 |
| Move | procedure | 96 |
| RequiresDelete | function | 83 |
| Sort | procedure | 104 |
| Capacity | property | 114 |
| Count | property | 112 |
| Direct | property | 120 |
| First | property | 108 |
| Head | property | 106 |
| Item | property | 118 |
| Last | property | 110 |
| TListDuplicates | enum | 126 |
| duplicateAllow | enum value | 126 |
| duplicateIgnore | enum value | 126 |
| duplicateError | enum value | 126 |
| TObjectList | class | 153 |
| AddItem | procedure | 158 |
| Create | constructor | 165 |
| DeleteItem | procedure | 160 |
| IndexOf | function | 167 |
| RequiresDelete | function | 162 |
| Duplicates | property | 169 |
| TObjects | class | 337 |
| AddItem | procedure | 342 |
| AsPointer | function | 341 |
| Create | constructor | 346 |
| IndexOf | function | 348 |
| RemoveItem | procedure | 343 |
| TReferences | class | 296 |
| AddItem | procedure | 303 |
| AsPointer | function | 301 |
| Create | constructor | 308 |
| Destroy | destructor | 310 |
| RemoveItem | procedure | 305 |
| Item | property | 331 |