uiresources_plat/cdl_api/inc/CdlRefs.inl
changeset 0 05e9090e2422
equal deleted inserted replaced
-1:000000000000 0:05e9090e2422
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 inline const TCdlRef& CCdlRefs::TIterator::operator*() const
       
    19 	{
       
    20 	return iRefs[iIndex];
       
    21 	}
       
    22 
       
    23 inline const TCdlRef* CCdlRefs::TIterator::operator->() const
       
    24 	{
       
    25 	return &iRefs[iIndex];
       
    26 	}
       
    27 
       
    28 inline CCdlRefs::TIterator& CCdlRefs::TIterator::operator=(const TIterator& aOther)
       
    29 	{
       
    30 	Mem::Copy(this, &aOther, sizeof(*this));
       
    31 	return *this;
       
    32 	}
       
    33 
       
    34 inline TBool CCdlRefs::TIterator::operator==(const TIterator& aOther) const
       
    35 	{
       
    36 	return iIndex == aOther.iIndex && &iRefs == &aOther.iRefs;
       
    37 	}
       
    38 
       
    39 inline TBool CCdlRefs::TIterator::operator!=(const TIterator& aOther) const
       
    40 	{
       
    41 	return iIndex != aOther.iIndex || &iRefs != &aOther.iRefs;
       
    42 	}
       
    43 
       
    44 inline CCdlRefs::TIterator CCdlRefs::TIterator::operator++(TInt)
       
    45 	{
       
    46 	TIterator old = *this;
       
    47 	++(*this);
       
    48 	return old;
       
    49 	}
       
    50