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

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