home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / iiamap.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  3.1 KB  |  106 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 _IIAMAP_H
  19. #define _IIAMAP_H
  20.  
  21. #include <iiacllct.h>
  22.  
  23. #pragma info (nocls, nocnd, nocns, nocnv, noext, nognr, novft)
  24. #pragma pack (4)
  25.  
  26. #pragma SOMAsDefault (off)
  27.  
  28. class IAMapImpl : public IACollectionImpl {
  29. public:
  30.  
  31.           ~IAMapImpl
  32.                             ();
  33.  
  34.   virtual
  35.   void     Antivalence      (IAMapImpl const&);
  36.  
  37.   virtual
  38.   void     AddAntivalence   (IAMapImpl const&,
  39.                              IAMapImpl const&); 
  40.  
  41.   virtual
  42.   void     AddDifference    (IAMapImpl const&,
  43.                              IAMapImpl const&); 
  44.  
  45.   virtual
  46.   void     AddIntersection  (IAMapImpl const&,
  47.                              IAMapImpl const&);
  48.  
  49.   virtual
  50.   void     AddUnion         (IAMapImpl const&,
  51.                              IAMapImpl const&);
  52.  
  53.   virtual
  54.   void     Difference       (IAMapImpl const&);
  55.  
  56.   virtual
  57.   void     Intersection     (IAMapImpl const&);
  58.  
  59.   virtual
  60.   void     Union            (IAMapImpl const&);
  61.  
  62.   virtual
  63.   IBoolean operator==       (IAMapImpl const&) const = 0;
  64.  
  65.   IBoolean operator!=       (IAMapImpl const&) const;
  66.  
  67. protected:
  68.  
  69.            IAMapImpl
  70.                             (Ops&);
  71.  
  72.   IBoolean LocateNext       (void const*, ICursorImpl&) const;
  73.  
  74.   IBoolean LocateNextElementWithKey
  75.                             (void const*, ICursorImpl&) const;
  76.  
  77.   INumber  NumberOfDifferentKeys
  78.                             () const;
  79.  
  80.   INumber  NumberOfElementsWithKey
  81.                             (void const*) const;
  82.  
  83.   INumber  NumberOfOccurrences
  84.                             (void const*) const;
  85.  
  86.   INumber  RemoveAllOccurrences
  87.                             (void const*);
  88.  
  89.   INumber  RemoveAllElementsWithKey
  90.                             (void const*);
  91.  
  92.   IBoolean SetToNextWithDifferentKey
  93.                             (ICursorImpl&) const;
  94.  
  95. private:
  96.  
  97.  
  98. };
  99.  
  100. #pragma SOMAsDefault (pop)
  101.  
  102. #pragma info (restore)
  103. #pragma pack ()
  104.  
  105. #endif
  106.