home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / iaks.inl < prev    next >
Encoding:
Text File  |  1996-02-22  |  2.9 KB  |  98 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. // IAKeySet
  20. // ---
  21.  
  22. template <class Element, class Key>
  23. inline
  24. IAKeySet <Element, Key>::
  25. IAKeySet (INotifier& notifier)
  26. { SetImpl ((Implementation*)¬ifier);
  27. }
  28.  
  29. template <class Element, class Key>
  30. inline
  31. IAKeySet <Element, Key>::
  32. ~IAKeySet ()
  33. {
  34. }
  35.  
  36. // protected members
  37.  
  38. template <class Element, class Key>
  39. inline
  40. IAKeySet <Element, Key>::
  41. IAKeySet ()
  42. {
  43. }
  44.  
  45. template <class Element, class Key>
  46. inline
  47. IAKeySet <Element, Key>::
  48. IAKeySet (IAKeySet <Element, Key> const& collection)
  49. : Inherited (collection)
  50. {
  51. }
  52.  
  53. template <class Element, class Key>
  54. inline IBoolean
  55. IAKeySet <Element, Key>::
  56. locateNextElementWithKey (Key const& key, ICursor& cursor) const
  57. { return IAKeyCollection <Element, Key>::
  58.     locateNextElementWithKey (key, cursor);
  59. }
  60.  
  61. template <class Element, class Key>
  62. inline INumber
  63. IAKeySet <Element, Key>::
  64. numberOfDifferentKeys () const
  65. { return IAKeyCollection <Element, Key>::numberOfDifferentKeys ();
  66. }
  67.  
  68. template <class Element, class Key>
  69. inline INumber
  70. IAKeySet <Element, Key>::
  71. numberOfElementsWithKey (Key const& key) const
  72. { return IAKeyCollection <Element, Key>::numberOfElementsWithKey (key);
  73. }
  74.  
  75. template <class Element, class Key>
  76. inline INumber
  77. IAKeySet <Element, Key>::
  78. removeAllElementsWithKey (Key const& key)
  79. { return IAKeyCollection <Element, Key>::removeAllElementsWithKey (key);
  80. }
  81.  
  82. template <class Element, class Key>
  83. inline IBoolean
  84. IAKeySet <Element, Key>::
  85. setToNextWithDifferentKey (ICursor& cursor) const
  86. { return
  87.     IAKeyCollection <Element, Key>::setToNextWithDifferentKey (cursor);
  88. }
  89.  
  90. // private members
  91.  
  92. template <class Element, class Key>
  93. inline IAKeySet <Element, Key>::Implementation&
  94. IAKeySet <Element, Key>::
  95. ImplOf (IAKeySet <Element, Key> const& collection)
  96. { return *(Implementation*)collection.ivImpl;
  97. }
  98.