source: Sophya/trunk/SophyaPI/PIext/pitvmaad.h@ 2268

Last change on this file since 2268 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
17template <class T>
18class POTVectorAdapter : public P1DArrayAdapter {
19public :
20 POTVectorAdapter(TVector<T>* v, bool ad=false);
21 virtual ~POTVectorAdapter();
22 virtual double Value(int i);
23
24protected:
25 bool aDel;
26 TVector<T>* mVec;
27};
28
29typedef POTVectorAdapter<r_8> POVectorAdapter;
30
31
32// Adaptateur de matrice SOPHYA a P2DArrayAdapter
33// Attention MatrixAdapter(X=Colonne, Y= Row) = Matrix(row, col)
34template <class T>
35class POTMatrixAdapter : public P2DArrayAdapter {
36public :
37 POTMatrixAdapter(TMatrix<T>* mtx, bool ad=false);
38 virtual ~POTMatrixAdapter();
39 virtual double Value(int ix, int iy);
40
41protected:
42 bool aDel;
43 TMatrix<T>* mMtx;
44};
45
46typedef POTMatrixAdapter<r_8> POMatrixAdapter;
47
48#endif
Note: See TracBrowser for help on using the repository browser.