home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / iicrel.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  3.1 KB  |  101 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 _IICREL_H
  19. #define _IICREL_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 CInherited>
  29. class ICRelationImpl : public CInherited {
  30. public:
  31.  
  32.   typedef  CInherited::Ops Ops;
  33.  
  34.            ICRelationImpl
  35.                             (Ops&, INumber);
  36.  
  37.            ICRelationImpl
  38.                             (Ops&, ICRelationImpl
  39.                                     <CInherited> const&);
  40.  
  41.   IBoolean Add              (void const*, ICursorImpl&);
  42.  
  43.   void     AddAllFrom       (IACollectionImpl const&);
  44.  
  45.   IBoolean AddOrReplaceElementWithKey
  46.                             (void const*, ICursorImpl&);
  47.  
  48.   void*    Any              () const;
  49.  
  50.   void*    ElementAt        (ICursorImpl const&) const;
  51.  
  52.   void*    ElementWithKey   (void const*) const;
  53.  
  54.   IBoolean Locate           (void const*, ICursorImpl&) const;
  55.  
  56.   IBoolean LocateElementWithKey
  57.                             (void const*, ICursorImpl&) const;
  58.  
  59.   IBoolean LocateNext       (void const*, ICursorImpl&) const;
  60.  
  61.   IBoolean LocateNextElementWithKey
  62.                             (void const*, ICursorImpl&) const;
  63.  
  64.   IBoolean LocateOrAdd      (void const*, ICursorImpl&);
  65.  
  66.   IBoolean LocateOrAddElementWithKey
  67.                             (void const*, ICursorImpl&);
  68.  
  69.   void     RemoveAt         (ICursorImpl&);
  70.  
  71.   void     ReplaceAt        (ICursorImpl const& cursor,
  72.                              void const*);
  73.  
  74.   IBoolean ReplaceElementWithKey
  75.                             (void const*, ICursorImpl&);
  76.  
  77.   IBoolean SetToFirst       (ICursorImpl&) const;
  78.  
  79.   IBoolean SetToNext        (ICursorImpl&) const;
  80.  
  81.   IBoolean SetToNextWithDifferentKey
  82.                             (ICursorImpl&) const;
  83.  
  84. protected:
  85.  
  86. private:
  87.  
  88.  
  89. };
  90.  
  91. #pragma SOMAsDefault (pop)
  92.  
  93. #if ! defined (__TEMPINC__)
  94. #include <iicrel.c>
  95. #endif
  96.  
  97. #pragma info (restore)
  98. #pragma pack ()
  99.  
  100. #endif
  101.