source: Generics/TemplateGenerics/Specialized/SpecializedTree.pas

Last change on this file was 574, checked in by chronos, 5 months ago
  • Modified: Removed U prefix from unit names.
File size: 1.7 KB
Line 
1unit SpecializedTree;
2
3interface
4
5uses
6 Classes, SysUtils;
7
8type
9{$MACRO ON}
10// TTreeInteger<Integer, Integer>
11{$DEFINE TGTreeIndex := Integer}
12{$DEFINE TGTreeItem := Integer}
13{$DEFINE TGTree := TTreeInteger}
14{$DEFINE TGTreeNode := TTreeNodeInteger}
15{$DEFINE TGTreeNodeList := TTreeNodeListInteger}
16{$DEFINE INTERFACE}
17{$I 'GenericTree.inc'}
18
19// TTreeString<Integer, string>
20{$DEFINE TGTreeIndex := Integer}
21{$DEFINE TGTreeItem := string}
22{$DEFINE TGTree := TTreeString}
23{$DEFINE TGTreeNode := TTreeNodeString}
24{$DEFINE TGTreeNodeList := TTreeNodeListString}
25{$DEFINE INTERFACE}
26{$I 'GenericTree.inc'}
27
28// TTreePointer<Integer, Pointer>
29{$DEFINE TGTreeIndex := Integer}
30{$DEFINE TGTreeItem := Pointer}
31{$DEFINE TGTree := TTreePointer}
32{$DEFINE TGTreeNode := TTreeNodePointer}
33{$DEFINE TGTreeNodeList := TTreeNodeListPointer}
34{$DEFINE INTERFACE}
35{$I 'GenericTree.inc'}
36
37implementation
38
39{$DEFINE IMPLEMENTATION_USES}
40{$I 'GenericTree.inc'}
41
42// TTreeInteger<Integer, Integer>
43{$DEFINE TGTreeIndex := Integer}
44{$DEFINE TGTreeItem := Integer}
45{$DEFINE TGTree := TTreeInteger}
46{$DEFINE TGTreeNode := TTreeNodeInteger}
47{$DEFINE TGTreeNodeList := TTreeNodeListInteger}
48{$DEFINE IMPLEMENTATION}
49{$I 'GenericTree.inc'}
50
51// TTreeString<Integer, string>
52{$DEFINE TGTreeIndex := Integer}
53{$DEFINE TGTreeItem := string}
54{$DEFINE TGTree := TTreeString}
55{$DEFINE TGTreeNode := TTreeNodeString}
56{$DEFINE TGTreeNodeList := TTreeNodeListString}
57{$DEFINE IMPLEMENTATION}
58{$I 'GenericTree.inc'}
59
60// TTreePointer<Integer, Pointer>
61{$DEFINE TGTreeIndex := Integer}
62{$DEFINE TGTreeItem := Pointer}
63{$DEFINE TGTree := TTreePointer}
64{$DEFINE TGTreeNode := TTreeNodePointer}
65{$DEFINE TGTreeNodeList := TTreeNodeListPointer}
66{$DEFINE IMPLEMENTATION}
67{$I 'GenericTree.inc'}
68
69end.
Note: See TracBrowser for help on using the repository browser.