Class TObjectContainer
Unit
ObjectContainer
Declaration
type TObjectContainer = class(TObject)
Description
Class implementing a generic container. TObjectContainer stores objects of the most basic type (TObject) and is similar to the class TObjectList that is present in version 5 of Delphi (and also in later versions).
Hierarchy
TObjectContainer > TObjectMethods
Overview
Description
 |
constructor Create(OwnsObjects: Boolean = True); |
Constructor.
parameters
-
OwnsObjects
-
determines whether the container should release the space allocated by the contained objects (by calling their
Free method) or not.
 |
destructor Destroy; override; |
Destructor. Destroys the container instance and, if OwnsObjects is set to True, the contained objects.
 |
function Add(Obj: TObject): Integer; |
 |
procedure Clear; |
Clear the list of contained objects and sets Count to zero. If the OwnsObjects is True, each object's Free method is called before removal.
Properties
Overview
 |
property Count: Integer; |
 |
property M[i: Integer]: TObject; |
 |
property OwnsObjects: Boolean; |
Description
 |
property Count: Integer; |
Number of objects in the container.
 |
property M[i: Integer]: TObject; |
Default property that retrieves an object based in the supplied index.
 |
property OwnsObjects: Boolean; |
Determines whether the container should release the space allocated by the contained objects (by calling their Free method) or not.
Generated by PasDoc 0.8.8.3 on 2005-05-28 08:13:49