hti/HtiCommPlugins/HtiBtCommPlugin/BtEngine/inc/staticarrayc.inl
branchRCL_3
changeset 59 8ad140f3dd41
parent 0 a03f92240627
equal deleted inserted replaced
49:7fdc9a71d314 59:8ad140f3dd41
       
     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:  Inline method implementations of TStaticArrayC.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // CONSTANTS
       
    20 _LIT( KStaticArrayPanic,"StaticArray" );
       
    21 
       
    22 template <class T>
       
    23 inline const T& TStaticArrayC<T>::operator[]( TInt aIndex ) const
       
    24     {
       
    25     if ( ( aIndex >= iCount ) || ( aIndex < 0 ) )
       
    26         {
       
    27         Panic( EIndexOutOfBounds );
       
    28         }
       
    29 
       
    30     return  iArray[aIndex];
       
    31     }
       
    32 
       
    33 template <class T>
       
    34 inline void TStaticArrayC<T>::Panic( TPanicCode aPanicCode ) const
       
    35     {
       
    36     User::Panic( KStaticArrayPanic, aPanicCode );
       
    37     }
       
    38 
       
    39 // End of File