ncdengine/engine/inc/catalogspair.inl
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2007-2008 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:   Contains CCatalogsPair class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "catalogsdebug.h"
       
    20 
       
    21 template<typename KeyType, typename ValueType>
       
    22 CCatalogsPair<KeyType, ValueType>::CCatalogsPair( KeyType* aKey, const ValueType& aValue ) :
       
    23     iKey( aKey ), iValue( aValue )
       
    24     {
       
    25     DASSERT( iKey )
       
    26     }
       
    27 
       
    28 template<typename KeyType, typename ValueType>   
       
    29 CCatalogsPair<KeyType, ValueType>::~CCatalogsPair()
       
    30     {
       
    31     DLTRACEIN((""));
       
    32     delete iKey;
       
    33     }    
       
    34     
       
    35     
       
    36 template<typename KeyType, typename ValueType>   
       
    37 const KeyType& CCatalogsPair<KeyType, ValueType>::Key() const
       
    38     {
       
    39     return *iKey;
       
    40     }
       
    41 
       
    42 
       
    43 template<typename KeyType, typename ValueType>   
       
    44 const ValueType& CCatalogsPair<KeyType, ValueType>::Value() const
       
    45     {
       
    46     return iValue;
       
    47     }
       
    48 
       
    49 
       
    50 template<typename KeyType, typename ValueType> 
       
    51 void CCatalogsPair<KeyType, ValueType>::SetValue( const ValueType& aValue )
       
    52     {
       
    53     iValue = aValue;
       
    54     }
       
    55