home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / iicbag.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  2.5 KB  |  84 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 _IICBAG_H
  19. #define _IICBAG_H
  20.  
  21. #include <iiabag.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 CInherited>
  29. class ICBagImpl : public CInherited {
  30. public:
  31.  
  32.   typedef  CInherited::Ops Ops;
  33.  
  34.            ICBagImpl
  35.                             (Ops&, INumber);
  36.  
  37.            ICBagImpl
  38.                             (Ops&, ICBagImpl
  39.                                     <CInherited> const&);
  40.  
  41.   IBoolean Add              (void const*, ICursorImpl&);
  42.  
  43.   void     AddAllFrom       (IACollectionImpl const&);
  44.  
  45.   void*    Any              () const;
  46.  
  47.   void*    ElementAt        (ICursorImpl const&) const;
  48.  
  49.   IBoolean Locate           (void const*, ICursorImpl&) const;
  50.  
  51.   IBoolean LocateNext       (void const*, ICursorImpl&) const;
  52.  
  53.   IBoolean LocateOrAdd      (void const*, ICursorImpl&);
  54.  
  55.   void     RemoveAt         (ICursorImpl&);
  56.  
  57.   void     ReplaceAt        (ICursorImpl const& cursor,
  58.                              void const*);
  59.  
  60.   IBoolean SetToFirst       (ICursorImpl&) const;
  61.  
  62.   IBoolean SetToNext        (ICursorImpl&) const;
  63.  
  64.   IBoolean SetToNextDifferentElement
  65.                             (ICursorImpl&) const;
  66.  
  67. protected:
  68.  
  69. private:
  70.  
  71.  
  72. };
  73.  
  74. #pragma SOMAsDefault (pop)
  75.  
  76. #if ! defined (__TEMPINC__)
  77. #include <iicbag.c>
  78. #endif
  79.  
  80. #pragma info (restore)
  81. #pragma pack ()
  82.  
  83. #endif
  84.