home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / iakss.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  2.6 KB  |  86 lines

  1. /**********************************************************************
  2. *                                                                     *
  3. *  IBM(R) VisualAge(TM) for C++ for Windows(R), Version 3.5           *
  4. *                                                                     *
  5. *  PID: 5622-880                                                      *
  6. *  - Licensed Material - Program-Property of IBM                      *
  7. *  (C) Copyright IBM Corp. 1991, 1995 - All Right Reserved.           *
  8. *                                                                     *
  9. *  US Government Users Restricted Rights - Use, duplication or        *
  10. *  disclosure restricted by GSA ADP Schedule Contract with IBM Corp.  *
  11. *                                                                     *
  12. *  VisualAge, and IBM are trademarks or registered trademarks of      *
  13. *  International Business Machines Corporation.                       *
  14. *  Windows is a registered trademark of Microsoft Corporation.        *
  15. *                                                                     *
  16. **********************************************************************/
  17.  
  18. #ifndef _IAKSS_H
  19. #define _IAKSS_H
  20.  
  21. #include <iaksrt.h>
  22. #include <iiakss.h>
  23.  
  24. #pragma info (nocls, nocnd, nocns, nocnv, noext, nognr, novft)
  25. #pragma pack (4)
  26.  
  27. #pragma SOMAsDefault (off)
  28.  
  29. template <class Element, class Key>
  30. class IAKeySortedSet :
  31.   public IAKeySortedCollection <Element, Key> {
  32.  
  33.   typedef  IAKeySortedCollection <Element, Key> Inherited;
  34.  
  35.   typedef  IAKeySortedSetImpl Implementation;
  36.  
  37. public:
  38.  
  39.            IAKeySortedSet
  40.                             (INotifier&);
  41.  
  42.           ~IAKeySortedSet
  43.                             ();
  44.  
  45.   long     compare          (IAKeySortedSet <Element, Key> const&,
  46.                              long (*comparisonFunction)
  47.                               (Element const&, Element const&)) const;
  48.  
  49. protected:
  50.  
  51.            IAKeySortedSet
  52.                             ();
  53.  
  54.            IAKeySortedSet
  55.                             (IAKeySortedSet <Element, Key> const&);
  56.  
  57.   INumber  numberOfDifferentKeys
  58.                             () const;
  59.  
  60.   INumber  numberOfElementsWithKey
  61.                             (Key const&) const;
  62.  
  63.   INumber  removeAllElementsWithKey
  64.                             (Key const&);
  65.  
  66.   IBoolean setToNextWithDifferentKey
  67.                             (ICursor&) const;
  68.  
  69. private:
  70.  
  71.   static
  72.   Implementation&
  73.            ImplOf           (IAKeySortedSet <Element, Key> const&);
  74.  
  75.  
  76. };
  77.  
  78. #include <iakss.inl>
  79.  
  80. #pragma SOMAsDefault (pop)
  81.  
  82. #pragma info (restore)
  83. #pragma pack ()
  84.  
  85. #endif
  86.