home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c221 / 6.ddi / MWHC.006 / N1 < prev    next >
Encoding:
Text File  |  1992-06-07  |  1.3 KB  |  48 lines

  1. #ifndef __RWITERATOR_H__
  2. #define __RWITERATOR_H__
  3. pragma push_align_members(64);
  4.  
  5. /*
  6.  * Abstract base class for Iterator classes.
  7.  *
  8.  * $Header:   E:/vcs/rw/iterator.h_v   1.2   18 Feb 1992 09:54:24   KEFFER  $
  9.  *
  10.  ****************************************************************************
  11.  *
  12.  * Rogue Wave 
  13.  * P.O. Box 2328
  14.  * Corvallis, OR 97339
  15.  * Voice: (503) 754-3010    FAX: (503) 757-6650
  16.  *
  17.  * Copyright (C) 1989, 1990, 1991. This software is subject to copyright 
  18.  * protection under the laws of the United States and other countries.
  19.  *
  20.  ***************************************************************************
  21.  *
  22.  * $Log:   E:/vcs/rw/iterator.h_v  $
  23.  * 
  24.  *    Rev 1.2   18 Feb 1992 09:54:24   KEFFER
  25.  * 
  26.  *    Rev 1.1   28 Oct 1991 09:08:18   keffer
  27.  * Changed inclusions to <rw/xxx.h>
  28.  * 
  29.  *    Rev 1.0   28 Jul 1991 08:15:34   keffer
  30.  * Tools.h++ V4.0.5 PVCS baseline version
  31.  *
  32.  */
  33.  
  34. #include "rw/defs.h"
  35.  
  36. class RWExport RWCollectable;
  37.  
  38. class RWExport RWIterator {
  39. public:
  40.   virtual RWCollectable*    findNext(const RWCollectable*) = 0; // Find next matching item
  41.   virtual RWCollectable*    key() const = 0;          // Return current key
  42.   virtual RWCollectable*    operator()() = 0;          // Advance iterator
  43.   virtual void        reset() = 0;
  44. };      
  45.  
  46. pragma pop_align_members();
  47. #endif /* __RWITERATOR_H__ */
  48.