sl@0: // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #if defined(__PAGE_CACHE_STATS) sl@0: inline void CPageCache::TStats::Hit() sl@0: {++iRequests;} sl@0: inline void CPageCache::TStats::Miss() sl@0: {++iRequests;++iMisses;} sl@0: #endif sl@0: sl@0: inline TDblQueLink& TCachePage::Link() sl@0: {return this[-1].iLink;} sl@0: inline const TDblQueLinkBase& TCachePage::Link() const sl@0: {return this[-1].iLink;} sl@0: inline void TCachePage::Deque() sl@0: {Link().Deque();Link().iNext=Link().iPrev=&Link();} sl@0: inline TBool TCachePage::IsQued() const sl@0: {return Link().iNext!=&Link();} sl@0: inline void TCachePage::Reque(TDblQue& aQue) sl@0: {Link().Deque();aQue.AddLast(*this);} sl@0: sl@0: inline TStorePagePoolToken::TStorePagePoolToken(TStreamId aHead,TPageRef anAvail) sl@0: : iHead(aHead),iAvail(anAvail) sl@0: {} sl@0: sl@0: inline void RStorePagePool::CacheDeleteL(TPageRef aRef) sl@0: {TCachePagePool::DoDeleteL(aRef);}