home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v1.zip / IBMCPP / IBMCLASS / IASQNTL.H < prev    next >
Text File  |  1993-09-22  |  2KB  |  54 lines

  1. /*******************************************************************************
  2. *                                                                              *
  3. * COPYRIGHT:                                                                   *
  4. *   IBM C/C++ Tools Version 2.01 - Collection Class Library                    *
  5. *   Licensed Materials - Property of IBM                                       *
  6. *   (C) Copyright IBM Corporation 1992, 1993                                   *
  7. *   All Rights Reserved                                                        *
  8. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  9. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  10. *                                                                              *
  11. *******************************************************************************/
  12. #ifndef _IASQNTL_H
  13. #define _IASQNTL_H
  14.  
  15. #include <iglobals.h>
  16. #include <icursor.h>
  17. #include <iaorder.h>
  18.  
  19. template < class Element >
  20. class IASequentialCollection :
  21.   public virtual IAOrderedCollection < Element > {
  22. public:
  23.  
  24.   virtual void           addAsFirst                  (Element const&) = 0;
  25.  
  26.   virtual void           addAsFirst                  (Element const&,
  27.                                                ICursor&) = 0;
  28.  
  29.   virtual void           addAsLast                   (Element const&) = 0;
  30.  
  31.   virtual void           addAsLast                   (Element const&,
  32.                                                ICursor&) = 0;
  33.  
  34.   virtual void           addAsNext                   (Element const&,
  35.                                                ICursor&) = 0;
  36.  
  37.   virtual void           addAsPrevious               (Element const&,
  38.                                                ICursor&) = 0;
  39.  
  40.   virtual void           addAtPosition               (IPosition,
  41.                                                Element const&) = 0;
  42.  
  43.   virtual void           addAtPosition               (IPosition,
  44.                                                Element const&,
  45.                                                ICursor&) = 0;
  46.  
  47.   virtual void           sort                        (long (*comparisonFunction)
  48.                                                (Element const&,
  49.                                                Element const&)) = 0;
  50.  
  51. };
  52.  
  53. #endif
  54.