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