| 1 | unit SpecializedDictionary;
|
|---|
| 2 |
|
|---|
| 3 | interface
|
|---|
| 4 |
|
|---|
| 5 | uses
|
|---|
| 6 | Classes, SysUtils;
|
|---|
| 7 |
|
|---|
| 8 | type
|
|---|
| 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 |
|
|---|
| 32 | implementation
|
|---|
| 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 |
|
|---|
| 59 | end.
|
|---|