Changeset 84 for Generics/TemplateGenerics/Demo/ListObject.pas
- Timestamp:
- Oct 31, 2010, 3:14:23 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Generics/TemplateGenerics/Demo/ListObject.pas
r82 r84 2 2 3 3 {$mode delphi} 4 {$MACRO ON} 4 5 5 6 interface … … 9 10 10 11 type 11 TObjectListIndex = Integer; 12 TObjectListItem = TObject; 13 {$INCLUDE '..\Generic\ObjectListInterface.tpl'} 12 // TListObject<Integer, TObject> 13 {$DEFINE TGObjectListIndex := Integer} 14 {$DEFINE TGObjectListItem := TObject} 15 {$DEFINE TGObjectListList := TObjectListList} 16 {$DEFINE TGObjectList := TListObject} 17 {$DEFINE TGObjectListSortCompare := TObjectListSortCompareInteger} 18 {$DEFINE TGObjectListStringConverter := TObjectListStringConverterInteger} 19 {$DEFINE INTERFACE} 20 {$INCLUDE '..\Generic\GenericObjectList.inc'} 14 21 15 type16 17 { TListObject }18 19 TListObject = class(TGObjectList)20 end;21 22 22 23 implementation 23 24 24 {$INCLUDE '..\Generic\ObjectListImplementation.tpl'} 25 // TListObject<Integer, TObject> 26 {$DEFINE TGObjectListIndex := Integer} 27 {$DEFINE TGObjectListItem := TObject} 28 {$DEFINE TGObjectListList := TObjectListList} 29 {$DEFINE TGObjectList := TListObject} 30 {$DEFINE TGObjectListSortCompare := TObjectListSortCompareInteger} 31 {$DEFINE TGObjectListStringConverter := TObjectListStringConverterInteger} 32 {$DEFINE IMPLEMENTATION} 33 {$INCLUDE '..\Generic\GenericObjectList.inc'} 25 34 26 35 end.
Note:
See TracChangeset
for help on using the changeset viewer.