home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional Developers Kit 1992 November / Disc01 / Disc01.mdf / runnable / ibmc / ibmclass / iakeyset.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-26  |  734 b   |  34 lines

  1. /* Copyright (c) IBM Corp. 1992 */
  2.  
  3. #ifndef _IAKEYSET_H
  4. #define _IAKEYSET_H
  5.  
  6. #include <iglobals.h>
  7. #include <icursor.h>
  8. #include <iakey.h>
  9.  
  10. template < class Element, class Key >
  11. class IAKeySet : public virtual IAKeyCollection < Element, Key > {
  12. public:
  13.  
  14. protected:
  15.  
  16.    INumber        numberOfElementsWithKey     (Key const&) const;
  17.  
  18.    Boolean        locateNextElementWithKey    (Key const&,
  19.                                                ICursor&) const;
  20.  
  21.    INumber        removeAllElementsWithKey    (Key const&);
  22.  
  23.    INumber        numberOfDifferentKeys       () const;
  24.  
  25.    Boolean        setToNextWithDifferentKey   (ICursor&) const;
  26.  
  27. };
  28.  
  29. #ifdef __IBMCPP__
  30. #include <iakeyset.c>
  31. #endif
  32.  
  33. #endif
  34.