home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / iadqu.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  2.5 KB  |  87 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 _IADQU_H
  19. #define _IADQU_H
  20.  
  21. #include <iarstrct.h>
  22. #include <iaorder.h>
  23. #include <iiaseq.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 IADeque :
  32.   public IARestrictedAccessCollection <Element> {
  33.  
  34.   typedef  IARestrictedAccessCollection <Element> Inherited;
  35.  
  36.   typedef  IASequenceImpl Implementation;
  37.  
  38. public:
  39.  
  40.            IADeque
  41.                             (INotifier&);
  42.  
  43.           ~IADeque
  44.                             ();
  45.  
  46.   void     addAsFirst       (Element const&);
  47.  
  48.   void     addAsFirst       (Element const&, ICursor&);
  49.  
  50.   void     addAsLast        (Element const&);
  51.  
  52.   void     addAsLast        (Element const&, ICursor&);
  53.  
  54.   long     compare          (IADeque <Element> const&,
  55.                              long (*comparisonFunction)
  56.                               (Element const&, Element const&)) const;
  57.  
  58.   void     removeFirst      ();
  59.  
  60.   void     removeLast       ();
  61.  
  62. protected:
  63.  
  64.            IADeque
  65.                             ();
  66.  
  67.            IADeque
  68.                             (IADeque <Element> const&);
  69.  
  70. private:
  71.  
  72.   static
  73.   Implementation&
  74.            ImplOf           (IADeque <Element> const&);
  75.  
  76.  
  77. };
  78.  
  79. #include <iadqu.inl>
  80.  
  81. #pragma SOMAsDefault (pop)
  82.  
  83. #pragma info (restore)
  84. #pragma pack ()
  85.  
  86. #endif
  87.