gecko-dev/xpcom/ds/nsSupportsArrayEnumerator.h

37 строки
910 B
C
Исходник Обычный вид История

1999-02-23 11:04:28 +03:00
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2012-05-21 15:12:37 +04:00
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
1999-02-23 11:04:28 +03:00
#ifndef nsSupportsArrayEnumerator_h___
#define nsSupportsArrayEnumerator_h___
#include "nsIEnumerator.h"
#include "mozilla/Attributes.h"
1999-02-23 11:04:28 +03:00
class nsISupportsArray;
class nsSupportsArrayEnumerator MOZ_FINAL : public nsIBidirectionalEnumerator {
1999-02-23 11:04:28 +03:00
public:
NS_DECL_ISUPPORTS
nsSupportsArrayEnumerator(nsISupportsArray* array);
// nsIEnumerator methods:
NS_DECL_NSIENUMERATOR
1999-02-23 11:04:28 +03:00
// nsIBidirectionalEnumerator methods:
NS_DECL_NSIBIDIRECTIONALENUMERATOR
1999-02-23 11:04:28 +03:00
private:
~nsSupportsArrayEnumerator();
1999-02-23 11:04:28 +03:00
protected:
nsISupportsArray* mArray;
PRInt32 mCursor;
};
#endif // __nsSupportsArrayEnumerator_h