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