home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / iaksb.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  2.3 KB  |  74 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 _IAKSB_H
  19. #define _IAKSB_H
  20.  
  21. #include <iaksrt.h>
  22. #include <iiaksb.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 IAKeySortedBag :
  31.   public IAKeySortedCollection <Element, Key> {
  32.  
  33.   typedef  IAKeySortedCollection <Element, Key> Inherited;
  34.  
  35.   typedef  IAKeySortedBagImpl Implementation;
  36.  
  37. public:
  38.  
  39.            IAKeySortedBag
  40.                             (INotifier&);
  41.  
  42.           ~IAKeySortedBag
  43.                             ();
  44.  
  45.   long     compare          (IAKeySortedBag <Element, Key> const&,
  46.                              long (*comparisonFunction)
  47.                               (Element const&, Element const&)) const;
  48.  
  49. protected:
  50.  
  51.            IAKeySortedBag
  52.                             ();
  53.  
  54.            IAKeySortedBag
  55.                             (IAKeySortedBag <Element, Key> const&);
  56.  
  57. private:
  58.  
  59.   static
  60.   Implementation&
  61.            ImplOf           (IAKeySortedBag <Element, Key> const&);
  62.  
  63.  
  64. };
  65.  
  66. #include <iaksb.inl>
  67.  
  68. #pragma SOMAsDefault (pop)
  69.  
  70. #pragma info (restore)
  71. #pragma pack ()
  72.  
  73. #endif
  74.