Changeset 86
- Timestamp:
- Oct 31, 2010, 9:30:56 PM (14 years ago)
- Location:
- Generics/TemplateGenerics
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
Generics/TemplateGenerics/Demo/ListObject.pas
r84 r86 18 18 {$DEFINE TGObjectListStringConverter := TObjectListStringConverterInteger} 19 19 {$DEFINE INTERFACE} 20 {$I NCLUDE '..\Generic\GenericObjectList.inc'}20 {$I 'GenericObjectList.inc'} 21 21 22 22 23 23 implementation 24 25 {$DEFINE IMPLEMENTATION_USES} 26 {$I 'GenericObjectList.inc'} 24 27 25 28 // TListObject<Integer, TObject> … … 31 34 {$DEFINE TGObjectListStringConverter := TObjectListStringConverterInteger} 32 35 {$DEFINE IMPLEMENTATION} 33 {$I NCLUDE '..\Generic\GenericObjectList.inc'}36 {$I 'GenericObjectList.inc'} 34 37 35 38 end. -
Generics/TemplateGenerics/Generic/GenericDictionary.inc
r84 r86 14 14 {$DEFINE TGListStringConverter := TDictionaryStringConverter} 15 15 {$DEFINE INTERFACE} 16 {$I NCLUDE'GenericList.inc'}16 {$I 'GenericList.inc'} 17 17 18 18 // TGDictionary<TGDictionaryIndex, TGPair<TGPairKey, TGPairValue>> = class(TGList) … … 39 39 {$UNDEF IMPLEMENTATION} 40 40 {$DEFINE IMPLEMENTATION_USES} 41 {$I NCLUDE'..\Generic\GenericList.inc'}41 {$I '..\Generic\GenericList.inc'} 42 42 43 43 {$DEFINE TGListIndex := TGDictionaryIndex} … … 47 47 {$DEFINE TGListStringConverter := TDictionaryStringConverter} 48 48 {$DEFINE IMPLEMENTATION} 49 {$I NCLUDE'GenericList.inc'}49 {$I 'GenericList.inc'} 50 50 51 51 function TGDictionary.GetKey(Index: TGDictionaryIndex): TGPairKey; -
Generics/TemplateGenerics/Generic/GenericObjectList.inc
r85 r86 7 7 {$DEFINE TGListStringConverter := TGObjectListStringConverter} 8 8 {$DEFINE INTERFACE} 9 {$I NCLUDE'GenericList.inc'}9 {$I 'GenericList.inc'} 10 10 11 11 // TGObjectList<TObjectListIndex, TObjectListItem> = class(TGList) … … 27 27 28 28 {$DEFINE IMPLEMENTATION_USES} 29 {$I NCLUDE'..\Generic\GenericList.inc'}29 {$I '..\Generic\GenericList.inc'} 30 30 31 31 {$UNDEF IMPLEMENTATION_USES} … … 40 40 {$DEFINE TGListStringConverter := TGObjectListStringConverter} 41 41 {$DEFINE IMPLEMENTATION} 42 {$I NCLUDE'GenericList.inc'}42 {$I 'GenericList.inc'} 43 43 44 44 { TGObjectList } -
Generics/TemplateGenerics/Generic/GenericQueue.inc
r84 r86 7 7 {$DEFINE TGListStringConverter := TGQueueStringConverter} 8 8 {$DEFINE INTERFACE} 9 {$I NCLUDE'GenericList.inc'}9 {$I 'GenericList.inc'} 10 10 11 11 // TGQueue<TSetIndex, TSetItem> = class(TGList) … … 28 28 29 29 {$DEFINE IMPLEMENTATION_USES} 30 {$I NCLUDE '..\Generic\GenericList.inc'}30 {$I 'GenericList.inc'} 31 31 32 32 {$UNDEF IMPLEMENTATION_USES} … … 41 41 {$DEFINE TGListStringConverter := TGQueueStringConverter} 42 42 {$DEFINE IMPLEMENTATION} 43 {$I NCLUDE'GenericList.inc'}43 {$I 'GenericList.inc'} 44 44 45 45 { TGQueue } -
Generics/TemplateGenerics/Generic/GenericSet.inc
r84 r86 7 7 {$DEFINE TGListStringConverter := TGSetStringConverter} 8 8 {$DEFINE INTERFACE} 9 {$I NCLUDE'GenericList.inc'}9 {$I 'GenericList.inc'} 10 10 11 11 // TGSet<TGSetIndex, TGSetItem> = class … … 26 26 27 27 {$DEFINE IMPLEMENTATION_USES} 28 {$I NCLUDE '..\Generic\GenericList.inc'}28 {$I 'GenericList.inc'} 29 29 30 30 {$UNDEF IMPLEMENTATION_USES} … … 39 39 {$DEFINE TGListStringConverter := TGSetStringConverter} 40 40 {$DEFINE IMPLEMENTATION} 41 {$I NCLUDE'GenericList.inc'}41 {$I 'GenericList.inc'} 42 42 43 43 { TGSet } -
Generics/TemplateGenerics/Generic/GenericStack.inc
r84 r86 7 7 {$DEFINE TGListStringConverter := TGStackStringConverter} 8 8 {$DEFINE INTERFACE} 9 {$I NCLUDE'GenericList.inc'}9 {$I 'GenericList.inc'} 10 10 11 11 // TGStack<TStackIndex, TStackItem> = class(TGList) … … 27 27 28 28 {$DEFINE IMPLEMENTATION_USES} 29 {$I NCLUDE '..\Generic\GenericList.inc'}29 {$I 'GenericList.inc'} 30 30 31 31 {$UNDEF IMPLEMENTATION_USES} … … 40 40 {$DEFINE TGListStringConverter := TGStackStringConverter} 41 41 {$DEFINE IMPLEMENTATION} 42 {$I NCLUDE'GenericList.inc'}42 {$I 'GenericList.inc'} 43 43 44 44 { TGStack } -
Generics/TemplateGenerics/Generic/GenericTree.inc
r84 r86 9 9 {$DEFINE TGListStringConverter := TGTreeStringConverter} 10 10 {$DEFINE INTERFACE} 11 {$I NCLUDE'GenericList.inc'}11 {$I 'GenericList.inc'} 12 12 13 13 // TGTreeNode<TGTreeIndex, TGTreeItem> = class … … 30 30 31 31 {$DEFINE IMPLEMENTATION_USES} 32 {$I NCLUDE'GenericList.inc'}32 {$I 'GenericList.inc'} 33 33 34 34 {$UNDEF INTERFACE_USES} … … 45 45 {$DEFINE TGListStringConverter := TGTreeStringConverter} 46 46 {$DEFINE IMPLEMENTATION} 47 {$I NCLUDE'GenericList.inc'}47 {$I 'GenericList.inc'} 48 48 49 49 { TGTreeNode } -
Generics/TemplateGenerics/Specialized/SpecializedDictionary.pas
r84 r86 21 21 {$DEFINE TGDictionaryStringConverter := TDictionaryStringConverterInteger} 22 22 {$DEFINE INTERFACE} 23 {$I NCLUDE '..\Generic\GenericDictionary.inc'}23 {$I 'GenericDictionary.inc'} 24 24 25 25 implementation … … 35 35 {$DEFINE TGDictionaryStringConverter := TDictionaryStringConverterInteger} 36 36 {$DEFINE IMPLEMENTATION} 37 {$I NCLUDE '..\Generic\GenericDictionary.inc'}37 {$I 'GenericDictionary.inc'} 38 38 39 39 end. -
Generics/TemplateGenerics/Specialized/SpecializedList.pas
r84 r86 18 18 {$DEFINE TGListStringConverter := TListIntegerStringConverter} 19 19 {$DEFINE INTERFACE} 20 {$I NCLUDE '..\Generic\GenericList.inc'}20 {$I 'GenericList.inc'} 21 21 22 22 // TListSmallInt<Integer, SmallInt> … … 27 27 {$DEFINE TGListStringConverter := TListSmallIntStringConverter} 28 28 {$DEFINE INTERFACE} 29 {$I NCLUDE '..\Generic\GenericList.inc'}29 {$I 'GenericList.inc'} 30 30 31 31 // TListDouble<Integer, Double> … … 45 45 {$DEFINE TGListStringConverter := TListPointerStringConverter} 46 46 {$DEFINE INTERFACE} 47 {$I NCLUDE '..\Generic\GenericList.inc'}47 {$I 'GenericList.inc'} 48 48 49 49 // TListString<Integer, string> … … 54 54 {$DEFINE TGListStringConverter := TListStringStringConverter} 55 55 {$DEFINE INTERFACE} 56 {$I NCLUDE '..\Generic\GenericList.inc'}56 {$I 'GenericList.inc'} 57 57 58 58 // TListByte<Integer, Byte> … … 63 63 {$DEFINE TGListStringConverter := TListByteStringConverter} 64 64 {$DEFINE INTERFACE} 65 {$INCLUDE '..\Generic\GenericList.inc'} 66 67 65 {$I 'GenericList.inc'} 68 66 69 67 // TListChar<Integer, Char> … … 74 72 {$DEFINE TGListStringConverter := TListStringConverterChar} 75 73 {$DEFINE INTERFACE} 76 {$I NCLUDE '..\Generic\GenericList.inc'}74 {$I 'GenericList.inc'} 77 75 78 76 { TListChar } … … 90 88 91 89 {$DEFINE IMPLEMENTATION_USES} 92 {$I NCLUDE '..\Generic\GenericList.inc'}90 {$I 'GenericList.inc'} 93 91 94 92 // TListInteger<Integer, Integer> … … 99 97 {$DEFINE TGListStringConverter:=TListIntegerStringConverter} 100 98 {$DEFINE IMPLEMENTATION} 101 {$I NCLUDE '..\Generic\GenericList.inc'}99 {$I 'GenericList.inc'} 102 100 103 101 // TListSmallInt<Integer, SmallInt> … … 108 106 {$DEFINE TGListStringConverter:=TListSmallIntStringConverter} 109 107 {$DEFINE IMPLEMENTATION} 110 {$I NCLUDE '..\Generic\GenericList.inc'}108 {$I 'GenericList.inc'} 111 109 112 110 // TListDouble<Integer, Double> … … 117 115 {$DEFINE TGListStringConverter := TListDoubleStringConverter} 118 116 {$DEFINE IMPLEMENTATION} 119 {$I NCLUDE '..\Generic\GenericList.inc'}117 {$I 'GenericList.inc'} 120 118 121 119 // TListPointer<Integer, Pointer> … … 126 124 {$DEFINE TGListStringConverter := TListPointerStringConverter} 127 125 {$DEFINE IMPLEMENTATION} 128 {$I NCLUDE '..\Generic\GenericList.inc'}126 {$I 'GenericList.inc'} 129 127 130 128 // TListString<Integer, string> … … 135 133 {$DEFINE TGListStringConverter := TListStringStringConverter} 136 134 {$DEFINE IMPLEMENTATION} 137 {$I NCLUDE '..\Generic\GenericList.inc'}135 {$I 'GenericList.inc'} 138 136 139 137 // TListByte<Integer, Byte> … … 144 142 {$DEFINE TGListStringConverter := TListByteStringConverter} 145 143 {$DEFINE IMPLEMENTATION} 146 {$I NCLUDE '..\Generic\GenericList.inc'}144 {$I 'GenericList.inc'} 147 145 148 146 // TListByte<Integer, Char> … … 153 151 {$DEFINE TGListStringConverter := TListStringConverterChar} 154 152 {$DEFINE IMPLEMENTATION} 155 {$I NCLUDE '..\Generic\GenericList.inc'}153 {$I 'GenericList.inc'} 156 154 157 155 { TListChar } -
Generics/TemplateGenerics/Specialized/SpecializedQueue.pas
r84 r86 19 19 {$DEFINE TGQueueStringConverter := TQueueStringConverterInteger} 20 20 {$DEFINE INTERFACE} 21 {$I NCLUDE '..\Generic\GenericQueue.inc'}21 {$I 'GenericQueue.inc'} 22 22 23 23 // TQueueInteger<Integer, Pointer> … … 29 29 {$DEFINE TGQueueStringConverter := TQueueStringConverterPointer} 30 30 {$DEFINE INTERFACE} 31 {$I NCLUDE '..\Generic\GenericQueue.inc'}31 {$I 'GenericQueue.inc'} 32 32 33 33 // TQueueByte<Integer, Byte> … … 39 39 {$DEFINE TGQueueStringConverter := TQueueStringConverterByte} 40 40 {$DEFINE INTERFACE} 41 {$I NCLUDE '..\Generic\GenericQueue.inc'}41 {$I 'GenericQueue.inc'} 42 42 43 43 implementation 44 44 45 45 {$DEFINE IMPLEMENTATION_USES} 46 {$I NCLUDE '..\Generic\GenericQueue.inc'}46 {$I 'GenericQueue.inc'} 47 47 48 48 // TQueueInteger<Integer, Integer> … … 54 54 {$DEFINE TGQueueStringConverter := TQueueStringConverterInteger} 55 55 {$DEFINE IMPLEMENTATION} 56 {$I NCLUDE'..\Generic\GenericQueue.inc'}56 {$I '..\Generic\GenericQueue.inc'} 57 57 58 58 // TQueueInteger<Integer, Pointer> … … 64 64 {$DEFINE TGQueueStringConverter := TQueueStringConverterPointer} 65 65 {$DEFINE IMPLEMENTATION} 66 {$I NCLUDE '..\Generic\GenericQueue.inc'}66 {$I 'GenericQueue.inc'} 67 67 68 68 // TQueueByte<Integer, Byte> … … 74 74 {$DEFINE TGQueueStringConverter := TQueueStringConverterByte} 75 75 {$DEFINE IMPLEMENTATION} 76 {$I NCLUDE '..\Generic\GenericQueue.inc'}76 {$I 'GenericQueue.inc'} 77 77 78 78 end. -
Generics/TemplateGenerics/Specialized/SpecializedSet.pas
r84 r86 19 19 {$DEFINE TGSetStringConverter := TSetStringConverterInteger} 20 20 {$DEFINE INTERFACE} 21 {$I NCLUDE '..\Generic\GenericSet.inc'}21 {$I 'GenericSet.inc'} 22 22 23 23 // TSetPointer<Integer, Pointer> … … 29 29 {$DEFINE TGSetStringConverter := TSetStringConverterPointer} 30 30 {$DEFINE INTERFACE} 31 {$I NCLUDE '..\Generic\GenericSet.inc'}31 {$I 'GenericSet.inc'} 32 32 33 33 implementation 34 34 35 35 {$DEFINE IMPLEMENTATION_USES} 36 {$I NCLUDE '..\Generic\GenericSet.inc'}36 {$I 'GenericSet.inc'} 37 37 38 38 // TSetInteger<Integer, Integer> … … 44 44 {$DEFINE TGSetStringConverter := TSetStringConverterInteger} 45 45 {$DEFINE IMPLEMENTATION} 46 {$I NCLUDE '..\Generic\GenericSet.inc'}46 {$I 'GenericSet.inc'} 47 47 48 48 // TSetPointer<Integer, Pointer> … … 54 54 {$DEFINE TGSetStringConverter := TSetStringConverterPointer} 55 55 {$DEFINE IMPLEMENTATION} 56 {$I NCLUDE '..\Generic\GenericSet.inc'}56 {$I 'GenericSet.inc'} 57 57 58 58 end. -
Generics/TemplateGenerics/Specialized/SpecializedStack.pas
r84 r86 19 19 {$DEFINE TGStackStringConverter := TStackStringConverterInteger} 20 20 {$DEFINE INTERFACE} 21 {$I NCLUDE '..\Generic\GenericStack.inc'}21 {$I 'GenericStack.inc'} 22 22 23 23 // TStackInteger<Integer, Pointer> … … 29 29 {$DEFINE TGStackStringConverter := TStackStringConverterPointer} 30 30 {$DEFINE INTERFACE} 31 {$I NCLUDE '..\Generic\GenericStack.inc'}31 {$I 'GenericStack.inc'} 32 32 33 33 … … 35 35 36 36 {$DEFINE IMPLEMENTATION_USES} 37 {$I NCLUDE '..\Generic\GenericStack.inc'}37 {$I 'GenericStack.inc'} 38 38 39 39 // TStackInteger<Integer, Integer> … … 45 45 {$DEFINE TGStackStringConverter := TStackStringConverterInteger} 46 46 {$DEFINE IMPLEMENTATION} 47 {$I NCLUDE '..\Generic\GenericStack.inc'}47 {$I 'GenericStack.inc'} 48 48 49 49 // TStackInteger<Integer, Pointer> … … 55 55 {$DEFINE TGStackStringConverter := TStackStringConverterPointer} 56 56 {$DEFINE IMPLEMENTATION} 57 {$I NCLUDE '..\Generic\GenericStack.inc'}57 {$I 'GenericStack.inc'} 58 58 end. -
Generics/TemplateGenerics/Specialized/SpecializedTree.pas
r84 r86 19 19 {$DEFINE TGTreeStringConverter := TTreeStringConverterInteger} 20 20 {$DEFINE INTERFACE} 21 {$I NCLUDE '..\Generic\GenericTree.inc'}21 {$I 'GenericTree.inc'} 22 22 23 23 // TTreeString<Integer, string> … … 30 30 {$DEFINE TGTreeStringConverter := TTreeStringConverterString} 31 31 {$DEFINE INTERFACE} 32 {$I NCLUDE '..\Generic\GenericTree.inc'}32 {$I 'GenericTree.inc'} 33 33 34 34 // TTreePointer<Integer, Pointer> … … 41 41 {$DEFINE TGTreeStringConverter := TTreeStringConverterPointer} 42 42 {$DEFINE INTERFACE} 43 {$I NCLUDE '..\Generic\GenericTree.inc'}43 {$I 'GenericTree.inc'} 44 44 45 45 implementation 46 46 47 47 {$DEFINE IMPLEMENTATION_USES} 48 {$I NCLUDE '..\Generic\GenericTree.inc'}48 {$I 'GenericTree.inc'} 49 49 50 50 // TTreeInteger<Integer, Integer> … … 57 57 {$DEFINE TGTreeStringConverter := TTreeStringConverterInteger} 58 58 {$DEFINE IMPLEMENTATION} 59 {$I NCLUDE '..\Generic\GenericTree.inc'}59 {$I 'GenericTree.inc'} 60 60 61 61 // TTreeString<Integer, string> … … 68 68 {$DEFINE TGTreeStringConverter := TTreeStringConverterString} 69 69 {$DEFINE IMPLEMENTATION} 70 {$I NCLUDE '..\Generic\GenericTree.inc'}70 {$I 'GenericTree.inc'} 71 71 72 72 // TTreePointer<Integer, Pointer> … … 79 79 {$DEFINE TGTreeStringConverter := TTreeStringConverterPointer} 80 80 {$DEFINE IMPLEMENTATION} 81 {$I NCLUDE '..\Generic\GenericTree.inc'}81 {$I 'GenericTree.inc'} 82 82 83 83 end. -
Generics/TemplateGenerics/TemplateGenerics.lpk
r84 r86 9 9 <PathDelim Value="\"/> 10 10 <SearchPaths> 11 <OtherUnitFiles Value="Specialized\"/> 11 <IncludeFiles Value="Generic\"/> 12 <OtherUnitFiles Value="Specialized\;Generic\"/> 12 13 <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/> 13 14 </SearchPaths> … … 16 17 </Other> 17 18 </CompilerOptions> 18 <Version Minor="1"/> 19 <Description Value="Generic classes implemented as templates."/> 20 <Version Minor="2"/> 19 21 <Files Count="15"> 20 22 <Item1> … … 87 89 </RequiredPkgs> 88 90 <UsageOptions> 89 <UnitPath Value="$(PkgOutDir)"/> 91 <IncludePath Value="Generic\"/> 92 <UnitPath Value="$(PkgOutDir)\"/> 90 93 </UsageOptions> 91 94 <PublishOptions>
Note:
See TracChangeset
for help on using the changeset viewer.