Changeset 3572 in Sophya for trunk/SophyaPI/PIext/pipodrw.cc


Ignore:
Timestamp:
Feb 7, 2009, 10:50:34 PM (17 years ago)
Author:
cmv
Message:

char* -> const char* pour regler les problemes de deprecated string const... + comparaison unsigned signed + suppression EVOL_PLANCK rz+cmv 07/02/2009

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/pipodrw.cc

    r3145 r3572  
    5656
    5757
    58 #ifdef SANS_EVOLPLANCK
    5958
    60 // ----------------------------------------------------------
    61 // Adaptateur de vecteurs Peida++ a P1DArrayAdapter
    62 // ----------------------------------------------------------
    63 
    64 /* --Methode-- */
    65 POVectorAdapter::POVectorAdapter(Vector* v, bool ad)
    66         : P1DArrayAdapter(v->NElts())
    67 {
    68 aDel = ad; mVec = v;
    69 }
    70 
    71 /* --Methode-- */
    72 POVectorAdapter::~POVectorAdapter()
    73 {
    74 if (aDel) delete mVec;
    75 }
    76 
    77 /* --Methode-- */
    78 double POVectorAdapter::Value(int i)
    79 {
    80 return((*mVec)(i));
    81 }
    82 
    83 ------- FIN SUPPRESSION */
    84 
    85 // ----------------------------------------------------------
    86 // Adaptateur de matrice Peida++ a P2DArrayAdapter
    87 // Attention  Y: Lignes (rows)  X: Colonnes
    88 // ----------------------------------------------------------
    89 
    90 /* --Methode-- */
    91 POMatrixAdapter::POMatrixAdapter(Matrix* mtx, bool ad)
    92         : P2DArrayAdapter(mtx->NCol(), mtx->NRows())
    93 {
    94 aDel = ad; mMtx = mtx;
    95 }
    96 
    97 /* --Methode-- */
    98 POMatrixAdapter::~POMatrixAdapter()
    99 {
    100 if (aDel)  delete mMtx;
    101 }
    102 
    103 /* --Methode-- */
    104 double POMatrixAdapter::Value(int ix, int iy)
    105 {
    106 // Attention MatrixAdapter(X=Colonne, Y= Row) = Matrix(row, col) 
    107 return((*mMtx)(iy, ix));
    108 }
    109 
    110 #endif   // SANS_EVOLPLANCK
    111 
Note: See TracChangeset for help on using the changeset viewer.