Show: Delphi C++
Display Preferences

System.Generics.Collections.TObjectList

From RAD Studio API Documentation
Jump to: navigation, search

System.Generics.Collections.TListSystem.Generics.Collections.TEnumerableSystem.TObjectTObjectList

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

Code Examples


Personal tools
In Other Languages
Previous Versions
Assistance