home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / iicsm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  3.8 KB  |  130 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 _IICSM_H
  19. #define _IICSM_H
  20.  
  21. #include <iiasm.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 ICSortedMapImpl : public CInherited {
  30. public:
  31.  
  32.   typedef  CInherited::Ops Ops;
  33.  
  34.            ICSortedMapImpl
  35.                             (Ops&, INumber);
  36.  
  37.            ICSortedMapImpl
  38.                             (Ops&, ICSortedMapImpl
  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 Locate           (void const*, ICursorImpl&) const;
  66.  
  67.   IBoolean LocateElementWithKey
  68.                             (void const*, ICursorImpl&) const;
  69.  
  70.   IBoolean LocateNext       (void const*, ICursorImpl&) const;
  71.  
  72.   IBoolean LocateNextElementWithKey
  73.                             (void const*, ICursorImpl&) const;
  74.  
  75.   IBoolean LocateOrAdd      (void const*, ICursorImpl&);
  76.  
  77.   IBoolean LocateOrAddElementWithKey
  78.                             (void const*, ICursorImpl&);
  79.  
  80.   IPosition
  81.            PositionAt       (ICursorImpl const&) const;
  82.  
  83.   void     RemoveAt         (ICursorImpl&);
  84.  
  85.   void     RemoveAtPosition (IPosition);
  86.  
  87.   void     RemoveFirst      ();
  88.  
  89.   void     RemoveLast       ();
  90.  
  91.   void     ReplaceAt        (ICursorImpl const& cursor,
  92.                              void const*);
  93.  
  94.   void     ReplaceAtPosition
  95.                             (IPosition, void const*);
  96.  
  97.   IBoolean ReplaceElementWithKey
  98.                             (void const*, ICursorImpl&);
  99.  
  100.   IBoolean SetToFirst       (ICursorImpl&) const;
  101.  
  102.   IBoolean SetToLast        (ICursorImpl&) const;
  103.  
  104.   IBoolean SetToNext        (ICursorImpl&) const;
  105.  
  106.   IBoolean SetToNextWithDifferentKey
  107.                             (ICursorImpl&) const;
  108.  
  109.   void     SetToPosition    (IPosition, ICursorImpl&) const;
  110.  
  111.   IBoolean SetToPrevious    (ICursorImpl&) const;
  112.  
  113. protected:
  114.  
  115. private:
  116.  
  117.  
  118. };
  119.  
  120. #pragma SOMAsDefault (pop)
  121.  
  122. #if ! defined (__TEMPINC__)
  123. #include <iicsm.c>
  124. #endif
  125.  
  126. #pragma info (restore)
  127. #pragma pack ()
  128.  
  129. #endif
  130.