[Overview][Constants][Types][Classes][Index] |
Instantiate a new object list.
Source position: fgl.pp line 186
public constructor TFPGObjectList.Create( |
FreeObjects: Boolean = True |
); |
FreeObjects |
|
When True the list owns the objects. |
Create instantiates a new object list. It will simply call the inherited constructor with the correct item size and will initialize TFPGObjectList.FreeObjects with FreeObjects.
If FreeObjects is true, then the list owns the objects. Freeing or clearing the list will remove all objects from memory by calling the destructor. Deleting or removing an item from the list will also dispose of the element.
|
Does the list own the objects or not? |