home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / iikssdil.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  3.1 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 _IIKSSDIL_H
  19. #define _IIKSSDIL_H
  20.  
  21. #include <iikssseq.h>
  22.  
  23.  
  24. #include <iiseqdil.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.          <ISequenceAsDilTableImpl> IKeySortedSetAsDilTableImpl;
  34.  
  35. template <class Element, class _Key,
  36.           class ElementOps, class Implementation>
  37. class IKeySortedSetAsDilTableOps :
  38.   public IAKeySortedSetOnSequenceOps <ISequenceAsDilTableImpl> {
  39.  
  40.   typedef  IKeySortedSetAsDilTableOps
  41.             <Element, _Key, ElementOps, Implementation> Self;
  42.  
  43.   typedef  ISequenceAsDilTableOps
  44.             <Element, ElementOps, ISequenceAsDilTableImpl> Base;
  45.  
  46. public:
  47.  
  48.   typedef  Implementation ImplType;
  49.  
  50.   typedef  Element ElementType;
  51.  
  52.   typedef  _Key KeyType;
  53.  
  54.            IKeySortedSetAsDilTableOps
  55.                            (INumber);
  56.  
  57.            IKeySortedSetAsDilTableOps
  58.                            (INumber, void*);
  59.  
  60.            IKeySortedSetAsDilTableOps
  61.                            (IKeySortedSetAsDilTableOps
  62.                              <Element, _Key,
  63.                               ElementOps, Implementation> const&);
  64.  
  65.           ~IKeySortedSetAsDilTableOps
  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 ISequenceAsDilTableImpl&
  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 <iikssdil.c>
  105. #endif
  106.  
  107. #pragma info (restore)
  108. #pragma pack ()
  109.  
  110. #endif
  111.