Download Now

    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, a reference counted list interface, which is implemented by TObjects for objects and TInterfaces for interfaces. Finally, TAggregateStream reads a series of text, files, and streams as if they were one continuous stream.

    Items 108 items

    NameKindLine
    IListinterface254
    Addfunction278
    Clearprocedure264
    Datafunction284
    Deleteprocedure266
    Exchangeprocedure270
    Findfunction274
    Firstfunction272
    IndexOffunction276
    Lastfunction280
    Removefunction282
    Sortprocedure268
    Capacityproperty286
    Countproperty288
    Itemsproperty290
    TAggregateStreamclass367
    AddFileprocedure386
    AddStreamprocedure388
    AddTextprocedure384
    Clearprocedure382
    Createconstructor378
    Destroydestructor380
    GetSizefunction375
    Readfunction390
    TDictionaryclass176
    TKeyValueclass183
    Createconstructor189
    Keyproperty191
    Valueproperty193
    AddKeyValueprocedure211
    ChangeKeyValueprocedure217
    Clearprocedure231
    Createconstructor225
    CreateKeyValuefunction213
    DefaultValuefunction219
    Destroydestructor227
    DestroyKeyValueprocedure215
    GetEnumeratorfunction198
    KeyExistsfunction233
    Removeprocedure229
    AutoKeyproperty222
    Comparerproperty235
    Countproperty243
    Itemsproperty237
    Keysproperty239
    Valuesproperty241
    TFindProcprocedural248
    TIndexedListclass132
    AddItemprocedure137
    Containsfunction142
    IndexOffunction144
    Removefunction146
    Duplicatesproperty139
    TInterfacesclass354
    AddItemprocedure357
    AsPointerfunction356
    IndexOffunction361
    RemoveItemprocedure358
    TListclass53
    ItemTypealias56
    PItemTypepointer58
    TListComparealias60
    FItemsfield77
    Addprocedure92
    AddItemprocedure79
    Clearprocedure100
    Compactprocedure102
    Deleteprocedure94
    DeleteItemprocedure81
    Destroydestructor90
    Exchangeprocedure98
    Findfunction85
    GetEnumeratorfunction62
    Growprocedure87
    Moveprocedure96
    RequiresDeletefunction83
    Sortprocedure104
    Capacityproperty114
    Countproperty112
    Directproperty120
    Firstproperty108
    Headproperty106
    Itemproperty118
    Lastproperty110
    TListDuplicatesenum126
    duplicateAllowenum value126
    duplicateIgnoreenum value126
    duplicateErrorenum value126
    TObjectListclass153
    AddItemprocedure158
    Createconstructor165
    DeleteItemprocedure160
    IndexOffunction167
    RequiresDeletefunction162
    Duplicatesproperty169
    TObjectsclass337
    AddItemprocedure342
    AsPointerfunction341
    Createconstructor346
    IndexOffunction348
    RemoveItemprocedure343
    TReferencesclass296
    AddItemprocedure303
    AsPointerfunction301
    Createconstructor308
    Destroydestructor310
    RemoveItemprocedure305
    Itemproperty331