Class TgoObjectSet
Unit
Grijjy.Collections
Declaration
type TgoObjectSet<T:class> = class(TgoSet<T>)
Description
A specialized TgoSet<T> that can only hold objects.
This set owns the items in it, meaning it will automatically free any item that is removed, unless Extract is used.
Hierarchy
Overview
Methods
Description
Methods
|
destructor Destroy; override; |
The destructor will free all items in the set
|
|
procedure Clear; override; |
Clears the set and frees the items in it.
|
|
function Extract(const AItem: T): T; |
Removes and returns an item in the set, without freeing it.
Parameters
- AItem
- the item to
extract and remove.
Returns
AItem if the item is in the set, or Default(T) otherwise. |
Generated by P2PasDoc 0.13.0 on 2017-04-25 12:54:26
|