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

Last change on this file since 3520 was 3520, checked in by ansari, 17 years ago

Ajout/codage methode P2DArrayAdapter::MeanVal() pour les classes adapter heritant de P2DArrayAdapter, Reza 11/09/2008

File size: 1.2 KB
RevLine 
[585]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 :
[594]20 POTVectorAdapter(TVector<T>* v, bool ad=false);
21 virtual ~POTVectorAdapter();
22 virtual double Value(int i);
[585]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 :
[594]37 POTMatrixAdapter(TMatrix<T>* mtx, bool ad=false);
38 virtual ~POTMatrixAdapter();
39 virtual double Value(int ix, int iy);
[3520]40 virtual double MeanVal(int ix1, int ix2, int jy1, int jy2);
[585]41
42protected:
43 bool aDel;
44 TMatrix<T>* mMtx;
45};
46
47typedef POTMatrixAdapter<r_8> POMatrixAdapter;
48
49#endif
Note: See TracBrowser for help on using the repository browser.