Changeset 2695 in Sophya for trunk/SophyaLib/BaseTools/swsegdb.h


Ignore:
Timestamp:
Apr 26, 2005, 6:20:21 PM (20 years ago)
Author:
ansari
Message:

1/ Declaration des classes PPF_TPointer_IO< X > avec X=int_1/2/4/8 r_4 ...
remis ds ppftpointerio.h - corps de fonction laisse ds .cc
2/ Ajout de la methode SwapOutBuffer() ds SwSegDataBlock<T>
3/ Ajout du constructeur par defaut ds PPFDataSwapper

Reza 26/4/2005

File:
1 edited

Legend:

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

    r2692 r2695  
    120120    mSRef = a.mSRef;
    121121    mSRef->nref++;
     122    return *this;
    122123  }
    123124
    124   //! Return the position tag (swap position) table
    125   std::vector< int_8 > & GetSwapPosTagTable() const
    126   { 
     125  //! Empties all memory buffers to swap stream
     126  void SwapOutBuffer() const
     127  {
    127128    if ((mSRef->bidx >= 0) && !mSRef->fgcstbuff) {
    128129      int_8 nswp = mSRef->swapper->WriteToSwap(mSRef->buff, mSRef->segsize, mSRef->bidx,
     
    130131      mSRef->swp[mSRef->bidx] = nswp;
    131132      mSRef->fgwp[mSRef->bidx] = true;
    132     }
     133      mSRef->bidx = -1;
     134      mSRef->fgcstbuff = true; 
     135   }
     136  }
     137  //! Return the position tag (swap position) table, after call to SwapOutBuffer()
     138  std::vector< int_8 > & GetSwapPosTagTable() const
     139  {
     140    SwapOutBuffer();
    133141    return  mSRef->swp;
    134142  }
Note: See TracChangeset for help on using the changeset viewer.