home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / iaes.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  2.7 KB  |  88 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 _IAES_H
  19. #define _IAES_H
  20.  
  21. #include <iasqntl.h>
  22. #include <iaequal.h>
  23. #include <iiaes.h>
  24.  
  25. #pragma info (nocls, nocnd, nocns, nocnv, noext, nognr, novft)
  26. #pragma pack (4)
  27.  
  28. #pragma SOMAsDefault (off)
  29.  
  30. template <class Element>
  31. class IAEqualitySequence :
  32.   public IAEqualityCollection <Element>,
  33.   public IASequentialCollection <Element> {
  34.  
  35.   typedef  IASequentialCollection <Element> Inherited;
  36.  
  37.   typedef  IAEqualitySequenceImpl Implementation;
  38.  
  39. public:
  40.  
  41.            IAEqualitySequence
  42.                             (INotifier&);
  43.  
  44.           ~IAEqualitySequence
  45.                             ();
  46.  
  47.   long     compare          (IAEqualitySequence <Element> const&,
  48.                              long (*comparisonFunction)
  49.                               (Element const&, Element const&)) const;
  50.  
  51.   IBoolean locateFirst      (Element const&, ICursor&) const;
  52.  
  53.   IBoolean locateLast       (Element const&, ICursor&) const;
  54.  
  55.   IBoolean locatePrevious   (Element const&, ICursor&) const;
  56.  
  57.   IBoolean operator==       (IAEqualitySequence
  58.                               <Element> const&) const;
  59.  
  60.   IBoolean operator!=       (IAEqualitySequence
  61.                               <Element> const&) const;
  62.  
  63. protected:
  64.  
  65.            IAEqualitySequence
  66.                             ();
  67.  
  68.            IAEqualitySequence
  69.                             (IAEqualitySequence <Element> const&);
  70.  
  71. private:
  72.  
  73.   static
  74.   Implementation&
  75.            ImplOf           (IAEqualitySequence <Element> const&);
  76.  
  77.  
  78. };
  79.  
  80. #include <iaes.inl>
  81.  
  82. #pragma SOMAsDefault (pop)
  83.  
  84. #pragma info (restore)
  85. #pragma pack ()
  86.  
  87. #endif
  88.