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