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