home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / iivrel.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  3.4 KB  |  114 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 _IIVREL_H
  19. #define _IIVREL_H
  20.  
  21. #include <iiarel.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 VInherited>
  29. class IVRelationImpl : public VInherited {
  30. public:
  31.  
  32.   typedef  VInherited::Ops Ops;
  33.  
  34.            IVRelationImpl
  35.                             (Ops&, INumber);
  36.  
  37.            IVRelationImpl
  38.                             (Ops&, IVRelationImpl
  39.                                     <VInherited> const&);
  40.  
  41.   IBoolean Add              (void const*, ICursorImpl&);
  42.  
  43.   void     AddAllFrom       (IACollectionImpl const&);
  44.  
  45.   void     AddAntivalence   (IARelationImpl const&,
  46.                              IARelationImpl const&);
  47.  
  48.   void     AddDifference    (IARelationImpl const&,
  49.                              IARelationImpl const&);
  50.  
  51.   void     AddIntersection  (IARelationImpl const&,
  52.                              IARelationImpl const&);
  53.  
  54.   void     AddUnion         (IARelationImpl const&,
  55.                              IARelationImpl const&);
  56.  
  57.   void     Antivalence      (IARelationImpl const&);
  58.  
  59.   IBoolean AddOrReplaceElementWithKey
  60.                             (void const*, ICursorImpl&);
  61.  
  62.   void     Copy             (IACollectionImpl const&);
  63.  
  64.   void     Difference       (IARelationImpl const&);
  65.  
  66.   void     Intersection     (IARelationImpl const&);
  67.  
  68.   IBoolean LocateOrAdd      (void const*, ICursorImpl&);
  69.  
  70.   IBoolean LocateOrAddElementWithKey
  71.                             (void const*, ICursorImpl&);
  72.  
  73.   IBoolean Remove           (void const*);
  74.  
  75.   INumber  RemoveAll        ();
  76.  
  77.   INumber  RemoveAll        (IPredFunc, void*);
  78.  
  79.   INumber  RemoveAllElementsWithKey
  80.                             (void const*);
  81.  
  82.   INumber  RemoveAllOccurrences
  83.                             (void const*);
  84.  
  85.   void     RemoveAt         (ICursorImpl&);
  86.  
  87.   IBoolean RemoveElementWithKey
  88.                             (void const*);
  89.  
  90.   void     ReplaceAt        (ICursorImpl const&, void const*);
  91.  
  92.   IBoolean ReplaceElementWithKey
  93.                             (void const*, ICursorImpl&);
  94.  
  95.   void     Union            (IARelationImpl const&);
  96.  
  97. protected:
  98.  
  99. private:
  100.  
  101.  
  102. };
  103.  
  104. #pragma SOMAsDefault (pop)
  105.  
  106. #if ! defined (__TEMPINC__)
  107. #include <iivrel.c>
  108. #endif
  109.  
  110. #pragma info (restore)
  111. #pragma pack ()
  112.  
  113. #endif
  114.