Class DSet (unit SDL)

Inherits from

DInternalMap

Constructors


constructor Create; override;

Creates this container using the default comparator (DObjectComparator).

constructor CreateFrom(another : DSet);


constructor CreateWith(compare : DComparator); override;

Creates this container using the specified comparator for ordering elements.


Functions

function includes(obj : array of const) : Boolean; virtual;

Returns true if ALL the specified objects are in the set.

procedure _add(const obj : DObject); override;

Adds an object to this map.

function _includes(const obj : DObject) : Boolean; virtual;

Returns true if the specified object is in the set.

procedure _putAt(const key, value : DObject); override;

Add the specified key, value pair to the map.

Properties

Events

Variables


Constructors


constructor Create; override;

Creates this container using the default comparator (DObjectComparator).


constructor CreateFrom(another : DSet);


constructor CreateWith(compare : DComparator); override;

Creates this container using the specified comparator for ordering elements.


Functions


function includes(obj : array of const) : Boolean; virtual;

Returns true if ALL the specified objects are in the set.


procedure _add(const obj : DObject); override;

Adds an object to this map.


function _includes(const obj : DObject) : Boolean; virtual;

Returns true if the specified object is in the set.


procedure _putAt(const key, value : DObject); override;

Add the specified key, value pair to the map. Copies are made of the objects.


Properties


Events


Variables