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

Last change on this file was 324, checked in by chronos, 6 months ago
File size: 1.5 KB
Line 
1unit SpecializedQueue;
2
3interface
4
5uses
6 Classes, SysUtils;
7
8type
9{$MACRO ON}
10
11// TQueueInteger<Integer, Integer>
12{$DEFINE TGQueueIndex := Integer}
13{$DEFINE TGQueueItem := Integer}
14{$DEFINE TGQueue := TQueueInteger}
15{$DEFINE TGQueueList := TQueueListInteger}
16{$DEFINE INTERFACE}
17{$I 'GenericQueue.inc'}
18
19// TQueueInteger<Integer, Pointer>
20{$DEFINE TGQueueIndex := Integer}
21{$DEFINE TGQueueItem := Pointer}
22{$DEFINE TGQueue := TQueuePointer}
23{$DEFINE TGQueueList := TQueueListPointer}
24{$DEFINE INTERFACE}
25{$I 'GenericQueue.inc'}
26
27// TQueueByte<Integer, Byte>
28{$DEFINE TGQueueIndex := Integer}
29{$DEFINE TGQueueItem := Byte}
30{$DEFINE TGQueue := TQueueByte}
31{$DEFINE TGQueueList := TQueueListByte}
32{$DEFINE INTERFACE}
33{$I 'GenericQueue.inc'}
34
35implementation
36
37{$DEFINE IMPLEMENTATION_USES}
38{$I 'GenericQueue.inc'}
39
40// TQueueInteger<Integer, Integer>
41{$DEFINE TGQueueIndex := Integer}
42{$DEFINE TGQueueItem := Integer}
43{$DEFINE TGQueue := TQueueInteger}
44{$DEFINE TGQueueList := TQueueListInteger}
45{$DEFINE IMPLEMENTATION}
46{$I '..\Generic\GenericQueue.inc'}
47
48// TQueueInteger<Integer, Pointer>
49{$DEFINE TGQueueIndex := Integer}
50{$DEFINE TGQueueItem := Pointer}
51{$DEFINE TGQueue := TQueuePointer}
52{$DEFINE TGQueueList := TQueueListPointer}
53{$DEFINE IMPLEMENTATION}
54{$I 'GenericQueue.inc'}
55
56// TQueueByte<Integer, Byte>
57{$DEFINE TGQueueIndex := Integer}
58{$DEFINE TGQueueItem := Byte}
59{$DEFINE TGQueue := TQueueByte}
60{$DEFINE TGQueueList := TQueueListByte}
61{$DEFINE IMPLEMENTATION}
62{$I 'GenericQueue.inc'}
63
64end.
Note: See TracBrowser for help on using the repository browser.