crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianUtils/TextUtilities/Readers/Filters/AsyncTextReaderFilterCollectionEnumerator.cs
equal
deleted
inserted
replaced
|
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: |
|
15 * |
|
16 */ |
|
17 using System; |
|
18 using System.IO; |
|
19 using System.Text; |
|
20 using System.Threading; |
|
21 using System.Collections; |
|
22 |
|
23 namespace SymbianUtils |
|
24 { |
|
25 public class AsyncTextReaderFilterCollectionEnumerator : IEnumerator |
|
26 { |
|
27 #region Constructors |
|
28 public AsyncTextReaderFilterCollectionEnumerator( AsyncTextReaderFilterCollection aCollection ) |
|
29 { |
|
30 iCollection = aCollection; |
|
31 } |
|
32 #endregion |
|
33 |
|
34 #region IEnumerator Members |
|
35 public void Reset() |
|
36 { |
|
37 iCurrentIndex = -1; |
|
38 } |
|
39 |
|
40 public object Current |
|
41 { |
|
42 get |
|
43 { |
|
44 return (AsyncTextReaderFilter) iCollection[ iCurrentIndex ]; |
|
45 } |
|
46 } |
|
47 |
|
48 public bool MoveNext() |
|
49 { |
|
50 return ( ++iCurrentIndex < iCollection.Count ); |
|
51 } |
|
52 #endregion |
|
53 |
|
54 #region Data members |
|
55 private readonly AsyncTextReaderFilterCollection iCollection; |
|
56 private int iCurrentIndex = -1; |
|
57 #endregion |
|
58 } |
|
59 } |