home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / iaes.inl < prev    next >
Encoding:
Text File  |  1996-02-22  |  3.3 KB  |  105 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. // IAEqualitySequence
  20. // ---
  21.  
  22. template <class Element>
  23. inline
  24. IAEqualitySequence <Element>::
  25. IAEqualitySequence (INotifier& notifier)
  26. { SetImpl ((Implementation*)¬ifier);
  27. }
  28.  
  29. template <class Element>
  30. inline
  31. IAEqualitySequence <Element>::
  32. ~IAEqualitySequence ()
  33. {
  34. }
  35.  
  36. template <class Element>
  37. inline long
  38. IAEqualitySequence <Element>::
  39. compare (IAEqualitySequence <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. template <class Element>
  46. inline IBoolean
  47. IAEqualitySequence <Element>::
  48. locateFirst (Element const& element, ICursor& cursor) const
  49. { return ImplOf (*this).LocateFirst (&element, CrsrImplOf (cursor));
  50. }
  51.  
  52. template <class Element>
  53. inline IBoolean
  54. IAEqualitySequence <Element>::
  55. locateLast (Element const& element, ICursor& cursor) const
  56. { return ImplOf (*this).LocateLast (&element, CrsrImplOf (cursor));
  57. }
  58.  
  59. template <class Element>
  60. inline IBoolean
  61. IAEqualitySequence <Element>::
  62. locatePrevious (Element const& element, ICursor& cursor) const
  63. { return ImplOf (*this).LocatePrevious (&element, CrsrImplOf (cursor));
  64. }
  65.  
  66. template <class Element>
  67. inline IBoolean
  68. IAEqualitySequence <Element>::
  69. operator== (IAEqualitySequence <Element> const& collection) const
  70. { return ImplOf (*this).operator== (ImplOf (collection));
  71. }
  72.  
  73. template <class Element>
  74. inline IBoolean
  75. IAEqualitySequence <Element>::
  76. operator!= (IAEqualitySequence <Element> const& collection) const
  77. { return ImplOf (*this).operator!= (ImplOf (collection));
  78. }
  79.  
  80. // protected members
  81.  
  82. template <class Element>
  83. inline
  84. IAEqualitySequence <Element>::
  85. IAEqualitySequence ()
  86. {
  87. }
  88.  
  89. template <class Element>
  90. inline
  91. IAEqualitySequence <Element>::
  92. IAEqualitySequence (IAEqualitySequence <Element> const& collection)
  93. : Inherited (collection)
  94. {
  95. }
  96.  
  97. // private members
  98.  
  99. template <class Element>
  100. inline IAEqualitySequence <Element>::Implementation&
  101. IAEqualitySequence <Element>::
  102. ImplOf (IAEqualitySequence <Element> const& collection)
  103. { return *(Implementation*)collection.ivImpl;
  104. }
  105.