persistentstorage/store/UPAGE/UP_STD.INL
changeset 0 08ec8eefde2f
equal deleted inserted replaced
-1:000000000000 0:08ec8eefde2f
       
     1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #if defined(__PAGE_CACHE_STATS)
       
    17 inline void CPageCache::TStats::Hit()
       
    18 	{++iRequests;}
       
    19 inline void CPageCache::TStats::Miss()
       
    20 	{++iRequests;++iMisses;}
       
    21 #endif
       
    22 
       
    23 inline TDblQueLink& TCachePage::Link()
       
    24 	{return this[-1].iLink;}
       
    25 inline const TDblQueLinkBase& TCachePage::Link() const
       
    26 	{return this[-1].iLink;}
       
    27 inline void TCachePage::Deque()
       
    28 	{Link().Deque();Link().iNext=Link().iPrev=&Link();}
       
    29 inline TBool TCachePage::IsQued() const
       
    30 	{return Link().iNext!=&Link();}
       
    31 inline void TCachePage::Reque(TDblQue<TCachePage>& aQue)
       
    32 	{Link().Deque();aQue.AddLast(*this);}
       
    33 
       
    34 inline TStorePagePoolToken::TStorePagePoolToken(TStreamId aHead,TPageRef anAvail)
       
    35 	: iHead(aHead),iAvail(anAvail)
       
    36 	{}
       
    37 
       
    38 inline void RStorePagePool::CacheDeleteL(TPageRef aRef)
       
    39 	{TCachePagePool::DoDeleteL(aRef);}