|
Last change
on this file since 3098 was 594, checked in by ercodmgr, 26 years ago |
|
finalisation interfacage TMatrix, PixelMap - Reza 17/11/99
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | // This may look like C code, but it is really -*- C++ -*-
|
|---|
| 2 | // Adaptateurs pour TMatrix TVector du package Sophya
|
|---|
| 3 | // R. Ansari 1/99
|
|---|
| 4 | // LAL (Orsay) / IN2P3-CNRS DAPNIA/SPP (Saclay) / CEA
|
|---|
| 5 |
|
|---|
| 6 | #ifndef PITVMAAD_H_SEEN
|
|---|
| 7 | #define PITVMAAD_H_SEEN
|
|---|
| 8 |
|
|---|
| 9 | #include "machdefs.h"
|
|---|
| 10 | #include "parradapter.h"
|
|---|
| 11 |
|
|---|
| 12 | #include "tmatrix.h"
|
|---|
| 13 | #include "tvector.h"
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 | // Adaptateur de vecteurs SOPHYA a P1DArrayAdapter
|
|---|
| 17 | template <class T>
|
|---|
| 18 | class POTVectorAdapter : public P1DArrayAdapter {
|
|---|
| 19 | public :
|
|---|
| 20 | POTVectorAdapter(TVector<T>* v, bool ad=false);
|
|---|
| 21 | virtual ~POTVectorAdapter();
|
|---|
| 22 | virtual double Value(int i);
|
|---|
| 23 |
|
|---|
| 24 | protected:
|
|---|
| 25 | bool aDel;
|
|---|
| 26 | TVector<T>* mVec;
|
|---|
| 27 | };
|
|---|
| 28 |
|
|---|
| 29 | typedef POTVectorAdapter<r_8> POVectorAdapter;
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 | // Adaptateur de matrice SOPHYA a P2DArrayAdapter
|
|---|
| 33 | // Attention MatrixAdapter(X=Colonne, Y= Row) = Matrix(row, col)
|
|---|
| 34 | template <class T>
|
|---|
| 35 | class POTMatrixAdapter : public P2DArrayAdapter {
|
|---|
| 36 | public :
|
|---|
| 37 | POTMatrixAdapter(TMatrix<T>* mtx, bool ad=false);
|
|---|
| 38 | virtual ~POTMatrixAdapter();
|
|---|
| 39 | virtual double Value(int ix, int iy);
|
|---|
| 40 |
|
|---|
| 41 | protected:
|
|---|
| 42 | bool aDel;
|
|---|
| 43 | TMatrix<T>* mMtx;
|
|---|
| 44 | };
|
|---|
| 45 |
|
|---|
| 46 | typedef POTMatrixAdapter<r_8> POMatrixAdapter;
|
|---|
| 47 |
|
|---|
| 48 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.