Bumping manifests a=b2g-bump
[gecko.git] / xpcom / ds / nsSupportsArrayEnumerator.h
blob2ae323ab7f5c60b84fbdd3fe6c4b3ae8bb15987d
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef nsSupportsArrayEnumerator_h___
7 #define nsSupportsArrayEnumerator_h___
9 #include "nsIEnumerator.h"
10 #include "mozilla/Attributes.h"
12 class nsISupportsArray;
14 class nsSupportsArrayEnumerator MOZ_FINAL : public nsIBidirectionalEnumerator
16 public:
17 NS_DECL_ISUPPORTS
19 explicit nsSupportsArrayEnumerator(nsISupportsArray* aArray);
21 // nsIEnumerator methods:
22 NS_DECL_NSIENUMERATOR
24 // nsIBidirectionalEnumerator methods:
25 NS_DECL_NSIBIDIRECTIONALENUMERATOR
27 private:
28 ~nsSupportsArrayEnumerator();
30 protected:
31 nsISupportsArray* mArray;
32 int32_t mCursor;
36 #endif // __nsSupportsArrayEnumerator_h