Table of Contents

TOrderedObjectDictionary<K, V> Class

An ordered dictionary that can take ownership of its keys and/or values (which must be class types).

Remarks

Extends TOrderedDictionary with automatic lifetime management. When ownership is enabled, the dictionary automatically frees keys and/or values when they are removed or when the dictionary is destroyed. By default, the dictionary owns its values.

Syntax

Unit: Bcl.Collections

TOrderedObjectDictionary<K, V> = class(Bcl.Collections.TOrderedDictionary<Bcl.Collections.TOrderedObjectDictionary<K, V>.K, Bcl.Collections.TOrderedObjectDictionary<K, V>.V>);

Type Parameters

Type Parameter Description
K The type of keys in the dictionary.
V The type of values in the dictionary. Must be a class type.

Constructors

Properties

Name Description
Ownerships Returns the current ownership settings for this dictionary.