Changeset 2695 in Sophya for trunk/SophyaLib/BaseTools/swsegdb.h
- Timestamp:
- Apr 26, 2005, 6:20:21 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BaseTools/swsegdb.h
r2692 r2695 120 120 mSRef = a.mSRef; 121 121 mSRef->nref++; 122 return *this; 122 123 } 123 124 124 //! Return the position tag (swap position) table125 std::vector< int_8 > & GetSwapPosTagTable() const126 { 125 //! Empties all memory buffers to swap stream 126 void SwapOutBuffer() const 127 { 127 128 if ((mSRef->bidx >= 0) && !mSRef->fgcstbuff) { 128 129 int_8 nswp = mSRef->swapper->WriteToSwap(mSRef->buff, mSRef->segsize, mSRef->bidx, … … 130 131 mSRef->swp[mSRef->bidx] = nswp; 131 132 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(); 133 141 return mSRef->swp; 134 142 }
Note:
See TracChangeset
for help on using the changeset viewer.