home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / iaks.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  2.4 KB  |  85 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 _IAKS_H
  19. #define _IAKS_H
  20.  
  21. #include <iakey.h>
  22. #include <iiaks.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 IAKeySet :
  31.   public IAKeyCollection <Element, Key> {
  32.  
  33.   typedef  IAKeyCollection <Element, Key> Inherited;
  34.  
  35.   typedef  IAKeySetImpl Implementation;
  36.  
  37. public:
  38.  
  39.            IAKeySet
  40.                             (INotifier&);
  41.  
  42.           ~IAKeySet
  43.                             ();
  44.  
  45. protected:
  46.  
  47.            IAKeySet
  48.                             ();
  49.  
  50.            IAKeySet
  51.                             (IAKeySet <Element, Key> const&);
  52.  
  53.   IBoolean locateNextElementWithKey
  54.                             (Key const&, ICursor&) const;
  55.  
  56.   INumber  numberOfDifferentKeys
  57.                             () const;
  58.  
  59.   INumber  numberOfElementsWithKey
  60.                             (Key const&) const;
  61.  
  62.   INumber  removeAllElementsWithKey
  63.                             (Key const&);
  64.  
  65.   IBoolean setToNextWithDifferentKey
  66.                             (ICursor&) const;
  67.  
  68. private:
  69.  
  70.   static
  71.   Implementation&
  72.            ImplOf           (IAKeySet <Element, Key> const&);
  73.  
  74.  
  75. };
  76.  
  77. #include <iaks.inl>
  78.  
  79. #pragma SOMAsDefault (pop)
  80.  
  81. #pragma info (restore)
  82. #pragma pack ()
  83.  
  84. #endif
  85.