Ignore:
Timestamp:
Jul 26, 2004, 7:31:26 PM (21 years ago)
Author:
ansari
Message:

Modifs constructeur et resize NDataBlock pour ajout flag de controle de mise a zero des elements - Reza 26 Juillet 2004

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/BaseTools/ndatablock.cc

    r2322 r2565  
    7171///////////////////////////
    7272
    73 //! Constructor for \b n datas
    74 template <class T>
    75 NDataBlock<T>::NDataBlock(size_t n)
     73//! Constructor for \b n datas. if \b zero=true, filled with zeros
     74template <class T>
     75NDataBlock<T>::NDataBlock(size_t n, bool fzero)
    7676// Createur d'une structure de "n" donnees
    7777: mSz(0), mSRef(NULL), mIsTemp(false)
     
    8080  cout<<"?_NDataBlock::NDataBlock("<<this<<",n="<<n<<")"<<endl;
    8181
    82 Alloc(n, NULL, NULL, true);   // allocation et mise a zero
     82Alloc(n, NULL, NULL, fzero);   // allocation et mise a zero
    8383}
    8484
Note: See TracChangeset for help on using the changeset viewer.