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