home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / iickss.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  3.6 KB  |  124 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 _IICKSS_H
  19. #define _IICKSS_H
  20.  
  21. #include <iiakss.h>
  22.  
  23. #pragma SOMAsDefault (off)
  24.  
  25. #pragma info (nocls, nocnd, nocns, nocnv, noext, nognr, novft)
  26. #pragma pack (4)
  27.  
  28. template <class CInherited>
  29. class ICKeySortedSetImpl : public CInherited {
  30. public:
  31.  
  32.   typedef  CInherited::Ops Ops;
  33.  
  34.            ICKeySortedSetImpl
  35.                             (Ops&, INumber);
  36.  
  37.            ICKeySortedSetImpl
  38.                             (Ops&, ICKeySortedSetImpl
  39.                                     <CInherited> const&);
  40.  
  41.   IBoolean Add              (void const*, ICursorImpl&);
  42.  
  43.   void     AddAllFrom       (IACollectionImpl const&);
  44.  
  45.   IBoolean AddOrReplaceElementWithKey
  46.                             (void const*, ICursorImpl&);
  47.  
  48.   void*    Any              () const;
  49.  
  50.   void*    ElementAt        (ICursorImpl const&) const;
  51.  
  52.   void*    ElementAtPosition
  53.                             (IPosition) const;
  54.  
  55.   void*    ElementWithKey   (void const*) const;
  56.  
  57.   void*    First            () const;
  58.  
  59.   IBoolean IsFirstAt        (ICursorImpl const&) const;
  60.  
  61.   IBoolean IsLastAt         (ICursorImpl const&) const;
  62.  
  63.   void*    Last             () const;
  64.  
  65.   IBoolean LocateElementWithKey
  66.                             (void const*, ICursorImpl&) const;
  67.  
  68.   IBoolean LocateNextElementWithKey
  69.                             (void const*, ICursorImpl&) const;
  70.  
  71.   IBoolean LocateOrAddElementWithKey
  72.                             (void const*, ICursorImpl&);
  73.  
  74.   IPosition
  75.            PositionAt       (ICursorImpl const&) const;
  76.  
  77.   void     RemoveAt         (ICursorImpl&);
  78.  
  79.   void     RemoveAtPosition (IPosition);
  80.  
  81.   void     RemoveFirst      ();
  82.  
  83.   void     RemoveLast       ();
  84.  
  85.   void     ReplaceAt        (ICursorImpl const& cursor,
  86.                              void const*);
  87.  
  88.   void     ReplaceAtPosition
  89.                             (IPosition, void const*);
  90.  
  91.   IBoolean ReplaceElementWithKey
  92.                             (void const*, ICursorImpl&);
  93.  
  94.   IBoolean SetToFirst       (ICursorImpl&) const;
  95.  
  96.   IBoolean SetToLast        (ICursorImpl&) const;
  97.  
  98.   IBoolean SetToNext        (ICursorImpl&) const;
  99.  
  100.   IBoolean SetToNextWithDifferentKey
  101.                             (ICursorImpl&) const;
  102.  
  103.   void     SetToPosition    (IPosition, ICursorImpl&) const;
  104.  
  105.   IBoolean SetToPrevious    (ICursorImpl&) const;
  106.  
  107. protected:
  108.  
  109. private:
  110.  
  111.  
  112. };
  113.  
  114. #pragma SOMAsDefault (pop)
  115.  
  116. #if ! defined (__TEMPINC__)
  117. #include <iickss.c>
  118. #endif
  119.  
  120. #pragma info (restore)
  121. #pragma pack ()
  122.  
  123. #endif
  124.