Delphi多索引通用列表 [英] Delphi multiple indexed generic list
问题描述
我正在寻找一个TList后代,该后代可以让我添加一个或多个索引,并可以通过这些索引进行搜索和查看。
I am looking for a TList descendent which lets me add one or more indexes and lets me search and view by these indexes.
一个30分钟的Google搜索会话已经结束我什么都没有。
A 30min google search session has left me with nothing.
这以前必须是必需的。我的意思是您有多少次在内存中建立索引集合,然后需要以不同的顺序显示它?
This must have been needed before. I mean how many times have you had a in memory indexed collection and then needed to display it in a different order?
谢谢,
AJ
推荐答案
如果您正在寻找 Multimap in Delphi, LU RD 在上面对 delphi-coll 的评论中为您指出了正确的方向。 a>。
If you are looking for a generic implementation of a Multimap in Delp LU RD has pointed to you the right direction in his comment above on delphi-coll.
命名空间 Collections.MultiMaps 提供了许多类:
The namespace Collections.MultiMaps provides a bunch of classes:
- TDistinctMultiMap:通用的多地图集合。
- TDoubleSortedDistinctMultiMap:通用的多地图集合。
- TDoubleSortedMultiMap:通用的多地图集合。
- TMultiMap:通用的多地图集合。
- TObjectDistinctMultiMap:旨在存储对象的通用多地图集合。
- TObjectDoubleSortedDistinctMultiMap:旨在存储对象的通用多地图集合。
- TObjectDoubleSortedMultiMap:旨在存储对象的通用多地图集合。
- TObjectMultiMap:旨在存储对象的通用多地图集合。
- TObjectSortedDistinctMultiMap:旨在存储对象的通用不同的多地图集合。
- TObjectSortedMultiMap:旨在存储对象的通用多地图集合。
- TSortedDistinctMultiMap:通用的独特的多地图集合。
- TSortedMultiMap:通用的多地图集合。
- TDistinctMultiMap: The generic multi-map collection.
- TDoubleSortedDistinctMultiMap: The generic multi-map collection.
- TDoubleSortedMultiMap: The generic multi-map collection.
- TMultiMap: The generic multi-map collection.
- TObjectDistinctMultiMap: The generic multi-map collection designed to store objects.
- TObjectDoubleSortedDistinctMultiMap: The generic multi-map collection designed to store objects.
- TObjectDoubleSortedMultiMap: The generic multi-map collection designed to store objects.
- TObjectMultiMap: The generic multi-map collection designed to store objects.
- TObjectSortedDistinctMultiMap: The generic distinct multi-map collection designed to store objects.
- TObjectSortedMultiMap: The generic multi-map collection designed to store objects.
- TSortedDistinctMultiMap: The generic distinct multi-map collection.
- TSortedMultiMap: The generic multi-map collection.
这篇关于Delphi多索引通用列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!