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