source: trunk/Packages/TemplateGenerics/Specialized/SpecializedDictionary.pas

Last change on this file was 324, checked in by chronos, 6 months ago
File size: 1.6 KB
Line 
1unit SpecializedDictionary;
2
3interface
4
5uses
6 Classes, SysUtils;
7
8type
9{$MACRO ON}
10
11// TDictionaryStringString<Integer, TPair<string, string>>
12{$DEFINE TGDictionaryIndex := Integer}
13{$DEFINE TGPair := TPairStringString}
14{$DEFINE TGPairKey := string}
15{$DEFINE TGPairValue := string}
16{$DEFINE TGDictionary := TDictionaryStringString}
17{$DEFINE TGDictionaryList := TDictionaryStringStringList}
18{$DEFINE INTERFACE}
19{$I 'GenericDictionary.inc'}
20
21// TDictionaryIntegerString<Integer, TPair<Integer, string>>
22{$DEFINE TGDictionaryIndex := Integer}
23{$DEFINE TGPair := TPairIntegerString}
24{$DEFINE TGPairKey := Integer}
25{$DEFINE TGPairValue := string}
26{$DEFINE TGDictionary := TDictionaryIntegerString}
27{$DEFINE TGDictionaryList := TDictionaryIntegerStringList}
28{$DEFINE INTERFACE}
29{$I 'GenericDictionary.inc'}
30
31
32implementation
33
34{$DEFINE IMPLEMENTATION_USES}
35{$I '..\Generic\GenericDictionary.inc'}
36
37
38// TDictionaryStringString<Integer, TPair<string, string>>
39{$DEFINE TGDictionaryIndex := Integer}
40{$DEFINE TGPair := TPairStringString}
41{$DEFINE TGPairKey := string}
42{$DEFINE TGPairValue := string}
43{$DEFINE TGDictionary := TDictionaryStringString}
44{$DEFINE TGDictionaryList := TDictionaryStringStringList}
45{$DEFINE IMPLEMENTATION}
46{$I 'GenericDictionary.inc'}
47
48// TDictionaryIntegerString<Integer, TPair<Integer, string>>
49{$DEFINE TGDictionaryIndex := Integer}
50{$DEFINE TGPair := TPairIntegerString}
51{$DEFINE TGPairKey := Integer}
52{$DEFINE TGPairValue := string}
53{$DEFINE TGDictionary := TDictionaryIntegerString}
54{$DEFINE TGDictionaryList := TDictionaryIntegerStringList}
55{$DEFINE IMPLEMENTATION}
56{$I 'GenericDictionary.inc'}
57
58
59end.
Note: See TracBrowser for help on using the repository browser.