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