home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / iismkss.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  6.9 KB  |  272 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 _IISMKSS_H
  19. #define _IISMKSS_H
  20.  
  21. #include <iiasm.h>
  22.  
  23.  
  24. #pragma info (nocls, nocnd, nocns, nocnv, noext, nognr, novft)
  25. #pragma pack (4)
  26.  
  27. #pragma SOMAsDefault (off)
  28.  
  29. template <class Base>
  30. class ISortedMapOnKeySortedSetMngCursorImpl;
  31.  
  32. template <class Base>
  33. class ISortedMapOnKeySortedSetImpl;
  34.  
  35. template <class Base>
  36. class ISortedMapOnKeySortedSetMngCursorImpl : public Base::MngCursor {
  37.  
  38.   typedef  Base::MngCursor Inherited;
  39.  
  40. public:
  41.  
  42.            ISortedMapOnKeySortedSetMngCursorImpl
  43.                             (ISortedMapOnKeySortedSetImpl
  44.                               <Base> const&);
  45.  
  46.           ~ISortedMapOnKeySortedSetMngCursorImpl
  47.                             ();
  48.  
  49. protected:
  50.  
  51. private:
  52.  
  53.  
  54. };
  55.  
  56. template <class Base>
  57. class IASortedMapOnKeySortedSetOps;
  58.  
  59. template <class Base>
  60. class ISortedMapOnKeySortedSetImpl : public IASortedMapImpl {
  61.  
  62.   typedef  IASortedMapImpl Inherited;
  63.  
  64.   typedef  ISortedMapOnKeySortedSetImpl <Base> Self;
  65.  
  66. public:
  67.  
  68.   typedef  IASortedMapOnKeySortedSetOps <Base> Ops;
  69.  
  70.   typedef  Base::Cursor Cursor;
  71.  
  72.   typedef  ISortedMapOnKeySortedSetMngCursorImpl <Base> MngCursor;
  73.  
  74.            ISortedMapOnKeySortedSetImpl
  75.                             (Ops&, INumber);
  76.  
  77.            ISortedMapOnKeySortedSetImpl
  78.                             (Ops&,
  79.                              ISortedMapOnKeySortedSetImpl
  80.                               <Base> const&);
  81.  
  82.           ~ISortedMapOnKeySortedSetImpl
  83.                             ();
  84.  
  85.   IBoolean Add              (void const*, ICursorImpl&);
  86.  
  87.   IBoolean AddOrReplaceElementWithKey
  88.                             (void const*, ICursorImpl&);
  89.  
  90.   IBoolean AllElementsDo    (IApplFunc, void*);
  91.  
  92.   void*    Any              () const;
  93.  
  94.   IBoolean CheckCursor      (ICursorImpl const&) const;
  95.  
  96.   IBoolean CheckReplacement (ICursorImpl const&, void const*) const;
  97.  
  98.   char const*
  99.            ClassName        () const;
  100.  
  101.   IACollectionImpl*
  102.            Clone            () const;
  103.  
  104.   IBoolean Contains         (void const*) const;
  105.  
  106.   IBoolean ContainsAllKeysFrom
  107.                             (IACollectionImpl const&) const;
  108.  
  109.   IBoolean ContainsElementWithKey
  110.                             (void const*) const;
  111.  
  112.   void     Copy             (IACollectionImpl const&);
  113.  
  114.   Cursor*  CreateCursor     () const;
  115.  
  116.   MngCursor*
  117.            CreateMngCursor  () const;
  118.  
  119.   void*    ElementAt        (ICursorImpl const&) const;
  120.  
  121.   void*    ElementAtPosition
  122.                             (IPosition) const;
  123.  
  124.   void*    ElementWithKey   (void const*) const;
  125.  
  126.   void*    First            () const;
  127.  
  128.   IBoolean IsBounded        () const;
  129.  
  130.   IBoolean IsConsistent     () const;
  131.  
  132.   IBoolean IsEmpty          () const;
  133.  
  134.   IBoolean IsFirstAt        (ICursorImpl const&) const;
  135.  
  136.   IBoolean IsFull           () const;
  137.  
  138.   IBoolean IsLastAt         (ICursorImpl const&) const;
  139.  
  140.   void*    Key              (void const*) const;
  141.  
  142.   void*    Last             () const;
  143.  
  144.   IBoolean Locate           (void const*, ICursorImpl&) const;
  145.  
  146.   IBoolean LocateElementWithKey
  147.                             (void const*, ICursorImpl&) const;
  148.  
  149.   IBoolean LocateNext       (void const*, ICursorImpl&) const;
  150.  
  151.   IBoolean LocateNextElementWithKey
  152.                             (void const*, ICursorImpl&) const;
  153.  
  154.   IBoolean LocateOrAdd      (void const*, ICursorImpl&);
  155.  
  156.   IBoolean LocateOrAddElementWithKey
  157.                             (void const*, ICursorImpl&);
  158.  
  159.   INumber  NumberOfElements () const;
  160.  
  161.   IPosition
  162.            PositionAt       (ICursorImpl const&) const;
  163.  
  164.   IBoolean Remove           (void const*);
  165.  
  166.   INumber  RemoveAll        ();
  167.  
  168.   INumber  RemoveAll        (IPredFunc, void*);
  169.  
  170.   void     RemoveAt         (ICursorImpl&);
  171.  
  172.   void     RemoveAtPosition (IPosition);
  173.  
  174.   IBoolean RemoveElementWithKey
  175.                             (void const*);
  176.  
  177.   void     RemoveFirst      ();
  178.  
  179.   void     RemoveLast       ();
  180.  
  181.   void     ReplaceAt        (ICursorImpl const&, void const*);
  182.  
  183.   void     ReplaceAtPosition
  184.                             (IPosition, void const*);
  185.  
  186.   IBoolean ReplaceElementWithKey
  187.                             (void const*, ICursorImpl&);
  188.  
  189.   IBoolean SetToFirst       (ICursorImpl&) const;
  190.  
  191.   IBoolean SetToLast        (ICursorImpl&) const;
  192.  
  193.   IBoolean SetToNext        (ICursorImpl&) const;
  194.  
  195.   void     SetToPosition    (IPosition, ICursorImpl&) const;
  196.  
  197.   IBoolean SetToPrevious    (ICursorImpl&) const;
  198.  
  199.   void     operator=        (ISortedMapOnKeySortedSetImpl
  200.                               <Base> const&);
  201.  
  202.   IBoolean operator==       (IASortedMapImpl const&) const;
  203.  
  204.   TStream& operator<<=      (TStream&);
  205.  
  206.   TStream& operator>>=      (TStream&) const;
  207.  
  208. protected:
  209.  
  210.   IBoolean EqualElements    (void const*, void const*) const;
  211.  
  212. private:
  213.  
  214.   static
  215.   char const*
  216.            cvClassName;
  217.  
  218.   Base&    ivBase;
  219.  
  220.   static
  221.   Base&    BaseOf           (ISortedMapOnKeySortedSetImpl
  222.                               <Base> const&);
  223.  
  224.   static
  225.   Ops&     OpsOf            (ISortedMapOnKeySortedSetImpl
  226.                               <Base> const&);
  227.  
  228.   friend
  229.   class    ISortedMapOnKeySortedSetMngCursorImpl <Base>;
  230.  
  231.  
  232. };
  233.  
  234. template <class Base>
  235. class IASortedMapOnKeySortedSetOps {
  236. public:
  237.  
  238.   virtual ~IASortedMapOnKeySortedSetOps
  239.                             ();
  240.  
  241.   virtual
  242.   IACollectionImpl*
  243.            Clone            () const = 0;
  244.  
  245.   virtual
  246.   IBoolean EqualElements    (void const*, void const*) const = 0;
  247.  
  248.   virtual
  249.   TStream& operator<<=      (TStream&) = 0;
  250.  
  251.   virtual
  252.   TStream& operator>>=      (TStream&) const = 0;
  253.  
  254.   virtual  operator Base&   () = 0;
  255.  
  256. protected:
  257.  
  258. private:
  259.  
  260.  
  261. };
  262.  
  263. #pragma SOMAsDefault (pop)
  264.  
  265. #include <iismkss.inl>
  266.  
  267.  
  268. #pragma info (restore)
  269. #pragma pack ()
  270.  
  271. #endif
  272.