#include <basematrix.h>
◆ TBaseMatrix() [1/3]
TBaseMatrix::TBaseMatrix |
( |
| ) |
|
26{
33
34
35
36
37
38
39
40
41}
long shiftX
Definition: basematrix.h:36
long ySize
Definition: basematrix.h:23
long shiftY
Definition: basematrix.h:37
long xSize
Definition: basematrix.h:22
unsigned char * mas
Definition: basematrix.h:30
long byteSize
Definition: basematrix.h:24
#define NULL
Definition: nidaqmx.h:84
◆ TBaseMatrix() [2/3]
TBaseMatrix::TBaseMatrix |
( |
long |
ix_size, |
|
|
long |
iy_size |
|
) |
| |
44{
46 Init(ix_size,iy_size);
47}
void Init(long ix_size, long iy_size)
Definition: basematrix.cxx:108
◆ TBaseMatrix() [3/3]
51{
53 long ixs,iys;
56
57}
long GetSize(long *ix_size=NULL, long *iy_size=NULL)
Definition: basematrix.cxx:190
◆ ~TBaseMatrix()
TBaseMatrix::~TBaseMatrix |
( |
| ) |
|
|
virtual |
71 {
75 }
76
77
78
79
85
86
87
88
89
90
91
92
93
94}
◆ Adopt()
void TBaseMatrix::Adopt |
( |
unsigned char * |
mas, |
|
|
long |
rows, |
|
|
long |
columns |
|
) |
| |
145{
147 memcpy((
void *)
mas,(
void *)m,rows*columns);
148
149}
◆ GetElement()
virtual int TBaseMatrix::GetElement |
( |
int |
type, |
|
|
long |
i, |
|
|
long |
j |
|
) |
| |
|
pure virtual |
◆ GetPointer()
const unsigned char * TBaseMatrix::GetPointer |
( |
void |
| ) |
|
|
inlineprotected |
◆ GetSize()
◆ Init()
108 {
110
113
115 mas = (
unsigned char *)calloc(
byteSize,
sizeof(
unsigned char));
116
119
120
121
122
123
124
125
126
127}
◆ MoveMatrix()
314{
315
316
317
318
319
320
323}
◆ operator=()
326 {
327 long x,y;
331
332
333
334
335
336
337 return *this;
338}
const unsigned char * GetPointer(void)
Definition: basematrix.h:33
◆ Print()
void TBaseMatrix::Print |
( |
int |
type | ) |
|
208{
209 long xs,ys;
211 if (
type==0) {cout<<
"=========initial mas================"<<endl;}
212 else if (
type == 1) {cout<<
"=========current mas================"<<endl;}
213 for (long j=0; j<ys; j++) {
214 for (long i=0; i<xs; i++) {
216 }
217 cout<<endl;
218 }
219 cout<<"===================================="<<endl;
220}
virtual int GetElement(int type, long i, long j)=0
Int_t type
Definition: testBGReduction_By_ANN.C:15
◆ ResetShift()
131{
132
133
134
135
136
137
138
141}
◆ byteSize
long TBaseMatrix::byteSize |
|
protected |
◆ mas
unsigned char* TBaseMatrix::mas |
|
protected |
◆ shiftX
◆ shiftY
◆ xSize
◆ ySize
The documentation for this class was generated from the following files: