inc/buffercontainers.inl
branchRCL_3
changeset 26 1221b68b8a5f
equal deleted inserted replaced
25:50c53e893c3f 26:1221b68b8a5f
       
     1 /*
       
     2 * Copyright (c) 2010 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 #ifndef   BUFFERCONTAINERS_INL
       
    18 #define   BUFFERCONTAINERS_INL
       
    19 
       
    20 // ---------------------------------------------------------------------------
       
    21 // DRM::CBufferContainer::NewL
       
    22 // ---------------------------------------------------------------------------
       
    23 //
       
    24 template <typename T>
       
    25 inline DRM::CBufferContainer<T>* DRM::CBufferContainer<T>::NewL()
       
    26 {
       
    27     CBufferContainer<T>* self( CBufferContainer<T>::NewLC() );
       
    28     CleanupStack::Pop( self );
       
    29     return self;
       
    30 }
       
    31 
       
    32 // ---------------------------------------------------------------------------
       
    33 // DRM::CBufferContainer::NewLC
       
    34 // ---------------------------------------------------------------------------
       
    35 //
       
    36 template <typename T>
       
    37 inline DRM::CBufferContainer<T>* DRM::CBufferContainer<T>::NewLC()
       
    38 {
       
    39     CBufferContainer<T>* self( new (ELeave) CBufferContainer<T>() );
       
    40     CleanupStack::PushL( self );
       
    41     return self;
       
    42 }
       
    43 
       
    44 // ---------------------------------------------------------------------------
       
    45 // DRM::CBufferContainer::CBufferContainer
       
    46 // ---------------------------------------------------------------------------
       
    47 //
       
    48 template <typename T>
       
    49 inline DRM::CBufferContainer<T>::CBufferContainer()
       
    50 {}
       
    51 
       
    52 // ---------------------------------------------------------------------------
       
    53 // DRM::CBufferContainer::~CBufferContainer
       
    54 // ---------------------------------------------------------------------------
       
    55 //
       
    56 template <typename T>
       
    57 inline DRM::CBufferContainer<T>::~CBufferContainer()
       
    58 {}
       
    59 
       
    60 
       
    61 #endif // BUFFERCONTAINERS_INL