RAD Studio
ContentsIndex
PreviousUpNext
Working with Lists

The VCL/RTL includes many classes that represents lists or collections of items. They vary depending on the types of items they contain, what operations they support, and whether they are persistent. 

The following table lists various list classes, and indicates the types of items they contain:

Object 
Maintains 
TList  
A list of pointers  
TThreadList  
A thread-safe list of pointers  
TBucketList  
A hashed list of pointers  
TObjectBucketList  
A hashed list of object instances  
TObjectList  
A memory-managed list of object instances  
TComponentList  
A memory-managed list of components (that is, instances of classes descended from TComponent)  
TClassList  
A list of class references  
TInterfaceList  
A list of interface pointers.  
TQueue  
A first-in first-out list of pointers  
TStack  
A last-in first-out list of pointers  
TObjectQueue  
A first-in first-out list of objects  
TObjectStack  
A last-in first-out list of objects  
TCollection  
Base class for many specialized classes of typed items.  
TStringList  
A list of strings  
THashedStringList  
A list of strings with the form Name=Value, hashed for performance.  
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!