home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v1.zip / IBMCPP / IBMCLASS / IAKEYSET.H < prev    next >
Text File  |  1993-09-22  |  2KB  |  45 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 _IAKEYSET_H
  13. #define _IAKEYSET_H
  14.  
  15. #include <iglobals.h>
  16. #include <icursor.h>
  17. #include <iakey.h>
  18.  
  19. template < class Element, class Key >
  20. class IAKeySet : public virtual IAKeyCollection < Element, Key > {
  21. public:
  22.  
  23. protected:
  24.  
  25.    INumber        numberOfElementsWithKey     (Key const&) const;
  26.  
  27.    IBoolean       locateNextElementWithKey    (Key const&,
  28.                                                ICursor&) const;
  29.  
  30.    INumber        removeAllElementsWithKey    (Key const&);
  31.  
  32.    INumber        numberOfDifferentKeys       () const;
  33.  
  34.    IBoolean       setToNextWithDifferentKey   (ICursor&) const;
  35.  
  36. };
  37.  
  38. #ifdef __IBMCPP__
  39. #ifndef __TEMPINC__
  40. #include <iakeyset.c>
  41. #endif
  42. #endif
  43.  
  44. #endif
  45.