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

Last change on this file was 324, checked in by chronos, 6 months ago
File size: 2.0 KB
Line 
1unit SpecializedMatrix;
2
3interface
4
5uses
6 Classes, SysUtils;
7
8type
9 {$MACRO ON}
10
11// TMatrixInteger<Integer, Integer, Integer>
12{$DEFINE TGMatrixIndexX := Integer}
13{$DEFINE TGMatrixIndexY := Integer}
14{$DEFINE TGMatrixItem := Integer}
15{$DEFINE TGMatrixIndex := TMatrixIntegerIndex}
16{$DEFINE TGMatrixRow := TMatrixIntegerRow}
17{$DEFINE TGMatrix := TMatrixInteger}
18{$DEFINE INTERFACE}
19{$I 'GenericMatrix.inc'}
20
21// TMatrixByte<Integer, Integer, Byte>
22{$DEFINE TGMatrixIndexX := Integer}
23{$DEFINE TGMatrixIndexY := Integer}
24{$DEFINE TGMatrixItem := Byte}
25{$DEFINE TGMatrixIndex := TMatrixByteIndex}
26{$DEFINE TGMatrixRow := TMatrixByteRow}
27{$DEFINE TGMatrix := TMatrixByte}
28{$DEFINE INTERFACE}
29{$I 'GenericMatrix.inc'}
30
31// TMatrixObject<Integer, Integer, TObject>
32{$DEFINE TGMatrixIndexX := Integer}
33{$DEFINE TGMatrixIndexY := Integer}
34{$DEFINE TGMatrixItem := TObject}
35{$DEFINE TGMatrixIndex := TMatrixObjectIndex}
36{$DEFINE TGMatrixRow := TMatrixObjectRow}
37{$DEFINE TGMatrix := TMatrixObject}
38{$DEFINE INTERFACE}
39{$I 'GenericMatrix.inc'}
40
41implementation
42
43{$DEFINE IMPLEMENTATION_USES}
44{$I 'GenericMatrix.inc'}
45
46// TMatrixInteger<Integer, Integer, Integer>
47{$DEFINE TGMatrixIndexX := Integer}
48{$DEFINE TGMatrixIndexY := Integer}
49{$DEFINE TGMatrixItem := Integer}
50{$DEFINE TGMatrixIndex := TMatrixIntegerIndex}
51{$DEFINE TGMatrixRow := TMatrixIntegerRow}
52{$DEFINE TGMatrix := TMatrixInteger}
53{$DEFINE IMPLEMENTATION}
54{$I 'GenericMatrix.inc'}
55
56// TMatrixByte<Integer, Integer, Byte>
57{$DEFINE TGMatrixIndexX := Integer}
58{$DEFINE TGMatrixIndexY := Integer}
59{$DEFINE TGMatrixItem := Byte}
60{$DEFINE TGMatrixIndex := TMatrixByteIndex}
61{$DEFINE TGMatrixRow := TMatrixByteRow}
62{$DEFINE TGMatrix := TMatrixByte}
63{$DEFINE IMPLEMENTATION}
64{$I 'GenericMatrix.inc'}
65
66// TMatrixObject<Integer, Integer, TObject>
67{$DEFINE TGMatrixIndexX := Integer}
68{$DEFINE TGMatrixIndexY := Integer}
69{$DEFINE TGMatrixItem := TObject}
70{$DEFINE TGMatrixIndex := TMatrixObjectIndex}
71{$DEFINE TGMatrixRow := TMatrixObjectRow}
72{$DEFINE TGMatrix := TMatrixObject}
73{$DEFINE IMPLEMENTATION}
74{$I 'GenericMatrix.inc'}
75
76end.
77
Note: See TracBrowser for help on using the repository browser.