- Timestamp:
- Dec 5, 2011, 2:19:01 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Generics/TemplateGenerics/Specialized/SpecializedDictionary.pas
r112 r301 17 17 {$DEFINE TGPairValue := string} 18 18 {$DEFINE TGDictionary := TDictionaryStringString} 19 {$DEFINE TGDictionaryList := TDictionary List}20 {$DEFINE TGDictionarySortCompare := TDictionaryS ortCompareInteger}21 {$DEFINE TGDictionaryToStringConverter := TDictionary ToStringConverterInteger}22 {$DEFINE TGDictionaryFromStringConverter := TDictionary FromStringConverterInteger}23 {$DEFINE TGDictionaryItemArray := TDictionaryString ItemArray}19 {$DEFINE TGDictionaryList := TDictionaryStringStringList} 20 {$DEFINE TGDictionarySortCompare := TDictionaryStringStringSortCompare} 21 {$DEFINE TGDictionaryToStringConverter := TDictionaryStringStringToStringConverter} 22 {$DEFINE TGDictionaryFromStringConverter := TDictionaryStringStringFromStringConverter} 23 {$DEFINE TGDictionaryItemArray := TDictionaryStringStringItemArray} 24 24 {$DEFINE INTERFACE} 25 25 {$I 'GenericDictionary.inc'} 26 26 27 // TDictionaryIntegerString<Integer, TPair<Integer, string>> 28 {$DEFINE TGDictionaryIndex := Integer} 29 {$DEFINE TGPair := TPairIntegerString} 30 {$DEFINE TGPairKey := Integer} 31 {$DEFINE TGPairValue := string} 32 {$DEFINE TGDictionary := TDictionaryIntegerString} 33 {$DEFINE TGDictionaryList := TDictionaryIntegerStringList} 34 {$DEFINE TGDictionarySortCompare := TDictionaryIntegerStringSortCompare} 35 {$DEFINE TGDictionaryToStringConverter := TDictionaryIntegerStringToStringConverter} 36 {$DEFINE TGDictionaryFromStringConverter := TDictionaryIntegerStringFromStringConverter} 37 {$DEFINE TGDictionaryItemArray := TDictionaryIntegerStringItemArray} 38 {$DEFINE INTERFACE} 39 {$I 'GenericDictionary.inc'} 40 41 27 42 implementation 43 44 {$DEFINE IMPLEMENTATION_USES} 45 {$I '..\Generic\GenericDictionary.inc'} 46 28 47 29 48 // TDictionaryStringString<Integer, TPair<string, string>> … … 33 52 {$DEFINE TGPairValue := string} 34 53 {$DEFINE TGDictionary := TDictionaryStringString} 35 {$DEFINE TGDictionaryList := TDictionary List}36 {$DEFINE TGDictionarySortCompare := TDictionaryS ortCompareInteger}37 {$DEFINE TGDictionaryToStringConverter := TDictionary ToStringConverterInteger}38 {$DEFINE TGDictionaryFromStringConverter := TDictionary FromStringConverterInteger}39 {$DEFINE TGDictionaryItemArray := TDictionaryString ItemArray}54 {$DEFINE TGDictionaryList := TDictionaryStringStringList} 55 {$DEFINE TGDictionarySortCompare := TDictionaryStringStringSortCompare} 56 {$DEFINE TGDictionaryToStringConverter := TDictionaryStringStringToStringConverter} 57 {$DEFINE TGDictionaryFromStringConverter := TDictionaryStringStringFromStringConverter} 58 {$DEFINE TGDictionaryItemArray := TDictionaryStringStringItemArray} 40 59 {$DEFINE IMPLEMENTATION} 41 60 {$I 'GenericDictionary.inc'} 42 61 62 // TDictionaryIntegerString<Integer, TPair<Integer, string>> 63 {$DEFINE TGDictionaryIndex := Integer} 64 {$DEFINE TGPair := TPairIntegerString} 65 {$DEFINE TGPairKey := Integer} 66 {$DEFINE TGPairValue := string} 67 {$DEFINE TGDictionary := TDictionaryIntegerString} 68 {$DEFINE TGDictionaryList := TDictionaryIntegerStringList} 69 {$DEFINE TGDictionarySortCompare := TDictionaryIntegerStringSortCompare} 70 {$DEFINE TGDictionaryToStringConverter := TDictionaryIntegerStringToStringConverter} 71 {$DEFINE TGDictionaryFromStringConverter := TDictionaryIntegerStringFromStringConverter} 72 {$DEFINE TGDictionaryItemArray := TDictionaryIntegerStringItemArray} 73 {$DEFINE IMPLEMENTATION} 74 {$I 'GenericDictionary.inc'} 75 76 43 77 end.
Note:
See TracChangeset
for help on using the changeset viewer.