home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / iaseq.inl < prev    next >
Encoding:
Text File  |  1996-02-22  |  2.1 KB  |  70 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. // ---
  19. // IASequence
  20. // ---
  21.  
  22. template <class Element>
  23. inline
  24. IASequence <Element>::
  25. IASequence (INotifier& notifier)
  26. { SetImpl ((Implementation*)¬ifier);
  27. }
  28.  
  29. template <class Element>
  30. inline
  31. IASequence <Element>::
  32. ~IASequence ()
  33. {
  34. }
  35.  
  36. template <class Element>
  37. inline long
  38. IASequence <Element>::
  39. compare (IASequence <Element> const& collection,
  40.          long (*compFunc) (Element const&, Element const&)) const
  41. { return ImplOf (*this).
  42.     Compare (ImplOf (collection), (ICompFunc)compFunc, 0);
  43. }
  44.  
  45. // protected members
  46.  
  47. template <class Element>
  48. inline
  49. IASequence <Element>::
  50. IASequence ()
  51. {
  52. }
  53.  
  54. template <class Element>
  55. inline
  56. IASequence <Element>::
  57. IASequence (IASequence <Element> const& collection)
  58. : Inherited (collection)
  59. {
  60. }
  61.  
  62. // private members
  63.  
  64. template <class Element>
  65. inline IASequence <Element>::Implementation&
  66. IASequence <Element>::
  67. ImplOf (IASequence <Element> const& collection)
  68. { return *(Implementation*)collection.ivImpl;
  69. }
  70.