Changeset 2657 in Sophya for trunk/SophyaLib/BaseTools/ndatablock.cc
- Timestamp:
- Apr 5, 2005, 5:37:54 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BaseTools/ndatablock.cc
r2615 r2657 10 10 #include "pexceptions.h" 11 11 #include "ndatablock.h" 12 13 /* ---- Pour renvoyer un identificateur unique ---- */ 14 static uint_8 _ndrefid_ = 0; // Identificateur de NDREF cree 15 uint_8 AnyDataObj::getUniqueId() 16 { 17 _ndrefid_++; 18 return ( _ndrefid_ ); 19 } 12 20 13 21 /*! … … 310 318 */ 311 319 312 static uint_8 _ndrefid_ = 0; // Identificateur de NDREF cree313 320 314 321 template <class T> … … 327 334 mSRef = new NDREF; 328 335 mSRef->nref = 1; 329 mSRef->dsid = ++_ndrefid_;336 mSRef->dsid = AnyDataObj::getUniqueId(); 330 337 if(data) mSRef->data = data; 331 338 else {mSRef->data = new T[n]; if (zero) memset(mSRef->data,0,n*sizeof(T));}
Note:
See TracChangeset
for help on using the changeset viewer.