bintools/rcomp/src/RCSTACK.CPP
changeset 0 044383f39525
equal deleted inserted replaced
-1:000000000000 0:044383f39525
       
     1 /*
       
     2 * Copyright (c) 1997-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 the License "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 
       
    19 #include <assert.h>
       
    20 #include "RCSTACK.H"
       
    21 
       
    22 // ResourceItemArrayStack
       
    23 
       
    24 ResourceItemArrayStack::ResourceItemArrayStack()
       
    25 	{}
       
    26 
       
    27 ResourceItemArrayStack::~ResourceItemArrayStack()
       
    28 	{
       
    29 	assert( IsEmpty());
       
    30 	}
       
    31 
       
    32 ResourceItemArray * ResourceItemArrayStack::Pop()
       
    33 	{
       
    34 	return ( ResourceItemArray *) Stack::Pop();
       
    35 	}
       
    36 
       
    37 void ResourceItemArrayStack::Push( ResourceItemArray * pNewItem)
       
    38 	{
       
    39 	Stack::Push( pNewItem);
       
    40 	}
       
    41 
       
    42 ResourceItemArray * ResourceItemArrayStack::Peek()
       
    43 	{
       
    44 	return ( ResourceItemArray *) Stack::Peek();
       
    45 	}
       
    46 
       
    47 // StructResourceItemStack
       
    48 
       
    49 StructResourceItemStack::StructResourceItemStack()
       
    50 	{}
       
    51 
       
    52 StructResourceItemStack::~StructResourceItemStack()
       
    53 	{
       
    54 	assert(IsEmpty());
       
    55 	}
       
    56 
       
    57 ResourceItem * StructResourceItemStack::Pop()
       
    58 	{
       
    59 	return (ResourceItem*)Stack::Pop();
       
    60 	}
       
    61 
       
    62 void StructResourceItemStack::Push( ResourceItem * pNewItem)
       
    63 	{
       
    64 	Stack::Push( pNewItem);
       
    65 	}
       
    66 
       
    67 ResourceItem * StructResourceItemStack::Peek()
       
    68 	{
       
    69 	return ( ResourceItem *) Stack::Peek();
       
    70 	}