home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / iibaghsh.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  2.8 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 _IIBAGHSH_H
  19. #define _IIBAGHSH_H
  20.  
  21. #include <iibagkb.h>
  22.  
  23.  
  24. #include <iikbhsh.h>
  25.  
  26.  
  27. #pragma info (nocls, nocnd, nocns, nocnv, noext, nognr, novft)
  28. #pragma pack (4)
  29.  
  30. #pragma SOMAsDefault (off)
  31.  
  32. typedef IBagOnKeyBagImpl
  33.          <IKeyBagAsHshTableImpl> IBagAsHshTableImpl;
  34.  
  35. typedef IABagOnKeyBagOps
  36.          <IKeyBagAsHshTableImpl> IABagAsHshTableOps;
  37.  
  38. template <class Element, class ElementOps, class Implementation>
  39. class IBagAsHshTableOps :
  40.   public IABagAsHshTableOps {
  41.  
  42.   typedef  IABagAsHshTableOps Inherited;
  43.  
  44.   typedef  IBagAsHshTableOps
  45.             <Element, ElementOps, Implementation> Self;
  46.  
  47.   typedef  IKeyBagAsHshTableOps
  48.             <Element, Element, IOpsWithKey <Element, ElementOps>,
  49.              IKeyBagAsHshTableImpl> Base;
  50.  
  51. public:
  52.  
  53.   typedef  Implementation ImplType;
  54.  
  55.   typedef  Element ElementType;
  56.  
  57.   typedef  void KeyType;
  58.  
  59.            IBagAsHshTableOps
  60.                            (INumber);
  61.  
  62.            IBagAsHshTableOps
  63.                            (INumber, void*);
  64.  
  65.            IBagAsHshTableOps
  66.                            (IBagAsHshTableOps
  67.                              <Element, ElementOps,
  68.                               Implementation> const&);
  69.  
  70.           ~IBagAsHshTableOps
  71.                            ();
  72.  
  73.   IACollectionImpl*
  74.            Clone           () const;
  75.  
  76.            operator IKeyBagAsHshTableImpl&
  77.                            ();
  78.  
  79.            operator Implementation*
  80.                            ();
  81.  
  82.  
  83. protected:
  84.  
  85. private:
  86.  
  87.   Base     ivBase;
  88.  
  89.   Implementation
  90.            ivImpl;
  91.  
  92.  
  93. };
  94.  
  95. #pragma SOMAsDefault (pop)
  96.  
  97. #if ! defined (__TEMPINC__)
  98. #include <iibaghsh.c>
  99. #endif
  100.  
  101. #pragma info (restore)
  102. #pragma pack ()
  103.  
  104. #endif
  105.