Class TgoObjectSet

DescriptionHierarchyFieldsMethodsProperties

Unit

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

Public destructor Destroy; override;
Public procedure Clear; override;
Public function Extract(const AItem: T): T;

Description

Methods

Public destructor Destroy; override;

The destructor will free all items in the set

Public procedure Clear; override;

Clears the set and frees the items in it.

Public 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