hgcacheproxymodel/src/hgbuffermanager.cpp
changeset 20 a60f8b6b1d32
parent 17 a10844a9914d
equal deleted inserted replaced
17:a10844a9914d 20:a60f8b6b1d32
   315     }else if (pos<mBufferPosition) { //if we have inserted item before buffer, we should move buffer.
   315     }else if (pos<mBufferPosition) { //if we have inserted item before buffer, we should move buffer.
   316         mBufferPosition++;
   316         mBufferPosition++;
   317     }
   317     }
   318 }
   318 }
   319 
   319 
       
   320 bool HgBufferManager::isCached(int idx) const
       
   321 {
       
   322     return ((idx>=mBufferPosition) && (idx<mBufferPosition+mBufferSize));
       
   323 }
   320 //eof
   324 //eof