home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / iabag.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  2.8 KB  |  97 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 _IABAG_H
  19. #define _IABAG_H
  20.  
  21. #include <iaequal.h>
  22. #include <iiabag.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>
  30. class IABag :
  31.   public IAEqualityCollection <Element> {
  32.  
  33.   typedef  IAEqualityCollection <Element> Inherited;
  34.  
  35.   typedef  IABagImpl Implementation;
  36.  
  37. public:
  38.  
  39.            IABag
  40.                             (INotifier&);
  41.  
  42.           ~IABag
  43.                             ();
  44.  
  45.   void     addDifference    (IABag <Element> const&,
  46.                              IABag <Element> const&); 
  47.  
  48.   void     addIntersection  (IABag <Element> const&,
  49.                              IABag <Element> const&);
  50.  
  51.   void     addUnion         (IABag <Element> const&,
  52.                              IABag <Element> const&);
  53.  
  54.   void     differenceWith   (IABag <Element> const&);
  55.  
  56.   void     intersectionWith (IABag <Element> const&);
  57.  
  58.   INumber  numberOfDifferentElements
  59.                             () const;
  60.  
  61.   IBoolean setToNextDifferentElement
  62.                             (ICursor&) const;
  63.  
  64.   void     unionWith        (IABag <Element> const&);
  65.  
  66.   IBoolean operator==       (IABag
  67.                               <Element> const&) const;
  68.  
  69.   IBoolean operator!=       (IABag
  70.                               <Element> const&) const;
  71.  
  72. protected:
  73.  
  74.            IABag
  75.                             ();
  76.  
  77.            IABag
  78.                             (IABag <Element> const&);
  79.  
  80. private:
  81.  
  82.   static
  83.   Implementation&
  84.            ImplOf           (IABag <Element> const&);
  85.  
  86.  
  87. };
  88.  
  89. #include <iabag.inl>
  90.  
  91. #pragma SOMAsDefault (pop)
  92.  
  93. #pragma info (restore)
  94. #pragma pack ()
  95.  
  96. #endif
  97.