如何使用JEDI TJCLHashMap类? [英] How to use JEDI TJCLHashMap classes?

查看:176
本文介绍了如何使用JEDI TJCLHashMap类?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用TJCLHashMap类的家族,但显然这个类没有有用的公共方法。所有的方法都是保护的。如何使用这个类?虽然JCL带有一些样本,但我似乎错过了一些东西。一个基本的例子会很棒。

解决方案

您应该使用JclContainerIntf.pas中声明的接口。 JclHashMaps中的类实现这些接口。

查看jcl \examples\common\containers\hashing\HashingExample.dpr几个示例(整数,字符串,对象等)。 )

I'm trying to use TJCLHashMap family of classes, but apparently this class has no useful public methods. All methods are "protected". How to use this class? Although JCL comes with some samples, I seem to miss something. A basic example would be great.

解决方案

You should use the interfaces declared in JclContainerIntf.pas. The classes in JclHashMaps implement those interfaces.
Take a look at jcl\examples\common\containers\hashing\HashingExample.dpr for a few examples (integer, strings, objects, etc.)

这篇关于如何使用JEDI TJCLHashMap类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆