Ignore:
Timestamp:
Feb 5, 2007, 10:02:52 AM (19 years ago)
Author:
ansari
Message:

Correction bug ds swsegdb.h (non ecriture buffer avec 1 seul buffer-relu) + ajout methode NDataBlock::RenewObjId() pour re-ecriture PPF , Reza 05/02/2007

File:
1 edited

Legend:

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

    r2657 r3172  
    8888  void Realloc(size_t nnew,bool force=false);
    8989 
     90  //! Calls Delete() to set the size to zero (The memory is freed if last referenced structure)
     91  inline void Dealloc() { Delete(); }
     92
    9093  // Informations pointeur/data
    9194  //! Return pointer on data structure.
     
    146149  NDataBlock<T> Div(const NDataBlock<T>& b) const;
    147150
     151  //! Return thye associated object Id (or DataRef Id)
    148152  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 
    149158
    150159protected:
Note: See TracChangeset for help on using the changeset viewer.