equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2002 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: Command stack for WBXML. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __NSMLSTACK_H__ |
|
20 #define __NSMLSTACK_H__ |
|
21 |
|
22 // ------------------------------------------------------------------------------------------------ |
|
23 // Includes |
|
24 // ------------------------------------------------------------------------------------------------ |
|
25 |
|
26 #include <e32base.h> |
|
27 |
|
28 // ------------------------------------------------------------------------------------------------ |
|
29 // CNSmlStack |
|
30 // ------------------------------------------------------------------------------------------------ |
|
31 |
|
32 template <class T> |
|
33 class CNSmlStack : public CBase |
|
34 { |
|
35 public: |
|
36 static inline CNSmlStack* NewL(); |
|
37 inline ~CNSmlStack(); |
|
38 |
|
39 inline T* Pop(); |
|
40 inline T* Top(); |
|
41 inline void Push( T* aItem ); |
|
42 inline TInt Count(); |
|
43 inline void Reset(); |
|
44 inline void ResetAndDestroy(); |
|
45 |
|
46 protected: |
|
47 inline CNSmlStack<T>(); |
|
48 |
|
49 private: |
|
50 RPointerArray<T>* iStack; |
|
51 }; |
|
52 |
|
53 #include "nsmlstack.inl" |
|
54 |
|
55 #endif // __NSMLSTACK_H__ |