Show: Delphi C++
Display Preferences

Working with Lists

From RAD Studio
Jump to: navigation, search

Go Up to Using the RTL Index

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

System.Classes.TList

A list of pointers

System.Classes.TThreadList

A thread-safe list of pointers

System.Contnrs.TBucketList

A hashed list of pointers

System.Contnrs.TObjectBucketList

A hashed list of object instances

System.Contnrs.TObjectList

A memory-managed list of object instances

System.Contnrs.TComponentList

A memory-managed list of components (that is, instances of classes descended from TComponent)

System.Contnrs.TClassList

A list of class references

Classes.TInterfaceList

A list of interface pointers.

System.Contnrs.TQueue

A first-in first-out list of pointers

System.Contnrs.TStack

A last-in first-out list of pointers

System.Contnrs.TObjectQueue

A first-in first-out list of objects

System.Contnrs.TObjectStack

A last-in first-out list of objects

Classes.TCollection

Base class for many specialized classes of typed items.

Classes.TStringList

A list of strings

System.IniFiles.THashedStringList

A list of strings with the form Name=Value, hashed for performance.



See Also

Personal tools
In other languages