Changeset 502 in Sophya for trunk/SophyaLib/NTools


Ignore:
Timestamp:
Oct 23, 1999, 8:52:44 PM (26 years ago)
Author:
ansari
Message:

intro du Realloc cmv 23/10/99

Location:
trunk/SophyaLib/NTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/NTools/tmatrix.h

    r501 r502  
    4242  inline void ReSize(uint_4 r,uint_4 c)  // Reallocation de place
    4343       {if(r==0||c==0) throw(SzMismatchError("TMatrix::ReSize r ou c==0\n"));
    44         mNr = r; mNc = c; mNDBlock.ReSize(r*c);}
     44        mNDBlock.ReSize(r*c); mNr = r; mNc = c;}
     45  inline void Realloc(uint_4 r,uint_4 c,bool force=false)
     46       {if(r==0||c==0) throw(SzMismatchError("TMatrix::Realloc r ou c==0\n"));
     47        mNDBlock.Realloc(r*c,force); mNr = r; mNc = c;}
    4548
    4649  // Informations pointeur/data
  • trunk/SophyaLib/NTools/tvector.h

    r501 r502  
    2323  // Gestion taille/Remplissage
    2424  inline void ReSize(uint_4 n) {TMatrix<T>::ReSize(n,1);} // Reallocation de place
     25  inline void Realloc(uint_4 n,bool force=false) {TMatrix<T>::Realloc(n,1,force);}
    2526
    2627  // Informations pointeur/data
Note: See TracChangeset for help on using the changeset viewer.