home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / iismlst.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  3.1 KB  |  112 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 _IISMLST_H
  19. #define _IISMLST_H
  20.  
  21. #include <iismkss.h>
  22.  
  23.  
  24. #include <iiksslst.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 ISortedMapOnKeySortedSetImpl
  33.          <IKeySortedSetAsListImpl> ISortedMapAsListImpl;
  34.  
  35. typedef IASortedMapOnKeySortedSetOps
  36.          <IKeySortedSetAsListImpl> IASortedMapAsListOps;
  37. template <class Element, class _Key,
  38.           class ElementOps, class Implementation>
  39. class ISortedMapAsListOps :
  40.   public IASortedMapAsListOps {
  41.  
  42.   typedef  ISortedMapAsListOps
  43.             <Element, _Key, ElementOps, Implementation> Self;
  44.  
  45.   typedef  IKeySortedSetAsListOps
  46.             <Element, _Key,
  47.              ElementOps, IKeySortedSetAsListImpl> Base;
  48.  
  49. public:
  50.  
  51.   typedef  Implementation ImplType;
  52.  
  53.   typedef  Element ElementType;
  54.  
  55.   typedef  _Key KeyType;
  56.  
  57.            ISortedMapAsListOps
  58.                            (INumber);
  59.  
  60.            ISortedMapAsListOps
  61.                            (INumber, void*);
  62.  
  63.            ISortedMapAsListOps
  64.                            (ISortedMapAsListOps
  65.                              <Element, _Key,
  66.                               ElementOps, Implementation> const&);
  67.  
  68.           ~ISortedMapAsListOps
  69.                            ();
  70.  
  71.   IACollectionImpl*
  72.            Clone           () const;
  73.  
  74.   IBoolean EqualElements   (void const*, void const*) const;
  75.  
  76.   TStream& operator<<=     (TStream&);
  77.  
  78.   TStream& operator>>=     (TStream&) const;
  79.  
  80.            operator IKeySortedSetAsListImpl&
  81.                            ();
  82.  
  83.            operator Implementation*
  84.                            ();
  85.  
  86.  
  87. protected:
  88.  
  89. private:
  90.  
  91.   ElementOps
  92.            ivElementOps;
  93.  
  94.   Base     ivBase;
  95.  
  96.   Implementation
  97.            ivImpl;
  98.  
  99.  
  100. };
  101.  
  102. #pragma SOMAsDefault (pop)
  103.  
  104. #if ! defined (__TEMPINC__)
  105. #include <iismlst.c>
  106. #endif
  107.  
  108. #pragma info (restore)
  109. #pragma pack ()
  110.  
  111. #endif
  112.