Collection of key-value pairs.
TDictionary represents a generic collection of key-value pairs.
This class provides a mapping from a collection of keys to a collection of values. When you create a TDictionary object, you can specify various combinations of initial capacity, equality operation, and initial content.
You can add a key that is associated with a corresponding value with the Add or AddOrSetValue methods. You can remove entries with Remove or Clear, which removes all key-value pairs. Adding or removing a key-value pair and looking up a key are efficient, close to O(1), because keys are hashed. A key must not be nil (though a value may be nil) and there must be an equality comparison operation for keys.
You can test for the presence or keys and values with the TryGetValue, ContainsKey and ContainsValue methods.
The Items property lists all Count dictionary entries. You can also set and get values by indexing the Items property. Setting the value this way overwrites any existing value.
The class TObjectDictionary inherits from TDictionary and provides an automatic mechanism for freeing objects removed from dictionary entries.
资源简介:Collection of key-value pairs. TDictionary represents a generic collection of key-value pairs. This class provides a mapping from a collection of keys to a collection of values. When you create a TDictionary object, you can specify va...
上传时间: 2015-07-01
上传用户:mirage
资源简介:文档为labview教程---LabVIEW-中的泛型容器详解文档,是一份不错的参考资料,感兴趣的可以下载看看,,,,,,,,,,,,,,,
上传时间: 2022-07-17
上传用户:yiyewumian
资源简介:怎样在CodeVision中使用结构型数组的用法实例1
上传时间: 2015-01-11
上传用户:LouieWu
资源简介:支持泛型数据类型的矩阵运算,包含了所有基本的矩阵运算,求逆、转置、点乘、点除等
上传时间: 2014-12-20
上传用户:aix008
资源简介:delphi的Indy9 Demo
上传时间: 2013-12-27
上传用户:VRMMO
资源简介:C++模板源码 模板和泛型编程的学习资料
上传时间: 2013-12-23
上传用户:cmc_68289287
资源简介:STL源码 泛型编程和学习STL的好资料
上传时间: 2013-12-19
上传用户:黑漆漆
资源简介:这是jdk1.5的泛型教程,来自于IBM,jdk1.5以上
上传时间: 2015-05-15
上传用户:asasasas
资源简介:concepts 是由Bjarne Stroustrup和Douglas Gregor撰写的你提交到iso c++委员会的描述泛型编程的concept检验的c++扩展语法的文件
上传时间: 2015-07-07
上传用户:chenbhdt
资源简介:C++概述、基本语言、基于过程的程序设计、基于对像的程序设计、象对象的程序设计、泛型算法
上传时间: 2015-08-13
上传用户:lo25643