home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / iikskss.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  5.5 KB  |  225 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 _IIKSKSS_H
  19. #define _IIKSKSS_H
  20.  
  21. #include <iiaks.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 IKeySetOnKeySortedSetMngCursorImpl;
  31.  
  32. template <class Base>
  33. class IKeySetOnKeySortedSetImpl;
  34.  
  35. template <class Base>
  36. class IKeySetOnKeySortedSetMngCursorImpl : public Base::MngCursor {
  37.  
  38.   typedef  Base::MngCursor Inherited;
  39.  
  40. public:
  41.  
  42.            IKeySetOnKeySortedSetMngCursorImpl
  43.                             (IKeySetOnKeySortedSetImpl <Base> const&);
  44.  
  45.           ~IKeySetOnKeySortedSetMngCursorImpl
  46.                             ();
  47.  
  48. protected:
  49.  
  50. private:
  51.  
  52.  
  53. };
  54.  
  55. template <class Base>
  56. class IBagOnKeySetImpl;
  57.  
  58. template <class Base>
  59. class IAKeySetOnKeySortedSetOps;
  60.  
  61. template <class Base>
  62. class IKeySetOnKeySortedSetImpl : public IAKeySetImpl {
  63.  
  64.   typedef  IAKeySetImpl Inherited;
  65.  
  66.   typedef  IKeySetOnKeySortedSetImpl <Base> Self;
  67.  
  68. public:
  69.  
  70.   typedef  IAKeySetOnKeySortedSetOps <Base> Ops;
  71.  
  72.   typedef  Base::Cursor Cursor;
  73.  
  74.   typedef  IKeySetOnKeySortedSetMngCursorImpl <Base> MngCursor;
  75.  
  76.            IKeySetOnKeySortedSetImpl
  77.                             (Ops&, INumber);
  78.  
  79.            IKeySetOnKeySortedSetImpl
  80.                             (Ops&,
  81.                              IKeySetOnKeySortedSetImpl <Base> const&);
  82.  
  83.           ~IKeySetOnKeySortedSetImpl
  84.                             ();
  85.  
  86.   IBoolean Add              (void const*, ICursorImpl&);
  87.  
  88.   void     AddAllFrom       (IACollectionImpl const&);
  89.  
  90.   IBoolean AddOrReplaceElementWithKey
  91.                             (void const*, ICursorImpl&);
  92.  
  93.   IBoolean AllElementsDo    (IApplFunc, void*);
  94.  
  95.   void*    Any              () const;
  96.  
  97.   IBoolean CheckCursor      (ICursorImpl const&) const;
  98.  
  99.   IBoolean CheckReplacement (ICursorImpl const&, void const* ) const;
  100.  
  101.   char const*
  102.            ClassName        () const;
  103.  
  104.   IACollectionImpl*
  105.            Clone            () const;
  106.  
  107.   IBoolean ContainsAllKeysFrom
  108.                             (IACollectionImpl const&) const;
  109.  
  110.   IBoolean ContainsElementWithKey
  111.                             (void const*) const;
  112.  
  113.   void     Copy             (IACollectionImpl const&);
  114.  
  115.   Cursor*  CreateCursor     () const;
  116.  
  117.   MngCursor*
  118.            CreateMngCursor  () const;
  119.  
  120.   void*    ElementAt        (ICursorImpl const&) const;
  121.  
  122.   void*    ElementWithKey   (void const*) const;
  123.  
  124.   IBoolean IsBounded        () const;
  125.  
  126.   IBoolean IsConsistent     () const;
  127.  
  128.   IBoolean IsEmpty          () const;
  129.  
  130.   IBoolean IsFull           () const;
  131.  
  132.   void*    Key              (void const*) const;
  133.  
  134.   IBoolean LocateElementWithKey
  135.                             (void const*, ICursorImpl&) const;
  136.  
  137.   IBoolean LocateOrAddElementWithKey
  138.                             (void const*, ICursorImpl&);
  139.  
  140.   INumber  NumberOfElements () const;
  141.  
  142.   INumber  RemoveAll        ();
  143.  
  144.   INumber  RemoveAll        (IPredFunc, void*);
  145.  
  146.   void     RemoveAt         (ICursorImpl&);
  147.  
  148.   IBoolean RemoveElementWithKey
  149.                             (void const*);
  150.  
  151.   void     ReplaceAt        (ICursorImpl const&, void const*);
  152.  
  153.   IBoolean ReplaceElementWithKey
  154.                             (void const*, ICursorImpl&);
  155.  
  156.   IBoolean SetToFirst       (ICursorImpl&) const;
  157.  
  158.   IBoolean SetToNext        (ICursorImpl&) const;
  159.  
  160.   void     operator=        (IKeySetOnKeySortedSetImpl <Base> const&);
  161.  
  162.   TStream& operator<<=      (TStream&);
  163.  
  164.   TStream& operator>>=      (TStream&) const;
  165.  
  166. protected:
  167.  
  168.   IBoolean EqualKeys        (void const*, void const*, IArgType) const;
  169.  
  170. private:
  171.  
  172.   static
  173.   char const*
  174.            cvClassName;
  175.  
  176.   Base&    ivBase;
  177.  
  178.   static
  179.   Base&    BaseOf           (IKeySetOnKeySortedSetImpl <Base> const&);
  180.  
  181.   static
  182.   Ops&     OpsOf            (IKeySetOnKeySortedSetImpl <Base> const&);
  183.  
  184.   friend
  185.   class    IKeySetOnKeySortedSetMngCursorImpl <Base>;
  186.  
  187.   friend
  188.   class    IKeySetOnKeySortedSetImpl <Base>;
  189.  
  190.   friend
  191.   class    IBagOnKeySetImpl <Self>;
  192.  
  193.  
  194. };
  195.  
  196. template <class Base>
  197. class IAKeySetOnKeySortedSetOps {
  198. public:
  199.  
  200.   virtual ~IAKeySetOnKeySortedSetOps
  201.                             ();
  202.  
  203.   virtual
  204.   IACollectionImpl*
  205.            Clone            () const = 0;
  206.  
  207.   virtual  operator Base&   () = 0;
  208.  
  209. protected:
  210.  
  211. private:
  212.  
  213.  
  214. };
  215.  
  216. #pragma SOMAsDefault (pop)
  217.  
  218. #include <iikskss.inl>
  219.  
  220.  
  221. #pragma info (restore)
  222. #pragma pack ()
  223.  
  224. #endif
  225.