System.Generics.Collections.TObjectList
Delphi
TObjectList<T: class> = class(TList<T>)
C++
template<typename T> class PASCALIMPLEMENTATION TObjectList__1 : public TList__1<T>
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | System.Generics.Collections.pas System.Generics.Collections.hpp |
System.Generics.Collections | System.Generics.Collections |
Description
Ordered list of objects.
TObjectList represents an ordered list of objects, accessible by an index.
TObjectList is a TList with the capability of automatically freeing object entries when they are removed from the list. When a TObjectList is instantiated, an AOwnsObjects parameter specifies whether the list owns the list entries. If the entry is owned, when the entry object is removed from the list, the entry object is freed.
The OwnsObjects property gets or sets the object ownership.
See Also
- System.Generics.Collections.TObjectList.OwnsObjects
- System.Generics.Collections.TObjectList.Create
- System.Contnrs.TObjectList
Code Examples