Changeset 3172 in Sophya for trunk/SophyaLib/BaseTools/ndatablock.h
- Timestamp:
- Feb 5, 2007, 10:02:52 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BaseTools/ndatablock.h
r2657 r3172 88 88 void Realloc(size_t nnew,bool force=false); 89 89 90 //! Calls Delete() to set the size to zero (The memory is freed if last referenced structure) 91 inline void Dealloc() { Delete(); } 92 90 93 // Informations pointeur/data 91 94 //! Return pointer on data structure. … … 146 149 NDataBlock<T> Div(const NDataBlock<T>& b) const; 147 150 151 //! Return thye associated object Id (or DataRef Id) 148 152 inline uint_8 DRefId() { return mSRef->dsid; } 153 //! assign a new object Id (or DataRef Id) - useful for PPF write operations 154 inline void RenewDRefId() { mSRef->dsid = AnyDataObj::getUniqueId(); } 155 //! assign a new object Id (or DataRef Id) - useful for PPF write operations 156 inline void RenewObjId() { mSRef->dsid = AnyDataObj::getUniqueId(); } 157 149 158 150 159 protected:
Note:
See TracChangeset
for help on using the changeset viewer.