home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / iaequal.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 _IAEQUAL_H
  19. #define _IAEQUAL_H
  20.  
  21. #include <iacllct.h>
  22.  
  23. #pragma info (nocls, nocnd, nocns, nocnv, noext, nognr, novft)
  24. #pragma pack (4)
  25.  
  26. #pragma SOMAsDefault (off)
  27.  
  28. template <class Element>
  29. class IAEqualityCollection : public virtual IACollection <Element> {
  30.  
  31.   typedef  IACollectionImpl Implementation;
  32.  
  33. public:
  34.  
  35.            IAEqualityCollection
  36.                             (INotifier&);
  37.  
  38.           ~IAEqualityCollection
  39.                             ();
  40.  
  41.   IBoolean contains         (Element const&) const;
  42.  
  43.   IBoolean containsAllFrom  (IACollection <Element> const&) const;
  44.  
  45.   IBoolean locate           (Element const&, ICursor&) const;
  46.  
  47.   IBoolean locateOrAdd      (Element const&);
  48.  
  49.   IBoolean locateOrAdd      (Element const&, ICursor&);
  50.  
  51.   IBoolean locateNext       (Element const&, ICursor&) const;
  52.  
  53.   INumber  numberOfOccurrences
  54.                             (Element const&) const;
  55.  
  56.   IBoolean remove           (Element const&);
  57.  
  58.   INumber  removeAllOccurrences
  59.                             (Element const&);
  60.  
  61. protected:
  62.  
  63.            IAEqualityCollection
  64.                             ();
  65.  
  66.            IAEqualityCollection
  67.                             (IAEqualityCollection <Element> const&);
  68.  
  69. private:
  70.  
  71.   static
  72.   Implementation&
  73.            ImplOf           (IAEqualityCollection <Element> const&);
  74.  
  75.  
  76. };
  77.  
  78. #pragma SOMAsDefault (pop)
  79.  
  80. #include <iaequal.inl>
  81.  
  82. #pragma info (restore)
  83. #pragma pack ()
  84.  
  85. #endif
  86.