home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v1.zip / IBMCPP / IBMCLASS / IITER.H < prev    next >
Text File  |  1993-09-22  |  1KB  |  30 lines

  1. /*******************************************************************************
  2. *                                                                              *
  3. * COPYRIGHT:                                                                   *
  4. *   IBM C/C++ Tools Version 2.01 - Collection Class Library                    *
  5. *   Licensed Materials - Property of IBM                                       *
  6. *   (C) Copyright IBM Corporation 1992, 1993                                   *
  7. *   All Rights Reserved                                                        *
  8. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  9. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  10. *                                                                              *
  11. *******************************************************************************/
  12. #ifndef _IITER_H
  13. #define _IITER_H
  14.  
  15. #include <isynonym.hpp>
  16.  
  17. template < class Element >
  18. class IIterator {
  19. public:
  20.   virtual IBoolean applyTo (Element&) = 0;
  21. };
  22.  
  23. template < class Element >
  24. class IConstantIterator {
  25. public:
  26.   virtual IBoolean applyTo (Element const&) = 0;
  27. };
  28.  
  29. #endif
  30.