Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 1990 Microsoft Corporation
  3. Module Name:
  4. iterator.hxx
  5. Abstract:
  6. This module contains the declaration for the abstract ITERATOR class.
  7. ITERATORS are used to iterate over a CONTAINER allowing for multiple,
  8. simultaneous readers. ITERATORs maintain the currency needed to perform
  9. an iteration. This includes the current OBJECT in the CONTAINER and the
  10. currency needed to get the next or previous OBJECT. ITERATORs also
  11. provide the capability of wrapping when the end or begin of the container
  12. is reached.
  13. Environment:
  14. ULIB, User Mode
  15. --*/
  16. #if ! defined( _ITERATOR_ )
  17. #define _ITERATOR_
  18. DECLARE_CLASS( ITERATOR );
  19. class ITERATOR : public OBJECT {
  20. public:
  21. VIRTUAL
  22. ~ITERATOR(
  23. );
  24. VIRTUAL
  25. POBJECT
  26. FindNext(
  27. IN PCOBJECT Key
  28. );
  29. VIRTUAL
  30. POBJECT
  31. GetCurrent(
  32. ) PURE;
  33. VIRTUAL
  34. POBJECT
  35. GetNext(
  36. ) PURE;
  37. VIRTUAL
  38. POBJECT
  39. GetPrevious(
  40. ) PURE;
  41. VIRTUAL
  42. VOID
  43. Reset(
  44. ) PURE;
  45. protected:
  46. DECLARE_CONSTRUCTOR( ITERATOR );
  47. };
  48. #endif // _ITERATOR_